ListView.TileSize Property

 

Gets or sets the size of the tiles shown in tile view.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

[<BrowsableAttribute(true)>]
member TileSize : Size with get, set

Property Value

Type: System.Drawing.Size

A Size that contains the new tile size.

This property controls the size of tiles when the View property is set to View.Tile. Setting this property is useful to prevent line-wrapping when subitem text is too long to be displayed on a single line.

The following code example demonstrates how to use the ListView tiling feature. In the example, the tile view displays items that represent books. Each item is shown as a tile containing an icon of a book, the title, the author, and the publication year. For the example code to work, you must include an icon file named Book.ico in the same directory as the example. To see the tile view without icons, comment out the lines relating to the ImageList object.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 2.0
Return to top
Show: