ClassFreeFormDateTimeProvider
A provider used to validate values of type DateTime
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class FreeFormDateTimeProvider : MaskDateTimeProvider, IMaskProvider
Inheritance: objectBaseMaskDateProviderMaskDateTimeProviderFreeFormDateTimeProvider
Implements:
Inherited Members
Constructors
FreeFormDateTimeProvider(string, CultureInfo, RadMaskedEditBoxElement)
Initializes a new instance of the FreeFormDateTimeProvider class.
Declaration
public FreeFormDateTimeProvider(string mask, CultureInfo culture, RadMaskedEditBoxElement owner)
Parameters
mask
The mask.
culture
The culture.
owner
The owner.
Properties
Methods
FillCollectionWithValues()
Declaration
protected override void FillCollectionWithValues()
Overrides
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.
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
OnParsedDateTime()
Triggers the ParsedDateTime event.
Declaration
public virtual void OnParsedDateTime()
OnParsingDateTime(ParsingDateTimeEventArgs)
Triggers the ParsingDateTime event.
Declaration
public virtual void OnParsingDateTime(ParsingDateTimeEventArgs e)
Parameters
e
The event arguments.
ResetOnDelPartValue(MaskPart, int)
Resets the given part value if the key char is delete or backspace.
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
SelectNextEditableItemFromCurrentCaret()
Selects the next editable MaskPart based on the caret position.
Declaration
public override bool SelectNextEditableItemFromCurrentCaret()
Returns
A value indicating whether a part was selected.
Overrides
TryParse()
Converts the TextBoxItem text's representation of date and time to a DateTime and set it to the Value.
Declaration
public void TryParse()
Validate(string)
Events
ParsedDateTime
Occurs when the date time has been parsed.
ParsingDateTime
Occurs when the date time is being parsed.
Declaration
public event ParsingDateTimeEventHandler ParsingDateTime
Event Value