Skip to main content

IdxRichEditShape.Range Property

Returns the document range to which the floating shape is anchored.

Declaration

property Range: IdxRichEditDocumentRange read;

Property Value

Type
IdxRichEditDocumentRange

Remarks

The floating shape’s anchor is always located at the beginning of the first paragraph containing the document position passed as the APos parameter to the document‘s InsertPicture or InsertTextBox function. Since the anchoring range corresponds to the specified document position, the Range.Length property always returns 1.

Refer to the IdxRichEditDocumentRange interface description for detailed information on working with document ranges.

To delete the floating shape, pass the Range property value as a parameter of the parent document’s Delete procedure.

See Also