windowsforms-devexpress-dot-xtragrid-dot-views-dot-tile-dot-tileviewitemoptions-ebc9823d.md
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
[XtraSerializableProperty]
public Size ItemSize { get; set; }
<XtraSerializableProperty>
Public Property ItemSize As Size
| Type | Description |
|---|---|
| Size |
A Size structure that is the size of tiles within this TileView.
|
You can access this nested property as listed below:
| Object Type | Path to ItemSize |
|---|---|
| TileView |
.OptionsTiles .ItemSize
|
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
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
gridControl1.DataSource = textures
tileView1.OptionsTiles.ItemSize = New Size(90, 40)
AddHandler tileView1.GetThumbnailImage, AddressOf TileView1_GetThumbnailImage
See Also