Class FreeFormDateTimeProvider
A provider used to validate values of type System.DateTime
Inherited Members
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.UI.dll
Syntax
public class FreeFormDateTimeProvider : MaskDateTimeProvider, IMaskProvider
Constructors
FreeFormDateTimeProvider(String, CultureInfo, RadMaskedEditBoxElement)
Initializes a new instance of the FreeFormDateTimeProvider class.
Declaration
public FreeFormDateTimeProvider(string mask, CultureInfo culture, RadMaskedEditBoxElement owner)
Parameters
System.String
mask
The mask. |
System.Globalization.CultureInfo
culture
The culture. |
RadMaskedEditBoxElement
owner
The owner. |
Properties
Parser
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.
Declaration
public override void HandleSpinDown(DateTime minDate, DateTime maxDate)
Parameters
System.DateTime
minDate
The min date. |
System.DateTime
maxDate
The max date. |
Overrides
HandleSpinUp(DateTime, DateTime)
Handles a spin up operation, usually when the keyboard up arrow key was pressed.
Declaration
public override void HandleSpinUp(DateTime minDate, DateTime maxDate)
Parameters
System.DateTime
minDate
The min date. |
System.DateTime
maxDate
The max date. |
Overrides
KeyDown(Object, KeyEventArgs)
Occurs when a key is pressed.
Declaration
public override void KeyDown(object sender, KeyEventArgs e)
Parameters
System.Object
sender
The sender. |
System.Windows.Forms.KeyEventArgs
e
Key event arguments. |
Overrides
KeyPress(Object, KeyPressEventArgs)
Occurs when a key is pressed.
Declaration
public override void KeyPress(object sender, KeyPressEventArgs e)
Parameters
System.Object
sender
The sender. |
System.Windows.Forms.KeyPressEventArgs
e
Key event arguments. |
Overrides
OnParsedDateTime()
OnParsingDateTime(ParsingDateTimeEventArgs)
Triggers the ParsingDateTime event.
Declaration
public virtual void OnParsingDateTime(ParsingDateTimeEventArgs e)
Parameters
ParsingDateTimeEventArgs
e
The event arguments. |
ResetOnDelPartValue(MaskPart, Int32)
Resets the given part value if the key char is delete or backspace.
Declaration
protected override bool ResetOnDelPartValue(MaskPart part, int keyChar)
Parameters
MaskPart
part
The MaskPart |
System.Int32
keyChar
The key char. |
Returns
System.Boolean
A value indicating whether the value of the part was reset. |
Overrides
SelectCurrentItemFromCurrentCaret()
Selects the current MaskPart based on the caret position.
Declaration
public override bool SelectCurrentItemFromCurrentCaret()
Returns
System.Boolean
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
System.Boolean
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)
Validates the given string value and sets it as Value if the value is valid. If the value cannot be parsed to the underlying data type of the Value, it is reset to its default value.
Declaration
public override bool Validate(string stringValue)
Parameters
System.String
stringValue
The string value that is about to be set to the Value. |
Returns
System.Boolean
A value indicating whether the string value is valid. |
Overrides
Events
ParsedDateTime
Occurs when the date time has been parsed.
Declaration
public event EventHandler ParsedDateTime
Event Type
System.EventHandler
|
ParsingDateTime
Occurs when the date time is being parsed.
Declaration
public event ParsingDateTimeEventHandler ParsingDateTime
Event Type
ParsingDateTimeEventHandler
|