ClassMaskDateTimeProvider
A provider used to validate values of type DateTime
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class MaskDateTimeProvider : BaseMaskDateProvider, IMaskProvider
Inheritance: objectBaseMaskDateProviderMaskDateTimeProvider
Derived Classes:
Implements:
Inherited Members
Constructors
MaskDateTimeProvider(string, CultureInfo, RadMaskedEditBoxElement)
Initializes a new instance of the MaskDateTimeProvider class.
Declaration
public MaskDateTimeProvider(string mask, CultureInfo culture, RadMaskedEditBoxElement owner)
Parameters
mask
The mask.
culture
The culture.
owner
The owner.
Properties
AutoCompleteYear
Indicates whether to auto-complete years on user input.
HoursStep
Gets or sets the hours step used when modifying the value.
MaxDate
Gets or sets the max date.
MaxSupportedDateTime
Gets the max supported date.
Declaration
protected virtual DateTime MaxSupportedDateTime { get; }
Property Value
MillisecondsStep
Gets or sets the milliseconds step used when modifying the value.
MinDate
Gets or sets the min date.
MinSupportedDateTime
Gets the min supported date.
Declaration
protected virtual DateTime MinSupportedDateTime { get; }
Property Value
MinutesStep
Gets or sets the minutes step used when modifying the value.
SecondsStep
Gets or sets the seconds step used when modifying the value.
Value
Gets or sets the value.
Declaration
public override object Value { get; set; }
Property Value
Overrides
YearResetValue
Determines the year value when is has been reset.
Methods
Clone()
Clones this instance.
Declaration
public override IMaskProvider Clone()
Returns
The cloned instance.
Overrides
Down(MaskPart, DateTime, DateTime)
Decreases the value of the given MaskPart.
FillCollection()
Declaration
protected override void FillCollection()
Overrides
FillCollection(string)
Returns a list used to validate the value and user input.
FillCollectionWithValues()
Declaration
protected override void FillCollectionWithValues()
Overrides
GetSpecificFormat(string, DateTimeFormatInfo)
Gets the format string from the mask using the culture specific format info.
Declaration
public static string GetSpecificFormat(string mask, DateTimeFormatInfo info)
Parameters
mask
The mask.
info
The culture specific format info.
Returns
The format string.
HandleAmPmKeyPress(KeyPressEventArgs)
Handles a key press operation when a am/pm part is selected.
Declaration
protected virtual void HandleAmPmKeyPress(KeyPressEventArgs e)
Parameters
e
The key event arguments.
HandleKeyPress(MaskPart, KeyPressEventArgs)
Handles a key press operation over a specific MaskPart.
Declaration
protected virtual bool HandleKeyPress(MaskPart part, KeyPressEventArgs e)
Parameters
part
The selected MaskPart.
e
The key event arguments.
Returns
Not used.
HandleKeyPressDay(MaskPart, KeyPressEventArgs)
Handles a key press operation over a day MaskPart.
Declaration
protected virtual void HandleKeyPressDay(MaskPart part, KeyPressEventArgs e)
Parameters
part
The day MaskPart.
e
The key event arguments.
HandleKeyPressHour(MaskPart, KeyPressEventArgs)
Handles a key press operation over an hour MaskPart.
Declaration
protected virtual void HandleKeyPressHour(MaskPart part, KeyPressEventArgs e)
Parameters
part
The hour MaskPart.
e
The key event arguments.
HandleKeyPressWithCharacters(MaskPart, KeyPressEventArgs, string[])
Handles a key press operation with a character. Tries to match the value by the given names collection.
HandleMonthKeyPress(KeyPressEventArgs, MaskPart)
Handles a key press operation when a month part is selected.
Declaration
protected virtual void HandleMonthKeyPress(KeyPressEventArgs e, MaskPart part)
Parameters
e
The key event arguments.
part
The month MaskPart.
HandleSpinDown(DateTime, DateTime)
Handles a spin down operation, usually when the keyboard down arrow key was pressed.
HandleSpinUp(DateTime, DateTime)
Handles a spin up operation, usually when the keyboard up arrow key was pressed.
IsAmPmMode()
Get a value indicating whether the AM/PM mode is enabled.
Declaration
protected virtual bool IsAmPmMode()
Returns
Whether the AM/MP mode is enabled.
KeyDown(object, KeyEventArgs)
Occurs when a key is pressed.
Declaration
public override void KeyDown(object sender, KeyEventArgs e)
Parameters
sender
The sender.
e
Key event arguments.
Overrides
KeyPress(object, KeyPressEventArgs)
Occurs when a key is pressed.
Declaration
public override void KeyPress(object sender, KeyPressEventArgs e)
Parameters
sender
The sender.
e
Key event arguments.
Overrides
ResetCurrentPartValue(object, KeyEventArgs)
Resets the value of the currently selected part of the mask.
Declaration
public override void ResetCurrentPartValue(object sender, KeyEventArgs e)
Parameters
sender
The sender.
e
Key event arguments.
Overrides
ResetDay(MaskPart)
Resets the day.
ResetMonth(MaskPart)
Resets the month.
ResetOnDelPartValue(MaskPart, int)
Resets the given part value if the key char is delete or backspace.
ResetToMinDate()
Resets the value to the MinDate.
Declaration
public virtual void ResetToMinDate()
ResetYear(MaskPart)
Resets the year.
SelectCurrentItemFromCurrentCaret()
Selects the current MaskPart based on the caret position.
Declaration
public override bool SelectCurrentItemFromCurrentCaret()
Returns
A value indicating whether a part was selected.
Overrides
SelectCurrentItemWithSelectedItem()
Selects the text in the TextBoxItem which corresponds to the SelectedItemIndex in the List.
Declaration
public override void SelectCurrentItemWithSelectedItem()
Overrides
SetDayMaxValue()
Sets the maximal day for the chosen year and month.
ToString(bool, bool)
Gets the string interpretation of the value based on the Mask
Up(MaskPart, DateTime, DateTime)
Increases the value of the given MaskPart.