pub trait ITextRange_Impl: Sized {
Show 52 methods // Required methods fn Character(&self) -> Result<u16>; fn SetCharacter(&self, value: u16) -> Result<()>; fn CharacterFormat(&self) -> Result<ITextCharacterFormat>; fn SetCharacterFormat( &self, value: Option<&ITextCharacterFormat> ) -> Result<()>; fn FormattedText(&self) -> Result<ITextRange>; fn SetFormattedText(&self, value: Option<&ITextRange>) -> Result<()>; fn EndPosition(&self) -> Result<i32>; fn SetEndPosition(&self, value: i32) -> Result<()>; fn Gravity(&self) -> Result<RangeGravity>; fn SetGravity(&self, value: RangeGravity) -> Result<()>; fn Length(&self) -> Result<i32>; fn Link(&self) -> Result<HSTRING>; fn SetLink(&self, value: &HSTRING) -> Result<()>; fn ParagraphFormat(&self) -> Result<ITextParagraphFormat>; fn SetParagraphFormat( &self, value: Option<&ITextParagraphFormat> ) -> Result<()>; fn StartPosition(&self) -> Result<i32>; fn SetStartPosition(&self, value: i32) -> Result<()>; fn StoryLength(&self) -> Result<i32>; fn Text(&self) -> Result<HSTRING>; fn SetText(&self, value: &HSTRING) -> Result<()>; fn CanPaste(&self, format: i32) -> Result<bool>; fn ChangeCase(&self, value: LetterCase) -> Result<()>; fn Collapse(&self, value: bool) -> Result<()>; fn Copy(&self) -> Result<()>; fn Cut(&self) -> Result<()>; fn Delete(&self, unit: TextRangeUnit, count: i32) -> Result<i32>; fn EndOf(&self, unit: TextRangeUnit, extend: bool) -> Result<i32>; fn Expand(&self, unit: TextRangeUnit) -> Result<i32>; fn FindText( &self, value: &HSTRING, scanlength: i32, options: FindOptions ) -> Result<i32>; fn GetCharacterUtf32(&self, value: &mut u32, offset: i32) -> Result<()>; fn GetClone(&self) -> Result<ITextRange>; fn GetIndex(&self, unit: TextRangeUnit) -> Result<i32>; fn GetPoint( &self, horizontalalign: HorizontalCharacterAlignment, verticalalign: VerticalCharacterAlignment, options: PointOptions, point: &mut Point ) -> Result<()>; fn GetRect( &self, options: PointOptions, rect: &mut Rect, hit: &mut i32 ) -> Result<()>; fn GetText( &self, options: TextGetOptions, value: &mut HSTRING ) -> Result<()>; fn GetTextViaStream( &self, options: TextGetOptions, value: Option<&IRandomAccessStream> ) -> Result<()>; fn InRange(&self, range: Option<&ITextRange>) -> Result<bool>; fn InsertImage( &self, width: i32, height: i32, ascent: i32, verticalalign: VerticalCharacterAlignment, alternatetext: &HSTRING, value: Option<&IRandomAccessStream> ) -> Result<()>; fn InStory(&self, range: Option<&ITextRange>) -> Result<bool>; fn IsEqual(&self, range: Option<&ITextRange>) -> Result<bool>; fn Move(&self, unit: TextRangeUnit, count: i32) -> Result<i32>; fn MoveEnd(&self, unit: TextRangeUnit, count: i32) -> Result<i32>; fn MoveStart(&self, unit: TextRangeUnit, count: i32) -> Result<i32>; fn Paste(&self, format: i32) -> Result<()>; fn ScrollIntoView(&self, value: PointOptions) -> Result<()>; fn MatchSelection(&self) -> Result<()>; fn SetIndex( &self, unit: TextRangeUnit, index: i32, extend: bool ) -> Result<()>; fn SetPoint( &self, point: &Point, options: PointOptions, extend: bool ) -> Result<()>; fn SetRange(&self, startposition: i32, endposition: i32) -> Result<()>; fn SetText2(&self, options: TextSetOptions, value: &HSTRING) -> Result<()>; fn SetTextViaStream( &self, options: TextSetOptions, value: Option<&IRandomAccessStream> ) -> Result<()>; fn StartOf(&self, unit: TextRangeUnit, extend: bool) -> Result<i32>;
}

Required Methods§

fn Character(&self) -> Result<u16>

fn SetCharacter(&self, value: u16) -> Result<()>

fn CharacterFormat(&self) -> Result<ITextCharacterFormat>

fn SetCharacterFormat(&self, value: Option<&ITextCharacterFormat>) -> Result<()>

fn FormattedText(&self) -> Result<ITextRange>

fn SetFormattedText(&self, value: Option<&ITextRange>) -> Result<()>

fn EndPosition(&self) -> Result<i32>

fn SetEndPosition(&self, value: i32) -> Result<()>

fn Gravity(&self) -> Result<RangeGravity>

fn SetGravity(&self, value: RangeGravity) -> Result<()>

fn Length(&self) -> Result<i32>

fn ParagraphFormat(&self) -> Result<ITextParagraphFormat>

fn SetParagraphFormat(&self, value: Option<&ITextParagraphFormat>) -> Result<()>

fn StartPosition(&self) -> Result<i32>

fn SetStartPosition(&self, value: i32) -> Result<()>

fn StoryLength(&self) -> Result<i32>

fn Text(&self) -> Result<HSTRING>

fn SetText(&self, value: &HSTRING) -> Result<()>

fn CanPaste(&self, format: i32) -> Result<bool>

fn ChangeCase(&self, value: LetterCase) -> Result<()>

fn Collapse(&self, value: bool) -> Result<()>

fn Copy(&self) -> Result<()>

fn Cut(&self) -> Result<()>

fn Delete(&self, unit: TextRangeUnit, count: i32) -> Result<i32>

fn EndOf(&self, unit: TextRangeUnit, extend: bool) -> Result<i32>

fn Expand(&self, unit: TextRangeUnit) -> Result<i32>

fn FindText( &self, value: &HSTRING, scanlength: i32, options: FindOptions ) -> Result<i32>

fn GetCharacterUtf32(&self, value: &mut u32, offset: i32) -> Result<()>

fn GetClone(&self) -> Result<ITextRange>

fn GetIndex(&self, unit: TextRangeUnit) -> Result<i32>

fn GetPoint( &self, horizontalalign: HorizontalCharacterAlignment, verticalalign: VerticalCharacterAlignment, options: PointOptions, point: &mut Point ) -> Result<()>

fn GetRect( &self, options: PointOptions, rect: &mut Rect, hit: &mut i32 ) -> Result<()>

fn GetText(&self, options: TextGetOptions, value: &mut HSTRING) -> Result<()>

fn GetTextViaStream( &self, options: TextGetOptions, value: Option<&IRandomAccessStream> ) -> Result<()>

fn InRange(&self, range: Option<&ITextRange>) -> Result<bool>

fn InsertImage( &self, width: i32, height: i32, ascent: i32, verticalalign: VerticalCharacterAlignment, alternatetext: &HSTRING, value: Option<&IRandomAccessStream> ) -> Result<()>

fn InStory(&self, range: Option<&ITextRange>) -> Result<bool>

fn IsEqual(&self, range: Option<&ITextRange>) -> Result<bool>

fn Move(&self, unit: TextRangeUnit, count: i32) -> Result<i32>

fn MoveEnd(&self, unit: TextRangeUnit, count: i32) -> Result<i32>

fn MoveStart(&self, unit: TextRangeUnit, count: i32) -> Result<i32>

fn Paste(&self, format: i32) -> Result<()>

fn ScrollIntoView(&self, value: PointOptions) -> Result<()>

fn MatchSelection(&self) -> Result<()>

fn SetIndex(&self, unit: TextRangeUnit, index: i32, extend: bool) -> Result<()>

fn SetPoint( &self, point: &Point, options: PointOptions, extend: bool ) -> Result<()>

fn SetRange(&self, startposition: i32, endposition: i32) -> Result<()>

fn SetText2(&self, options: TextSetOptions, value: &HSTRING) -> Result<()>

fn SetTextViaStream( &self, options: TextSetOptions, value: Option<&IRandomAccessStream> ) -> Result<()>

fn StartOf(&self, unit: TextRangeUnit, extend: bool) -> Result<i32>

Object Safety§

This trait is not object safe.

Implementors§