MaskDateTimeProvider
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
Initializes a new instance of the MaskDateTimeProvider class.
public MaskDateTimeProvider(string mask, CultureInfo culture, RadMaskedEditBoxElement owner)
The mask.
cultureCultureInfoThe culture.
ownerRadMaskedEditBoxElementThe owner.
Properties
Indicates whether to auto-complete years on user input.
public bool AutoCompleteYear { get; set; }
Gets or sets the hours step used when modifying the value.
public int HoursStep { get; set; }
Gets the max supported date.
protected virtual DateTime MaxSupportedDateTime { get; }
Gets or sets the milliseconds step used when modifying the value.
public int MillisecondsStep { get; set; }
Gets the min supported date.
protected virtual DateTime MinSupportedDateTime { get; }
Gets or sets the minutes step used when modifying the value.
public int MinutesStep { get; set; }
Gets or sets the seconds step used when modifying the value.
public int SecondsStep { get; set; }
Determines the year value when is has been reset.
public int YearResetValue { get; set; }
Methods
Clones this instance.
Gets the format string from the mask using the culture specific format info.
public static string GetSpecificFormat(string mask, DateTimeFormatInfo info)
The mask.
infoDateTimeFormatInfoThe culture specific format info.
Returns:The format string.
Handles a key press operation when a am/pm part is selected.
protected virtual void HandleAmPmKeyPress(KeyPressEventArgs e)
The key event arguments.
Handles a key press operation over a specific MaskPart.
protected virtual bool HandleKeyPress(MaskPart part, KeyPressEventArgs e)
The selected MaskPart.
eKeyPressEventArgsThe key event arguments.
Returns:Not used.
Handles a key press operation over a day MaskPart.
protected virtual void HandleKeyPressDay(MaskPart part, KeyPressEventArgs e)
The day MaskPart.
eKeyPressEventArgsThe key event arguments.
Handles a key press operation over an hour MaskPart.
protected virtual void HandleKeyPressHour(MaskPart part, KeyPressEventArgs e)
The hour MaskPart.
eKeyPressEventArgsThe key event arguments.
Handles a key press operation with a character. Tries to match the value by the given names collection.
protected virtual void HandleKeyPressWithCharacters(MaskPart part, KeyPressEventArgs e, string[] names)
The MaskPart.
eKeyPressEventArgsThe key event arguments.
namesstring[]The names collection to match.
Handles a key press operation when a month part is selected.
protected virtual void HandleMonthKeyPress(KeyPressEventArgs e, MaskPart part)
The key event arguments.
partMaskPartThe month MaskPart.
Get a value indicating whether the AM/PM mode is enabled.
Occurs when a key is pressed.
public override void KeyDown(object sender, KeyEventArgs e)
The sender.
eKeyEventArgsKey event arguments.
Overrides:
Occurs when a key is pressed.
public override void KeyPress(object sender, KeyPressEventArgs e)
The sender.
eKeyPressEventArgsKey event arguments.
Overrides:
Resets the value of the currently selected part of the mask.
public override void ResetCurrentPartValue(object sender, KeyEventArgs e)
The sender.
eKeyEventArgsKey event arguments.
Overrides:
Resets the value to the MinDate.
public virtual void ResetToMinDate()
Selects the text in the TextBoxItem which corresponds to the SelectedItemIndex in the List.
public override void SelectCurrentItemWithSelectedItem()
Overrides: