TileItemElementCollection.Add(TileItemElement) Method
Adds a specific TileItemElement to the current TileItemElementCollection.
Namespace: DevExpress.XtraEditors
Assembly: DevExpress.XtraEditors.v19.1.dll
Declaration
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.
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Add(TileItemElement) method.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.