Skip to main content

TileItemElementCollection.Add(TileItemElement) Method

Adds a specific TileItemElement to the current TileItemElementCollection.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v24.2.dll

Declaration

public int Add(
    TileItemElement element
)

Parameters

Name Type Description
element TileItemElement

A TileItemElement object to be added to the current TileItemElementCollection.

Returns

Type Description
Int32

An Int32 value that is the index of the added TileItemElement. Returns -1 if no element has been added.

Remarks

The Add method adds a specific element to the current elements collection and places it last. To manually specify the position of the element added within the collection, use the TileItemElementCollection.Insert method instead. The TileItemElementCollection.Remove method removes a specific element from the parent collection.

A collection of TileItemElements used by the current tile item can be accessed via its TileItem.Elements property.

See Also