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

Represents a full or abbreviated month name.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.UI.dll

Syntax:

C#
public class DateInput.MonthNameToken : DateInput.Token

Inheritance: objectDateInput.TokenDateInput.MonthNameToken

Inherited Members DateInput.Token.FindIndex(string[], string)DateInput.Token.ToString()DateInput.Token.ParentDateInput.Token.TypeDateInput.Token.Value

Constructors

Creates a month-name token associated with the specified parser.

C#
public MonthNameToken(string value, DateInput parent)
Parameters:valuestring

The month-name text.

parentDateInput

The parser whose culture supplies month names.

Methods

Gets the zero-based index of this name in the parser's full or abbreviated month-name arrays.

C#
public int GetMonthIndex()
Returns:

int

The matching month-name index, or -1 when the token is not recognized.