Back to Devexpress

TileViewItemOptions.ItemSize Property

windowsforms-devexpress-dot-xtragrid-dot-views-dot-tile-dot-tileviewitemoptions-ebc9823d.md

latest3.6 KB
Original Source

TileViewItemOptions.ItemSize Property

Gets or sets the size of tiles within this TileView.

Namespace : DevExpress.XtraGrid.Views.Tile

Assembly : DevExpress.XtraGrid.v25.2.dll

NuGet Packages : DevExpress.Win.Grid, DevExpress.Win.Navigation

Declaration

csharp
[XtraSerializableProperty]
public Size ItemSize { get; set; }
vb
<XtraSerializableProperty>
Public Property ItemSize As Size

Property Value

TypeDescription
Size

A Size structure that is the size of tiles within this TileView.

|

Property Paths

You can access this nested property as listed below:

Object TypePath to ItemSize
TileView

.OptionsTiles .ItemSize

|

Remarks

You can stretch tiles vertically or horizontally, so that they fit the View’s height/width. See the TileViewItemOptions.StretchItems property for more information.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ItemSize property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

winforms-grid-tileview-thumbnails-async-load/CS/TileView-ManualThumbs/Form1.cs#L25

csharp
gridControl1.DataSource = textures;
tileView1.OptionsTiles.ItemSize = new Size(90, 40);
tileView1.GetThumbnailImage += TileView1_GetThumbnailImage;

winforms-grid-tileview-thumbnails-async-load/VB/TileView-ManualThumbs/Form1.vb#L22

vb
gridControl1.DataSource = textures
tileView1.OptionsTiles.ItemSize = New Size(90, 40)
AddHandler tileView1.GetThumbnailImage, AddressOf TileView1_GetThumbnailImage

See Also

DefaultItemSize

StretchItems

Tile View

TileViewItemOptions Class

TileViewItemOptions Members

DevExpress.XtraGrid.Views.Tile Namespace