Back to Devexpress

TileControl.GetItemSize(TileItem) Method

windowsforms-devexpress-dot-xtraeditors-dot-tilecontrol-dot-getitemsize-x28-devexpress-dot-xtraeditors-dot-tileitem-x29.md

latest2.1 KB
Original Source

TileControl.GetItemSize(TileItem) Method

Returns the exact size of the target TileItem in pixels.

Namespace : DevExpress.XtraEditors

Assembly : DevExpress.XtraEditors.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
public Size GetItemSize(
    TileItem item
)
vb
Public Function GetItemSize(
    item As TileItem
) As Size

Parameters

NameTypeDescription
itemTileItem

A TileItem whose size is to be obtained.

|

Returns

TypeDescription
Size

A Size structure that is the size of the target tile.

|

Remarks

Tile items can have one of four predefined styles - small, medium, wide or large (see the TileItem.ItemSize property). The exact size of each tile depends on both its style and the elemental tile size specified by the TileControl.ItemSize property. The GetItemSize method returns the exact size of a tile (or a specific tile style if the TileControl.GetItemSize method overload is used) in pixels.

See Also

TileItem.ItemSize

TileControl.ItemSize

TileControl Class

TileControl Members

DevExpress.XtraEditors Namespace