Table of Contents

Class ListBoxItemPaintEventArgs

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

Provides data for the Paint(object, ListBoxItemPaintEventArgs) event.

public class ListBoxItemPaintEventArgs : PaintEventArgs
Inheritance
ListBoxItemPaintEventArgs

Constructors

ListBoxItemPaintEventArgs(IListControlItemContainer, Graphics, RectD, int)

Initializes a new instance of the ListBoxItemPaintEventArgs class.

Properties

IsCurrent

Gets whether item is current.

IsSelected

Gets whether item is selected.

Item

Gets an item.

ItemAlignment

Gets alignment of the item.

ItemFont

Gets font of the item.

ItemImages

Gets normal and disabled images of the item.

ItemIndex

Gets index of the item.

ItemMinHeight

Gets minimal height of the item.

ItemText

Gets text of the item.

ItemTextForDisplay

Gets text of the item for display.

LabelMetrics

Gets draw label result returned after painting of the label is performed.

ListBox

Gets control which item is painted.

TextColor

Gets foreground color of the item.

Visible

Gets or sets whether real painting need to be performed. When Visible is False, caller need only LabelMetrics without any actual painting.

Methods

GetTextColor(bool)

Gets text color.