Class ListBoxItemPaintEventArgs
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
- HasSelection
Gets a value indicating whether the current item is selected, taking into account any selection visibility settings.
- 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 container control in which item is painted.
- PaintRectangle
Gets the rectangle, in client coordinates, that defines the area available for painting the item's content, excluding any padding. This property uses the padding settings defined by the associated list control to determine the available painting area. ClientRectangle is used as the base rectangle from which the padding is applied.
- TextColor
Gets foreground color of the item.
- UseColumns
Gets or sets whether to use columns for item painting.
- Visible
Gets or sets whether real painting need to be performed. When Visible is False, caller need only LabelMetrics without any actual painting.
- VisibleTextForDisplay
Gets the text to display for the item, taking into account the current visibility settings.
Methods
- GetImage(ListControlItem?, IListControlItemContainer?, bool)
Retrieves the image associated with the specified list control item, based on its selection and enabled state.
- GetImage(bool)
Retrieves the image associated with the current item state, based on whether the item is selected and enabled.
- GetItemImages(ListControlItem?, IListControlItemContainer?)
Retrieves the set of images associated with the specified list control item, taking into account its selection state and the containing list box.
- GetTextColor(bool)
Gets text color.