←Select platform

ItemSize Property

Summary

Gets or sets the size of each RasterImageListItem in the control.

Syntax

C#
VB
C++
public Size ItemSize { get; set; } 
Public Property ItemSize As Size 
public: 
property Size ItemSize { 
   Size get(); 
   void set (    Size ); 
} 

Property Value

A System.Drawing.Size structure that specifies the size of each RasterImageListItem in this RasterImageList in pixels.

Remarks

The ItemSize specifies the overall size of each item in the RasterImageList control.

When changing any of the item sizes or styles, you should pay special attention to the values you specify, in general, you should setup ItemSize to be large enough to accommodate ItemImageSize plus room for ItemBorderStyle and ItemImageBorderStyle. If you set the ShowItemText property to true, then you should also accommodate room for the item text in your calculations.

For more information about item appearance, refer to RasterImageList Appearance.

Example

For an example, refer to DrawItem event.

Requirements

Target Platforms

Help Version 19.0.2017.10.18
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.WinForms Assembly