Trait ITextRange_Impl
pub trait ITextRange_Impl: IUnknownImpl {
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: Ref<'_, ITextCharacterFormat>,
) -> Result<()>;
fn FormattedText(&self) -> Result<ITextRange>;
fn SetFormattedText(&self, value: Ref<'_, 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: Ref<'_, 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: Ref<'_, IRandomAccessStream>,
) -> Result<()>;
fn InRange(&self, range: Ref<'_, ITextRange>) -> Result<bool>;
fn InsertImage(
&self,
width: i32,
height: i32,
ascent: i32,
verticalAlign: VerticalCharacterAlignment,
alternateText: &HSTRING,
value: Ref<'_, IRandomAccessStream>,
) -> Result<()>;
fn InStory(&self, range: Ref<'_, ITextRange>) -> Result<bool>;
fn IsEqual(&self, range: Ref<'_, 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: Ref<'_, 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: Ref<'_, ITextCharacterFormat>) -> Result<()>
fn FormattedText(&self) -> Result<ITextRange>
fn SetFormattedText(&self, value: Ref<'_, 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: Ref<'_, 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: Ref<'_, IRandomAccessStream>, ) -> Result<()>
fn InRange(&self, range: Ref<'_, ITextRange>) -> Result<bool>
fn InsertImage( &self, width: i32, height: i32, ascent: i32, verticalAlign: VerticalCharacterAlignment, alternateText: &HSTRING, value: Ref<'_, IRandomAccessStream>, ) -> Result<()>
fn InStory(&self, range: Ref<'_, ITextRange>) -> Result<bool>
fn IsEqual(&self, range: Ref<'_, 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: Ref<'_, IRandomAccessStream>, ) -> Result<()>
fn StartOf(&self, unit: TextRangeUnit, extend: bool) -> Result<i32>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.