ITextProvider2.RangeFromAnnotation(IRawElementProviderSimple) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Exposes a text range that contains the text that is the target of the annotation associated with the specified annotation element.
public:
ITextRangeProvider ^ RangeFromAnnotation(IRawElementProviderSimple ^ annotationElement);
ITextRangeProvider RangeFromAnnotation(IRawElementProviderSimple const& annotationElement);
public ITextRangeProvider RangeFromAnnotation(IRawElementProviderSimple annotationElement);
function rangeFromAnnotation(annotationElement)
Public Function RangeFromAnnotation (annotationElement As IRawElementProviderSimple) As ITextRangeProvider
Parameters
- annotationElement
- IRawElementProviderSimple
The provider for an element that implements the IAnnotationProvider interface. The annotation element is a sibling of the element that implements the ITextProvider2 interface for the document.
Returns
A text range that contains the annotation target text.