TileItemFrameCollection.Add(TileItemFrame) Method
Adds a new TileItemFrame into a TileItemFrameCollection.
Namespace: DevExpress.XtraEditors
Assembly: DevExpress.XtraEditors.v24.2.dll
NuGet Package: DevExpress.Win.Navigation
#Declaration
public int Add(
TileItemFrame item
)
#Parameters
Name | Type | Description |
---|---|---|
item | Tile |
A Tile |
#Returns
Type | Description |
---|---|
Int32 | An Int32 value indicating the position into which the new frame was added. |
#Remarks
A TileItem‘s frame collection can be obtained via the TileItem.Frames property. The Add method adds a new tile item frame into a TileItemFrameCollection collection and places it last. Use the TileItemFrameCollection.Insert method instead to manually specify added group’s position. The TileItemFrameCollection.Remove method deletes a specific tile group out of a TileItemFrameCollection.
To add a frame into a tile’s TileItem.Frames collection at design-time, use the Frame Collection Editor. See the Tile Animation topic to learn more.