Back to Devexpress

TileControl.GetItemSize(TileItemSize) Method

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

latest2.2 KB
Original Source

TileControl.GetItemSize(TileItemSize) Method

Returns the exact size of the target tile style in pixels.

Namespace : DevExpress.XtraEditors

Assembly : DevExpress.XtraEditors.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
public Size GetItemSize(
    TileItemSize itemSize
)
vb
Public Function GetItemSize(
    itemSize As TileItemSize
) As Size

Parameters

NameTypeDescription
itemSizeTileItemSize

A TileItemSize enumerator value whose exact size is to be obtained.

|

Returns

TypeDescription
Size

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

|

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 the specific tile style (or the target tile item if the TileControl.GetItemSize method overload is used) in pixels.

See Also

TileItem.ItemSize

TileControl.ItemSize

TileControl Class

TileControl Members

DevExpress.XtraEditors Namespace