Skip to main content
All docs
V25.1
  • ASPxClientDiagram.GetItemByKey(key) Method

    Returns a shape or connector object specified by its key.

    Declaration

    GetItemByKey(
        key: any
    ): DiagramItem

    Parameters

    Name Type Description
    key any

    The item key.

    Returns

    Type Description
    DiagramItem

    The DiagramShape or DiagramConnector object with the specified key.

    Remarks

    The Item.key property specifies the item’s key in a data source. If a diagram is not bound to a data source, the key property value is empty. In this instance, use the GetItemById(id) method to get an item by its internal identifier. An item always has an identifier.

    See Also