Skip to main content

xrow-class

Provides a container for array of Korzh.EasyQuery.WinForms.XElement.

public class Korzh.EasyQuery.WinForms.XRow

Assembly: Korzh.EasyQuery.WinForms.dll

Constructors

NameTypeDescription
XRow(bool useCheckBox)voidInitializes a new instance of the Korzh.EasyQuery.WinForms.XRow class.
XRow(string axmlText, bool useCheckBox)voidInitializes a new instance of the Korzh.EasyQuery.WinForms.XRow class.
XRow(string axmlText)voidInitializes a new instance of the Korzh.EasyQuery.WinForms.XRow class.

Fields

NameTypeDescription
elementsXElementsStoreThe list of row elements.

Properties

NameTypeDescription
ActiveboolGets or sets a value indicating whether this Korzh.EasyQuery.WinForms.XRow is active.
AllowShiftingboolGets or sets a value indicating whether the row can be shifted by Ctrl+ArrowLeft, Ctrl+ArrowRight keys.
ElementsXElementListGets the list of elements.
EnabledboolGets or sets a value indicating whether this Korzh.EasyQuery.WinForms.XRow is enabled.
IDstringGets or sets the row ID.
IndexintGets the index of row in parent Korzh.EasyQuery.WinForms.XPanel.
ItemXElementGets the Korzh.EasyQuery.WinForms.XElement at the specified index.
LevelintGets or sets the level of the row. The more level is, the more elements are shifted to the right.
NativeWidthintGets the native width of the row (right position of the last element)
RowUpdatingboolGets a value indicating whether this XRowControl is updating.
ShowCheckBoxboolGets or sets a value indicating whether a check box will be shown at the beginning of the row.
UpdatingboolGets a value indicating whether this XRowControl or its parent panel is updating.
VisibleboolGets or sets a value indicating whether this Korzh.EasyQuery.WinForms.XRow is visible.
WidthintGets or sets the width of the row.
XmlTextstringGets or sets the XML text of row.

Methods

NameTypeDescription
AddTextElement(string text)TextXElementAdds new Korzh.EasyQuery.WinForms.TextXElement to the row.
ApplyElementFormats(XElement element)voidApplies formats for one element.
ApplyFormats()voidApplies the formats used in parent object. This method is called when row is added into XPanel
ArrangeRow()voidArranges the row in parent object.
BeginUpdate()voidBegins the update process.
CloseEdits()voidBrings all elements to initial state - hides any specific controls (Edit, Menu etc.) activated by user.
CoreApplyFormats()voidApplies the formats used in parent object.
CoreDetach()voidDetaches this row from the parent panel. This method can be overridden in the inherited classes
CoreDetachElement(XElement element)voidRemoves all references and event handlers for some element This method is called on element removal
CoreElementAltMenuClick(XElement sender, ValueItem item)voidThis method is called when Korzh.EasyQuery.WinForms.XElement.AltClick event is raised in some element of the current row.
CoreElementBeforeDropDown(XElement sender)voidThis method is called at the beginning of Korzh.EasyQuery.WinForms.XElement.DropDown method execution in some element of the current row.
CoreElementValidateValue(XElement sender, ValidateValueEventArgs e)voidThis method is called when Korzh.EasyQuery.WinForms.XElement.OnValidate(Korzh.EasyQuery.WinForms.ValidateValueEventArgs) method is executed in some element of the current row.
CreateElementByXmlNode(XmlNode node)XElementCreates the new Korzh.EasyQuery.WinForms.XElement by XML node.
CreateElementByXmlText(string xml)XElementCreates the new Korzh.EasyQuery.WinForms.XElement by XML text.
Dispose()voidPerforms application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Dispose(bool disposing)voidPerforms application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
ElementAction(object sender, string actionName, object data)voidCalled when element performs the Action. Just forwards call to Korzh.EasyQuery.WinForms.XRow.Parent.
ElementAction(object sender, string actionName)voidCalled when element performs the Action. Just forwards call to Korzh.EasyQuery.WinForms.XRow.Parent.
ElementContentChanged(XElement element, bool valueChanged, bool textChanged)voidThis method is called when the content of some element has been changed
ElementTextAdjusting(XElement element, string newValue, string text)stringThis method is called when we need to adjust element's text according to its value
EndUpdate(bool updateElements)voidEnds the update process.
EndUpdate()voidEnds the update process.
GetSelectedElementIndex()intGets the index of the selected element.
OnEnableChange()voidReserved. Should raise EnableChange event.
Refresh()voidRefreshes this instance.
SelectNextControl(int startFrom, bool forward, bool lap)voidMove focus to the next element in the row.
SelectNextControl(bool forward, bool lap)voidMove focus to the next element in the row.