.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+

Shape.Range Property

Returns the anchoring range for a shape.

Namespace: DevExpress.XtraRichEdit.API.Native

Assembly: DevExpress.RichEdit.v21.1.Core.dll


DocumentRange Range { get; }

Property Value

Type Description

A range to which the shape is anchored.


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.


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

See Also