Trait ITextDocument_Impl
pub trait ITextDocument_Impl: IUnknownImpl {
Show 27 methods
// Required methods
fn CaretType(&self) -> Result<CaretType>;
fn SetCaretType(&self, value: CaretType) -> Result<()>;
fn DefaultTabStop(&self) -> Result<f32>;
fn SetDefaultTabStop(&self, value: f32) -> Result<()>;
fn Selection(&self) -> Result<ITextSelection>;
fn UndoLimit(&self) -> Result<u32>;
fn SetUndoLimit(&self, value: u32) -> Result<()>;
fn CanCopy(&self) -> Result<bool>;
fn CanPaste(&self) -> Result<bool>;
fn CanRedo(&self) -> Result<bool>;
fn CanUndo(&self) -> Result<bool>;
fn ApplyDisplayUpdates(&self) -> Result<i32>;
fn BatchDisplayUpdates(&self) -> Result<i32>;
fn BeginUndoGroup(&self) -> Result<()>;
fn EndUndoGroup(&self) -> Result<()>;
fn GetDefaultCharacterFormat(&self) -> Result<ITextCharacterFormat>;
fn GetDefaultParagraphFormat(&self) -> Result<ITextParagraphFormat>;
fn GetRange(
&self,
startPosition: i32,
endPosition: i32,
) -> Result<ITextRange>;
fn GetRangeFromPoint(
&self,
point: &Point,
options: PointOptions,
) -> Result<ITextRange>;
fn GetText(
&self,
options: TextGetOptions,
value: &mut HSTRING,
) -> Result<()>;
fn LoadFromStream(
&self,
options: TextSetOptions,
value: Ref<'_, IRandomAccessStream>,
) -> Result<()>;
fn Redo(&self) -> Result<()>;
fn SaveToStream(
&self,
options: TextGetOptions,
value: Ref<'_, IRandomAccessStream>,
) -> Result<()>;
fn SetDefaultCharacterFormat(
&self,
value: Ref<'_, ITextCharacterFormat>,
) -> Result<()>;
fn SetDefaultParagraphFormat(
&self,
value: Ref<'_, ITextParagraphFormat>,
) -> Result<()>;
fn SetText(&self, options: TextSetOptions, value: &HSTRING) -> Result<()>;
fn Undo(&self) -> Result<()>;
}
Required Methods§
fn CaretType(&self) -> Result<CaretType>
fn SetCaretType(&self, value: CaretType) -> Result<()>
fn DefaultTabStop(&self) -> Result<f32>
fn SetDefaultTabStop(&self, value: f32) -> Result<()>
fn Selection(&self) -> Result<ITextSelection>
fn UndoLimit(&self) -> Result<u32>
fn SetUndoLimit(&self, value: u32) -> Result<()>
fn CanCopy(&self) -> Result<bool>
fn CanPaste(&self) -> Result<bool>
fn CanRedo(&self) -> Result<bool>
fn CanUndo(&self) -> Result<bool>
fn ApplyDisplayUpdates(&self) -> Result<i32>
fn BatchDisplayUpdates(&self) -> Result<i32>
fn BeginUndoGroup(&self) -> Result<()>
fn EndUndoGroup(&self) -> Result<()>
fn GetDefaultCharacterFormat(&self) -> Result<ITextCharacterFormat>
fn GetDefaultParagraphFormat(&self) -> Result<ITextParagraphFormat>
fn GetRange(&self, startPosition: i32, endPosition: i32) -> Result<ITextRange>
fn GetRangeFromPoint( &self, point: &Point, options: PointOptions, ) -> Result<ITextRange>
fn GetText(&self, options: TextGetOptions, value: &mut HSTRING) -> Result<()>
fn LoadFromStream( &self, options: TextSetOptions, value: Ref<'_, IRandomAccessStream>, ) -> Result<()>
fn Redo(&self) -> Result<()>
fn SaveToStream( &self, options: TextGetOptions, value: Ref<'_, IRandomAccessStream>, ) -> Result<()>
fn SetDefaultCharacterFormat( &self, value: Ref<'_, ITextCharacterFormat>, ) -> Result<()>
fn SetDefaultParagraphFormat( &self, value: Ref<'_, ITextParagraphFormat>, ) -> Result<()>
fn SetText(&self, options: TextSetOptions, value: &HSTRING) -> Result<()>
fn Undo(&self) -> Result<()>
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.