pub trait ITextRange2_Impl: Sized + ITextSelection_Impl {
Show 40 methods
// Required methods
fn GetCch(&self) -> Result<i32>;
fn GetCells(&self) -> Result<IUnknown>;
fn GetColumn(&self) -> Result<IUnknown>;
fn GetCount(&self) -> Result<i32>;
fn GetDuplicate2(&self) -> Result<ITextRange2>;
fn GetFont2(&self) -> Result<ITextFont2>;
fn SetFont2(&self, pfont: Option<&ITextFont2>) -> Result<()>;
fn GetFormattedText2(&self) -> Result<ITextRange2>;
fn SetFormattedText2(&self, prange: Option<&ITextRange2>) -> Result<()>;
fn GetGravity(&self) -> Result<i32>;
fn SetGravity(&self, value: i32) -> Result<()>;
fn GetPara2(&self) -> Result<ITextPara2>;
fn SetPara2(&self, ppara: Option<&ITextPara2>) -> Result<()>;
fn GetRow(&self) -> Result<ITextRow>;
fn GetStartPara(&self) -> Result<i32>;
fn GetTable(&self) -> Result<IUnknown>;
fn GetURL(&self) -> Result<BSTR>;
fn SetURL(&self, bstr: &BSTR) -> Result<()>;
fn AddSubrange(&self, cp1: i32, cp2: i32, activate: i32) -> Result<()>;
fn BuildUpMath(&self, flags: i32) -> Result<()>;
fn DeleteSubrange(&self, cpfirst: i32, cplim: i32) -> Result<()>;
fn Find(
&self,
prange: Option<&ITextRange2>,
count: i32,
flags: i32,
) -> Result<i32>;
fn GetChar2(&self, pchar: *mut i32, offset: i32) -> Result<()>;
fn GetDropCap(&self, pcline: *mut i32, pposition: *mut i32) -> Result<()>;
fn GetInlineObject(
&self,
ptype: *mut i32,
palign: *mut i32,
pchar: *mut i32,
pchar1: *mut i32,
pchar2: *mut i32,
pcount: *mut i32,
ptexstyle: *mut i32,
pccol: *mut i32,
plevel: *mut i32,
) -> Result<()>;
fn GetProperty(&self, type: i32) -> Result<i32>;
fn GetRect(
&self,
type: i32,
pleft: *mut i32,
ptop: *mut i32,
pright: *mut i32,
pbottom: *mut i32,
phit: *mut i32,
) -> Result<()>;
fn GetSubrange(
&self,
isubrange: i32,
pcpfirst: *mut i32,
pcplim: *mut i32,
) -> Result<()>;
fn GetText2(&self, flags: i32) -> Result<BSTR>;
fn HexToUnicode(&self) -> Result<()>;
fn InsertTable(&self, ccol: i32, crow: i32, autofit: i32) -> Result<()>;
fn Linearize(&self, flags: i32) -> Result<()>;
fn SetActiveSubrange(&self, cpanchor: i32, cpactive: i32) -> Result<()>;
fn SetDropCap(&self, cline: i32, position: i32) -> Result<()>;
fn SetProperty(&self, type: i32, value: i32) -> Result<()>;
fn SetText2(&self, flags: i32, bstr: &BSTR) -> Result<()>;
fn UnicodeToHex(&self) -> Result<()>;
fn SetInlineObject(
&self,
type: i32,
align: i32,
char: i32,
char1: i32,
char2: i32,
count: i32,
texstyle: i32,
ccol: i32,
) -> Result<()>;
fn GetMathFunctionType(&self, bstr: &BSTR) -> Result<i32>;
fn InsertImage(
&self,
width: i32,
height: i32,
ascent: i32,
type: i32,
bstralttext: &BSTR,
pstream: Option<&IStream>,
) -> Result<()>;
}
Required Methods§
fn GetCch(&self) -> Result<i32>
fn GetCells(&self) -> Result<IUnknown>
fn GetColumn(&self) -> Result<IUnknown>
fn GetCount(&self) -> Result<i32>
fn GetDuplicate2(&self) -> Result<ITextRange2>
fn GetFont2(&self) -> Result<ITextFont2>
fn SetFont2(&self, pfont: Option<&ITextFont2>) -> Result<()>
fn GetFormattedText2(&self) -> Result<ITextRange2>
fn SetFormattedText2(&self, prange: Option<&ITextRange2>) -> Result<()>
fn GetGravity(&self) -> Result<i32>
fn SetGravity(&self, value: i32) -> Result<()>
fn GetPara2(&self) -> Result<ITextPara2>
fn SetPara2(&self, ppara: Option<&ITextPara2>) -> Result<()>
fn GetRow(&self) -> Result<ITextRow>
fn GetStartPara(&self) -> Result<i32>
fn GetTable(&self) -> Result<IUnknown>
fn GetURL(&self) -> Result<BSTR>
fn SetURL(&self, bstr: &BSTR) -> Result<()>
fn AddSubrange(&self, cp1: i32, cp2: i32, activate: i32) -> Result<()>
fn BuildUpMath(&self, flags: i32) -> Result<()>
fn DeleteSubrange(&self, cpfirst: i32, cplim: i32) -> Result<()>
fn Find( &self, prange: Option<&ITextRange2>, count: i32, flags: i32, ) -> Result<i32>
fn GetChar2(&self, pchar: *mut i32, offset: i32) -> Result<()>
fn GetDropCap(&self, pcline: *mut i32, pposition: *mut i32) -> Result<()>
fn GetInlineObject( &self, ptype: *mut i32, palign: *mut i32, pchar: *mut i32, pchar1: *mut i32, pchar2: *mut i32, pcount: *mut i32, ptexstyle: *mut i32, pccol: *mut i32, plevel: *mut i32, ) -> Result<()>
fn GetProperty(&self, type: i32) -> Result<i32>
fn GetRect( &self, type: i32, pleft: *mut i32, ptop: *mut i32, pright: *mut i32, pbottom: *mut i32, phit: *mut i32, ) -> Result<()>
fn GetSubrange( &self, isubrange: i32, pcpfirst: *mut i32, pcplim: *mut i32, ) -> Result<()>
fn GetText2(&self, flags: i32) -> Result<BSTR>
fn HexToUnicode(&self) -> Result<()>
fn InsertTable(&self, ccol: i32, crow: i32, autofit: i32) -> Result<()>
fn Linearize(&self, flags: i32) -> Result<()>
fn SetActiveSubrange(&self, cpanchor: i32, cpactive: i32) -> Result<()>
fn SetDropCap(&self, cline: i32, position: i32) -> Result<()>
fn SetProperty(&self, type: i32, value: i32) -> Result<()>
fn SetText2(&self, flags: i32, bstr: &BSTR) -> Result<()>
fn UnicodeToHex(&self) -> Result<()>
fn SetInlineObject( &self, type: i32, align: i32, char: i32, char1: i32, char2: i32, count: i32, texstyle: i32, ccol: i32, ) -> Result<()>
fn GetMathFunctionType(&self, bstr: &BSTR) -> Result<i32>
fn InsertImage( &self, width: i32, height: i32, ascent: i32, type: i32, bstralttext: &BSTR, pstream: Option<&IStream>, ) -> Result<()>
Object Safety§
This trait is not object safe.