The requested page is not available for the requested platform. You are viewing the content for .NET Framework 4.5.2+ platform.
.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
The page you are viewing does not exist in the .NET Standard 2.0+ platform documentation. This link will take you to the parent topic of the current section.

SubDocument.GetShapes(DocumentRange) Method

Obsolete. Gets a collection of Shape objects contained in the specified document range. Use a method accessible with the RichEditControl.Document.Shapes.Get(DocumentRange range) notation instead.

Namespace: DevExpress.XtraRichEdit.API.Native

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

Declaration

[Obsolete("This method has become obsolete. Use the 'DevExpress.XtraRichEdit.API.Native.ReadOnlyDocumentShapeCollection.Get(DocumentRange range)' method instead.")]
ShapeCollection GetShapes(
    DocumentRange range
)
<Obsolete("This method has become obsolete. Use the 'DevExpress.XtraRichEdit.API.Native.ReadOnlyDocumentShapeCollection.Get(DocumentRange range)' method instead.")>
Function GetShapes(
    range As DocumentRange
) As ShapeCollection

Parameters

Name Type Description
range DocumentRange

A DocumentRange object that is the range of the document.

Returns

Type Description
ShapeCollection

A ShapeCollection containing shapes of the specified range.

Remarks

Important

This method is obsolete. Use the ReadOnlyShapeCollection.Get method instead.

If you operate with a selection range, the GetShapes method should be enclosed within a DocumentRange.BeginUpdateDocument - DocumentRange.EndUpdateDocument method pair. Otherwise, an incorrect document model might be selected, resulting in an exception "Error: specified document position or range belongs to other document or subdocument" being thrown.

See Also