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

Represents a date parsed from two tokens, with omitted components inherited from the evaluation date.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.UI.dll

Syntax:

C#
public class DateInput.PairEntry : DateInput.DateEntry

Inheritance: objectDateInput.DateEntryDateInput.PairEntry

Inherited Members DateInput.DateEntry.ParentDateInput.DateEntry.Type

Constructors

Creates a two-token date entry for the specified parser.

C#
public PairEntry(DateInput.Token first, DateInput.Token second, DateInput parent)
Parameters:firstDateInput.Token

The first date token.

secondDateInput.Token

The second date token.

parentDateInput

The parser whose culture and date format determine token positions.

Properties

Gets or sets the first token used to resolve the date components.

C#
public DateInput.Token First { get; set; }

Gets or sets the second token used to resolve the date components.

C#
public DateInput.Token Second { get; set; }

Methods

Resolves the two tokens into a date, retaining unspecified components from date.

C#
public override DateTime Evaluate(DateTime date)
Parameters:dateDateTime

The starting date for components not supplied by the tokens.

Returns:

DateTime

The resolved date.

Overrides: DateInput.DateEntry.Evaluate(DateTime)