New to Telerik UI for WinForms? Start a free 30-day trial

Carries the original input and proposed date-time result to a ParsingDateTime handler.

TryParse() honors the inherited Cancel flag. The provider's Validate(string) path applies Result without checking that flag.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.UI.dll

Syntax:

C#
public class ParsingDateTimeEventArgs : CancelEventArgs

Inheritance: objectEventArgsCancelEventArgsParsingDateTimeEventArgs

Inherited Members CancelEventArgs.CancelEventArgs.Empty

Constructors

Initializes the event data with the user's text and the parser's initial result.

C#
public ParsingDateTimeEventArgs(string inputString, DateTime? result)
Parameters:inputStringstring

The original text submitted for parsing.

resultDateTime?

The nullable date-time value produced by the parser.

Properties

Gets the original text supplied for parsing.

C#
public string InputString { get; }

Gets or sets the proposed parsed value that the provider will apply after the event.

C#
public DateTime? Result { get; set; }