Back to Devexpress

ShapeCollection.GetShapeById(Int32) Method

officefileapi-devexpress-dot-spreadsheet-dot-shapecollection-dot-getshapebyid-x28-system-dot-int32-x29.md

latest1.5 KB
Original Source

ShapeCollection.GetShapeById(Int32) Method

Gets a drawing object by its ID value.

Namespace : DevExpress.Spreadsheet

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

NuGet Package : DevExpress.Spreadsheet.Core

Declaration

csharp
Shape GetShapeById(
    int id
)
vb
Function GetShapeById(
    id As Integer
) As Shape

Parameters

NameTypeDescription
idInt32

An integer value specifying the drawing object’s unique identifier.

|

Returns

TypeDescription
Shape

A Shape object representing the drawing object with the specified identifier.

|

Remarks

If the drawing object with the specified unique identifier is not found, the GetShapeById method returns null.

See Also

ShapeCollection Interface

ShapeCollection Members

DevExpress.Spreadsheet Namespace