Share via


ITextProvider2.RangeFromAnnotation(IRawElementProviderSimple) Method

Definition

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.

Applies to