Table of Contents

Class ListControlItem

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

Custom item for ListBox, ComboBox or other ListControl descendants. This class has Text, Value and other item properties.

public class ListControlItem : BaseControlItem, IBaseControlItem, IBaseObject
Inheritance
ListControlItem
Implements
Derived

Constructors

ListControlItem()

Initializes a new instance of the ListControlItem class.

ListControlItem(string, Action?)

Initializes a new instance of the ListControlItem class.

ListControlItem(string, object?)

Initializes a new instance of the ListControlItem class.

Properties

Action

Gets or sets Action associated with this ListControlItem instance.

Alignment

Gets or sets alignment of the item.

BackgroundColor

Gets or sets background color of the item.

Border

Gets or sets border of the item.

CanRemove

Gets or sets whether item can be removed.

CheckBoxAllowAllStatesForUser

Gets or sets whether user can set the checkbox to the third state by clicking. If property is null (default), control's setting is used.

CheckBoxThreeState

Gets or sets a value indicating whether checkbox will allow three check states rather than two. If property is null (default), control's setting is used.

CheckBoxVisible

Gets or sets whether to show check box inside the item. This property (if specified) overrides global checkboxes visibility setting in the control.

CheckState

Gets or sets state of the check box associated with the item.

DisabledImage

Gets or sets disabled Image associated with the item.

DoubleClickAction

Gets or sets Action which is executed on mouse double click.

Font

Gets or sets Font associated with the item.

FontStyle

Gets or sets FontStyle associated with the item.

ForegroundColor

Gets or sets foreground color of the item.

Image

Gets or sets Image associated with the item.

MinHeight

Gets or sets minimal item height.

SelectedImage

Gets or sets Image associated with the item when it is selected.

SvgImage

Gets or sets SvgImage associated with the item.

SvgImageSize

Gets or sets size of the svg image.

Text

Gets or sets text which is displayed in the ListControl.

Value

Gets or sets user data. This is different from Tag.

Methods

ToString()

Returns a string that represents the current object.