Back to Devexpress

ShapeCollection.RemoveAt(Int32) Method

officefileapi-devexpress-dot-xtrarichedit-dot-api-dot-native-dot-shapecollection-dot-removeat-x28-system-dot-int32-x29.md

latest1.6 KB
Original Source

ShapeCollection.RemoveAt(Int32) Method

Removes a shape with the specified index from the collection.

Namespace : DevExpress.XtraRichEdit.API.Native

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

NuGet Package : DevExpress.RichEdit.Core

Declaration

csharp
void RemoveAt(
    int index
)
vb
Sub RemoveAt(
    index As Integer
)

Parameters

NameTypeDescription
indexInt32

A zero-based index of the shape to remove. It should not be negative and should be less than the number of elements in the collection.

|

Remarks

The following code removes the first shape from the collection:

csharp
Document document = wordProcessor.Document;
document.Shapes.RemoveAt(0);
vb
Dim document As Document = wordProcessor.Document
document.Shapes.RemoveAt(0)

See Also

ShapeCollection Interface

ShapeCollection Members

DevExpress.XtraRichEdit.API.Native Namespace