Skip to main content
A newer version of this page is available. .

Shape.Range Property

Gets the anchoring range for the specified shape.

Namespace: DevExpress.XtraRichEdit.API.Native

Assembly: DevExpress.RichEdit.v18.2.Core.dll

Declaration

DocumentRange Range { get; }

Property Value

Type Description
DocumentRange

A DocumentRange object that is the anchoring range for the specified shape.

Remarks

The Shape is anchored to a document range, but can be positioned anywhere on the page that contains the anchor. If you specify the document position when you create a shape via the ShapeCollection.InsertPicture or a ShapeCollection.InsertTextBox methods, the anchor is located at the beginning of the first paragraph that contains the specified position.

The shape will always remain on the same page as its anchor.

Tip

To select a shape, assign the corresponding Range to the Document.Selection property.

The following code snippets (auto-collected from DevExpress Examples) contain references to the Range property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also