Back to Devexpress

IdxRichEditShape.Range Property

vcl-dxrichedit-dot-nativeapi-dot-idxricheditshape-85451a57.md

latest1.7 KB
Original Source

IdxRichEditShape.Range Property

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

Declaration

delphi
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

IdxRichEditShape Interface

IdxRichEditShape Members

dxRichEdit.NativeApi Unit