BaseMaskDateProvider
A base provider used in all date and time related structures(DateTime, DateOnly, TimeOnly, TimeSpan)
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public abstract class BaseMaskDateProvider : IMaskProvider
Inheritance: objectBaseMaskDateProvider
Derived Classes:
Implements:
Constructors
Initializes a new instance of the BaseMaskDateProvider class.
public BaseMaskDateProvider(string mask, CultureInfo culture, RadMaskedEditBoxElement owner)
The mask.
cultureCultureInfoThe culture.
ownerRadMaskedEditBoxElementThe owner.
Fields
protected int keyCounter
protected int oldSelectedIndex
Properties
Gets or sets a value indicating whether to automatically select the next part during the editing.
public bool AutoSelectNextPart { get; set; }
Gets the culture that determines the value of the localizable separators and placeholders in the input mask.
public CultureInfo Culture { get; }
A System.Globalization.CultureInfo containing the culture information associated with the input mask.
Implements:
Gets or sets the DateTimeFormatInfo used to provide culture specific date and time parts.
public DateTimeFormatInfo DateTimeFormatInfo { get; set; }
Enable or Disable the selection of the next or prev. part of the date with arrow keys
public bool EnableKeyNavigation { get; set; }
A list with MaskPart objects used to validate the value and user input.
public List<MaskPart> List { get; set; }
Gets the input mask.
public string Mask { get; protected set; }
A string containing the full mask.
Implements:
Gets or sets the mask based on the format string.
public string MaskFromFormat { get; set; }
Gets the owner RadMaskedEditBoxElement.
public RadMaskedEditBoxElement Owner { get; }
Gets or sets the index of the selected item of the List.
public int SelectedItemIndex { get; set; }
TextBoxItem
RadTextBoxItem
Gets the text box item.
public RadTextBoxItem TextBoxItem { get; }
Implements:
Methods
Adjusts the offset of the items in the list.
protected virtual void AdjustItemsOffset()
Occurs when the user clicks with the mouse.
Clones this instance.
Raises the delete operation for currently selected mask part.
Occurs when a key is pressed.
public abstract void KeyDown(object sender, KeyEventArgs e)
The sender.
eKeyEventArgsKey event arguments.
Implements:
Occurs when a key is pressed.
public abstract void KeyPress(object sender, KeyPressEventArgs e)
The sender.
eKeyPressEventArgsKey event arguments.
Implements:
Resets the value of the currently selected part of the mask.
public abstract void ResetCurrentPartValue(object sender, KeyEventArgs e)
The sender.
eKeyEventArgsKey event arguments.
Restores the selected item from the List, usually after a value change operation.
protected virtual void RestoreSelectedItem()
Selects the text in the TextBoxItem which corresponds to the SelectedItemIndex in the List.
public abstract void SelectCurrentItemWithSelectedItem()
Selects the next MaskPart based on the SelectedItemIndex.
public virtual void SelectNextItem()
Selects the next MaskPart based on the caret position.
public virtual void SelectNextItemFromCurrentCaret()
Selects the previous MaskPart based on the SelectedItemIndex.
public virtual void SelectPrevItem()
Selects the previous MaskPart based on the caret position.
public virtual void SelectPrevItemFromCurrentCaret()
Events
Occurs when the selected item is changed.
public event EventHandler SelectedItemChanged