_MeasureItemEventArgs Type

Provides data for the OnMeasureItem event of the TCnListBox, TCnComboBox, TCnCheckedListBox, and TcnMenuItem (Future) controls.

Namespace: CNClrLib.Control.EventArgs
type
 _MeasureItemEventArgs = CNClrLib.Windows._MeasureItemEventArgs;

This event is sent when the OwnerDraw property of TCnListBox, TCnComboBox, TCnCheckedListBox, or TCnMenuItem(Future Release) is set to true. It is used to tell the drawing function how to size an item.

For more information, see MeasureItemEventArgs in C#.

Properties
Description

Graphics

Gets the Graphics object to measure against.

Index

Gets the index of the item for which the height and width is needed.

ItemHeight

Gets or sets the height of the item specified by the Index.

ItemWidth

Gets or sets the width of the item specified by the Index.