Skip to main content

listxelement-class

The row element that lets select value from [multilevel] list.

public class Korzh.EasyQuery.WinForms.ListXElement
: LabelXElement

Assembly: Korzh.EasyQuery.WinForms.dll

Constructors

NameTypeDescription
ListXElement(string type)voidInitializes a new instance of the Korzh.EasyQuery.WinForms.ListXElement class.
ListXElement()voidInitializes a new instance of the Korzh.EasyQuery.WinForms.ListXElement class.

Properties

NameTypeDescription
AllowListboolGets or sets a value indicating whether this row element allows list values.
AutoSelectFirstItemboolGets or sets a value indicating whether the element should automatically select first item on Korzh.EasyQuery.WinForms.XElement.CoreLaunch .
ControlTypestringGets or sets the type of the control (MENU or LISTBOX).
ItemsValueItemListGets the list of items.
ListNamestringGets or sets the name of the list.
SortingXSortOrderGets or sets the sort order for the list

Methods

NameTypeDescription
AddListItem(ValueItem parentItem, ValueItem newItem)voidAdds a new item to the list (menu).
AddListItem(ValueItem parentItem, string text, string value, string action, string hint)ValueItemAdds a new item to the list (menu).
AddListItem(ValueItem parentItem, string text, string value)ValueItemAdds a new item to the list (menu).
CalcNewValue()stringGets the new value from edit control
CheckListControl(bool refill)voidChecks if the list control is created correctly and re-creates it if necessary.
CoreGetTextAdjustedByValue(string newValue)stringGets the element's text according to its value. This method can be overridden in inherited classes.
CoreLaunch()voidIs called when both Korzh.EasyQuery.WinForms.XElement.ParentRow and Korzh.EasyQuery.WinForms.XElement.ParentPanel for this element are established.
CoreRefreshList()voidInternal implementation of Korzh.EasyQuery.WinForms.ListXElement.RefreshList method. It makes parent panel to raise RequestList event to fill the custom lists.
CreateListControl()ListControlCreates the list control.
CreateRootItem()voidCreates the root ValueItem object.
DoItemsChanged(object sender, EventArgs e)voidCalled when Changed event occurs in root item
GetItemByValue(string val, ValueItem& resItem)boolGets the item by value.
GetValueByItems()stringCalculates element value by currently selected items.
HideControl()voidHides the control that allows to edit the value.
LinkClickedHandler(object sender, LinkLabelLinkClickedEventArgs e)voidHandler of element control System.Windows.Forms.Control.Click event.
OnItemsReassigned()voidCalled when Items property have been assigned to new value.
ParseXmlNode(XmlNode node)voidParses the XML-description of element.
RecreateListControl()voidRecreates the list control according on control type (LISTBOX or MENU)
RefreshList()voidRefreshes the list.
RequestList(string listName)voidGenerates internal signal to request the list.
SelectFirstItem()voidSelects the first item.
SelectItemsByValue()voidSelects the items by value.
ShowControl()voidShows the control that allows to edit the value.
ShowListControl()voidShows the list control.

Static Fields

NameTypeDescription
DefaultListControlTypestringRepresents default control type for list elements Will be applied to all new Korzh.EasyQuery.WinForms.ListXElement objects

Static Properties

NameTypeDescription
TagNamestringGets the name of the XML tag concerned with element.