ShapeCollection.GetShapesByName(String) Method
Gets a drawing object(s) by name.
Namespace: DevExpress.Spreadsheet
Assembly: DevExpress.Spreadsheet.v20.2.Core.dll
NuGet Package: DevExpress.Spreadsheet.Core
NuGet Packages: DevExpress.Spreadsheet.Core, DevExpress.WindowsDesktop.Spreadsheet.Core
Declaration
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.