ClassBaseMaskDateProvider
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
BaseMaskDateProvider(string, CultureInfo, RadMaskedEditBoxElement)
Initializes a new instance of the BaseMaskDateProvider class.
Declaration
public BaseMaskDateProvider(string mask, CultureInfo culture, RadMaskedEditBoxElement owner)
Parameters
mask
The mask.
culture
The culture.
owner
The owner.
Fields
Properties
AutoSelectNextPart
Gets or sets a value indicating whether to automatically select the next part during the editing.
Culture
Gets the culture that determines the value of the localizable separators and placeholders in the input mask.
Declaration
public CultureInfo Culture { get; }
Property Value
A System.Globalization.CultureInfo containing the culture information associated with the input mask.
Implements
DateTimeFormatInfo
Gets or sets the DateTimeFormatInfo used to provide culture specific date and time parts.
Declaration
public DateTimeFormatInfo DateTimeFormatInfo { get; set; }
Property Value
EnableKeyNavigation
Enable or Disable the selection of the next or prev. part of the date with arrow keys
List
A list with MaskPart objects used to validate the value and user input.
Declaration
public List<MaskPart> List { get; set; }
Property Value
List<MaskPart>
Mask
Gets the input mask.
MaskFromFormat
Gets or sets the mask based on the format string.
Owner
Gets the owner RadMaskedEditBoxElement.
Declaration
public RadMaskedEditBoxElement Owner { get; }
Property Value
SelectedItemIndex
Gets or sets the index of the selected item of the List.
TextBoxItem
Gets the text box item.
Declaration
public RadTextBoxItem TextBoxItem { get; }
Property Value
RadTextBoxItem
Implements
Methods
AdjustItemsOffset()
Adjusts the offset of the items in the list.
Declaration
protected virtual void AdjustItemsOffset()
Click()
Occurs when the user clicks with the mouse.
Clone()
Clones this instance.
Declaration
public abstract IMaskProvider Clone()
Returns
The cloned instance.
Implements
Delete()
Raises the delete operation for currently selected mask part.
FillCollection()
Declaration
protected abstract void FillCollection()
FillCollectionWithValues()
Declaration
protected abstract void FillCollectionWithValues()
GetGroupLengthByMask(string)
Gets the group length of the mask.
KeyDown(object, KeyEventArgs)
Occurs when a key is pressed.
Declaration
public abstract void KeyDown(object sender, KeyEventArgs e)
Parameters
sender
The sender.
e
Key event arguments.
Implements
KeyPress(object, KeyPressEventArgs)
Occurs when a key is pressed.
Declaration
public abstract void KeyPress(object sender, KeyPressEventArgs e)
Parameters
sender
The sender.
e
Key event arguments.
Implements
ResetCurrentPartValue(object, KeyEventArgs)
Resets the value of the currently selected part of the mask.
Declaration
public abstract void ResetCurrentPartValue(object sender, KeyEventArgs e)
Parameters
sender
The sender.
e
Key event arguments.
RestoreSelectedItem()
Restores the selected item from the List, usually after a value change operation.
Declaration
protected virtual void RestoreSelectedItem()
SelectCurrentItemFromCurrentCaret()
Selects the current MaskPart based on the caret position.
Declaration
public abstract bool SelectCurrentItemFromCurrentCaret()
Returns
A value indicating whether a part was selected.
SelectCurrentItemWithSelectedItem()
Selects the text in the TextBoxItem which corresponds to the SelectedItemIndex in the List.
Declaration
public abstract void SelectCurrentItemWithSelectedItem()
SelectFirstEditableItem()
Declaration
public virtual void SelectFirstEditableItem()
SelectFirstItem()
Declaration
public virtual void SelectFirstItem()
SelectLastEditableItem()
Declaration
public virtual void SelectLastEditableItem()
SelectLastItem()
Declaration
public virtual void SelectLastItem()
SelectNextEditableItem()
Declaration
public virtual void SelectNextEditableItem()
SelectNextEditableItemFromCurrentCaret()
Selects the next editable MaskPart based on the caret position.
Declaration
public virtual bool SelectNextEditableItemFromCurrentCaret()
Returns
A value indicating whether a part was selected.
SelectNextItem()
Selects the next MaskPart based on the SelectedItemIndex.
Declaration
public virtual void SelectNextItem()
SelectNextItemFromCurrentCaret()
Selects the next MaskPart based on the caret position.
Declaration
public virtual void SelectNextItemFromCurrentCaret()
SelectPrevEditableItem()
Declaration
public virtual void SelectPrevEditableItem()
SelectPrevItem()
Selects the previous MaskPart based on the SelectedItemIndex.
Declaration
public virtual void SelectPrevItem()
SelectPrevItemFromCurrentCaret()
Selects the previous MaskPart based on the caret position.
Declaration
public virtual void SelectPrevItemFromCurrentCaret()
ToString(bool, bool)
Gets the string interpretation of the value based on the Mask
Validate(string)
Events
SelectedItemChanged
Occurs when the selected item is changed.
Declaration
public event EventHandler SelectedItemChanged
Event Value