[]
        
(Showing Draft Content)

C1.Framework.ListBoxElement

ListBoxElement Class

Implements base ListBox with "Select/unselect All" option

Inheritance
ListBoxElement
Implements
Namespace: C1.Framework
Assembly: C1.Win.8.dll
Syntax
public class ListBoxElement : DockPanel, ISupportUia

Constructors

Name Description
ListBoxElement()

Creates a new instance of ListBoxElement

Properties

Name Description
CheckAll

Gets "CheckAll" element.

EmptyString

Gets or sets a value used for displaying empty strings.

Items

Gets checklist child items as a ElementList.

NullEmptyString

Gets or sets a value used for displaying null ore empty strings.

NullString

Gets or sets a value used for displaying null strings.

ScrollableCheckList

Gets list holder panel.

SelectedIndex

Gets or sets currently selected index.

UpdateCheckList

Gets or sets a value determines whether checklist is blocked to be updated or not.

Methods

Name Description
AddItem(string, bool)

Adds new checkbox item with determined displayed text and checkstate.

AreAllItemsChecked(bool)

Geths a value indicates whether all items has equal checkstate determined

ClearItems()

Clears checklist.

GetItemCheckState(int)

Sets checkstate for an item with the certain index.

GetItemChecked(int)

Gets a value that indicates whether the item with certain index is checked or not.

GetObjectCheckState(object)

Gets item's checkstate.

IsItemChecked(string)

Gets a value that indicates whether the item is checked or not.

OnItemChecked(C1ItemCheckEventArgs)

Raizes an event when item's check state changed.

OnKeyDown(KeyEventArgs)

Called by the host control when the user presses a key and this Element has the focus.

SetItemCheckState(int, CheckState)

Sets checkstate for an item with the certain index.

SetItemChecked(int, bool)

Sets CheckState for an item with the certain index.

SetObjectCheckState(object, CheckState)

Sets item's checkstate.

UpdateSelectAllCheckState()

Updates "Select All" checkbox checkstate according with list items checkstates.

Events

Name Description
ItemChecked

Event raized when item's check state changed.