Back to Devexpress

TileItemElementCollection.Add(TileItemElement) Method

windowsforms-devexpress-dot-xtraeditors-dot-tileitemelementcollection-dot-add-x28-devexpress-dot-xtraeditors-dot-tileitemelement-x29.md

latest2.9 KB
Original Source

TileItemElementCollection.Add(TileItemElement) Method

Adds a specific TileItemElement to the current TileItemElementCollection.

Namespace : DevExpress.XtraEditors

Assembly : DevExpress.XtraEditors.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
public int Add(
    TileItemElement element
)
vb
Public Function Add(
    element As TileItemElement
) As Integer

Parameters

NameTypeDescription
elementTileItemElement

A TileItemElement object to be added to the current TileItemElementCollection.

|

Returns

TypeDescription
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

Insert(Int32, TileItemElement)

Remove(TileItemElement)

Elements

TileItemElementCollection Class

TileItemElementCollection Members

DevExpress.XtraEditors Namespace