Skip to main content

TileItemElementCollection.Insert(Int32, TileItemElement) Method

Adds a specific TileItemElement to the current TileItemElementCollection and places it at the predefined position.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v24.2.dll

Declaration

public void Insert(
    int index,
    TileItemElement element
)

Parameters

Name Type Description
index Int32

An Int32 value that is the position inside the parent TileItemElementCollection a newly added TileItemElement will occupy.

element TileItemElement

A TileItemElement object to be added to the current TileItemElementCollection.

Remarks

The TileItemElementCollection.Add method adds a specific element to the current elements collection and places it last. To manually specify a position of the element added within the collection, use the 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