Skip to main content
A newer version of this page is available. .
Row

ShapeCollection.GetShapesByName(String) Method

Gets a drawing object(s) by name.

Namespace: DevExpress.Spreadsheet

Assembly: DevExpress.Spreadsheet.v18.2.Core.dll

Declaration

IList<Shape> GetShapesByName(
    string shapeName
)

Parameters

Name Type Description
shapeName String

A string that is the name of a drawing object.

Returns

Type Description
IList<Shape>

A collection of drawing objects with the same name.

Remarks

A drawing object name is specified by the Shape.Name property. A worksheet may contain more than one drawing object with the same name. In this situation, the IList<T><Shape,> collection returned by the GetShapesByName method contains several items.

If a drawing object with the specified name is not found, the method returns an empty list.

See Also