.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.v20.1.Core.dll

Declaration

DocumentRange Range { get; }
ReadOnly Property Range As DocumentRange

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.

See Also