All docs
V20.1
20.2 (EAP/Beta)
20.1
19.2
The page you are viewing does not exist in version 19.2. This link will take you to the root page.
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.
.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+

ShapeCollection.Remove(Shape) Method

Removes the specified shape from the collection.

Namespace: DevExpress.XtraRichEdit.API.Native

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

Declaration

bool Remove(
    Shape shape
)
Function Remove(
    shape As Shape
) As Boolean

Parameters

Name Type Description
shape Shape

A shape to remove.

Returns

Type Description
Boolean

true if the element is found and successfully removed; otherwise, false.

Remarks

The following code example removes all shape groups from the collection:

Document document = wordProcessor.Document;
ShapeCollection shapes = document.Shapes;
for (int i = shapes.Count - 1; i >= 0; i--)
{
    if (shapes[i].Type == ShapeType.Group)
        shapes.Remove(shapes[i]);
}
See Also