Skip to main content

datetimexelement-class

Represents date/time editing element

public class Korzh.EasyQuery.WinForms.DateTimeXElement
: LabelXElement

Assembly: Korzh.EasyQuery.WinForms.dll

Constructors

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

Fields

NameTypeDescription
dateControlDateTimePickerRepresents System.Windows.Forms.DateTimePicker control which is used to edit date/time values

Properties

NameTypeDescription
AllowListboolGets or sets a value indicating whether this row element allows list values.

Methods

NameTypeDescription
Arrange(int bottomLine, int rowHeight)voidArranges the Korzh.EasyQuery.WinForms.LabelXElement.ElementControl on base panel. Overrides Korzh.EasyQuery.WinForms.LabelXElement.Arrange(System.Int32,System.Int32).
CalcNewValue()stringGets the new value from edit control
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.
DateCloseUpHandler(object sender, EventArgs e)voidDateTime picker control CloseUp event handler.
DateDropDownHandler(object sender, EventArgs e)voidDateTime picker control DropDown event handler.
DateKeyPressHandler(object sender, KeyPressEventArgs e)voidThe handler of Korzh.EasyQuery.WinForms.DateTimeXElement.dateControlSystem.Windows.Forms.Control.KeyPress event.
DateLostFocusHandler(object sender, EventArgs e)voidThe handler of Korzh.EasyQuery.WinForms.DateTimeXElement.dateControlSystem.Windows.Forms.Control.LostFocus event.
DateSizeChangedHandler(object sender, EventArgs e)voidThe handler of Korzh.EasyQuery.WinForms.DateTimeXElement.dateControlSystem.Windows.Forms.Control.SizeChanged event.
DateTextChangedHandler(object sender, EventArgs e)voidThe handler of Korzh.EasyQuery.WinForms.DateTimeXElement.dateControlSystem.Windows.Forms.Control.TextChanged event.
HideControl()voidHides the control that allows to edit the value.
LinkClickedHandler(object sender, LinkLabelLinkClickedEventArgs e)voidOverrides Korzh.EasyQuery.WinForms.LabelXElement.LinkClickedHandler(System.Object,System.Windows.Forms.LinkLabelLinkClickedEventArgs).
ParseDateTimeValue(string s)DateTimeConverts the specified string representation of a date and time to its DateTime equivalent.
ParseXmlNode(XmlNode node)voidParses the XML-description of element.
ShowControl()voidShows the control that allows to edit the value.
ShowDateTime()voidShows the Korzh.EasyQuery.WinForms.DateTimeXElement.dateControl to let user edit data.

Static Properties

NameTypeDescription
TagNamestringGets the name of the element's tag.