Skip to main content

Shape.Range Property

Returns the anchoring range for a shape.

Namespace: DevExpress.XtraRichEdit.API.Native

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

NuGet Packages: DevExpress.RichEdit.Core, DevExpress.Win.Navigation

Declaration

DocumentRange Range { get; }

Property Value

Type Description
DocumentRange

A range to which the shape is anchored.

Remarks

A shape is anchored to a document range, but you can position it anywhere on the page that contains the shape’s anchor. The pos parameter of the ShapeCollection.Insert method specifies the anchor’s position within the document. The anchor sign appears at the beginning of the paragraph that contains the anchor.

The shape's anchor

A shape always remains on the same page as its anchor. If the Shape.LockAnchor property is true, you cannot move the anchor to a different position on the page.

Tip

To select a shape, assign its 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