Trait windows::Win32::UI::Accessibility::ITextRangeProvider_Impl
pub trait ITextRangeProvider_Impl: Sized {
Show 18 methods
// Required methods
fn Clone(&self) -> Result<ITextRangeProvider>;
fn Compare(&self, range: Option<&ITextRangeProvider>) -> Result<BOOL>;
fn CompareEndpoints(
&self,
endpoint: TextPatternRangeEndpoint,
targetrange: Option<&ITextRangeProvider>,
targetendpoint: TextPatternRangeEndpoint,
) -> Result<i32>;
fn ExpandToEnclosingUnit(&self, unit: TextUnit) -> Result<()>;
fn FindAttribute(
&self,
attributeid: UIA_TEXTATTRIBUTE_ID,
val: &VARIANT,
backward: BOOL,
) -> Result<ITextRangeProvider>;
fn FindText(
&self,
text: &BSTR,
backward: BOOL,
ignorecase: BOOL,
) -> Result<ITextRangeProvider>;
fn GetAttributeValue(
&self,
attributeid: UIA_TEXTATTRIBUTE_ID,
) -> Result<VARIANT>;
fn GetBoundingRectangles(&self) -> Result<*mut SAFEARRAY>;
fn GetEnclosingElement(&self) -> Result<IRawElementProviderSimple>;
fn GetText(&self, maxlength: i32) -> Result<BSTR>;
fn Move(&self, unit: TextUnit, count: i32) -> Result<i32>;
fn MoveEndpointByUnit(
&self,
endpoint: TextPatternRangeEndpoint,
unit: TextUnit,
count: i32,
) -> Result<i32>;
fn MoveEndpointByRange(
&self,
endpoint: TextPatternRangeEndpoint,
targetrange: Option<&ITextRangeProvider>,
targetendpoint: TextPatternRangeEndpoint,
) -> Result<()>;
fn Select(&self) -> Result<()>;
fn AddToSelection(&self) -> Result<()>;
fn RemoveFromSelection(&self) -> Result<()>;
fn ScrollIntoView(&self, aligntotop: BOOL) -> Result<()>;
fn GetChildren(&self) -> Result<*mut SAFEARRAY>;
}
Required Methods§
fn Clone(&self) -> Result<ITextRangeProvider>
fn Compare(&self, range: Option<&ITextRangeProvider>) -> Result<BOOL>
fn CompareEndpoints( &self, endpoint: TextPatternRangeEndpoint, targetrange: Option<&ITextRangeProvider>, targetendpoint: TextPatternRangeEndpoint, ) -> Result<i32>
fn ExpandToEnclosingUnit(&self, unit: TextUnit) -> Result<()>
fn FindAttribute( &self, attributeid: UIA_TEXTATTRIBUTE_ID, val: &VARIANT, backward: BOOL, ) -> Result<ITextRangeProvider>
fn FindText( &self, text: &BSTR, backward: BOOL, ignorecase: BOOL, ) -> Result<ITextRangeProvider>
fn GetAttributeValue( &self, attributeid: UIA_TEXTATTRIBUTE_ID, ) -> Result<VARIANT>
fn GetBoundingRectangles(&self) -> Result<*mut SAFEARRAY>
fn GetEnclosingElement(&self) -> Result<IRawElementProviderSimple>
fn GetText(&self, maxlength: i32) -> Result<BSTR>
fn Move(&self, unit: TextUnit, count: i32) -> Result<i32>
fn MoveEndpointByUnit( &self, endpoint: TextPatternRangeEndpoint, unit: TextUnit, count: i32, ) -> Result<i32>
fn MoveEndpointByRange( &self, endpoint: TextPatternRangeEndpoint, targetrange: Option<&ITextRangeProvider>, targetendpoint: TextPatternRangeEndpoint, ) -> Result<()>
fn Select(&self) -> Result<()>
fn AddToSelection(&self) -> Result<()>
fn RemoveFromSelection(&self) -> Result<()>
fn ScrollIntoView(&self, aligntotop: BOOL) -> Result<()>
fn GetChildren(&self) -> Result<*mut SAFEARRAY>
Object Safety§
This trait is not object safe.