Skip to main content

TileControl.GetItemSize(TileItem) Method

Returns the exact size of the target TileItem in pixels.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v23.2.dll

NuGet Package: DevExpress.Win.Navigation

Declaration

public Size GetItemSize(
    TileItem item
)

Parameters

Name Type Description
item TileItem

A TileItem whose size is to be obtained.

Returns

Type Description
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