This is the value of the starting year to be used for the smart input year calculation.
If a single digit greater than '5' is entered, then the starting year is considered to be
the year of the previous century.
Namespace:
C1.Web.UI.Controls.C1InputAssembly: C1.Web.UI.Controls.2 (in C1.Web.UI.Controls.2.dll)
Syntax
C# |
---|
[DefaultValueAttribute()] [JsonAttribute(true, true, )] [C1CategoryAttribute("Category.Behavior")] [BindableAttribute(false)] public int StartYear { get; set; } |
Visual Basic (Declaration) |
---|
<DefaultValueAttribute()> _ <JsonAttribute(True, True, )> _ <C1CategoryAttribute("Category.Behavior")> _ <BindableAttribute(False)> _ Public Property StartYear As Integer Get Set |
Remarks
Suppose the SmartInputMode property is set to True,
and you set the StartYear property to '1900'.
If the user enters a '5' in the C1DateInput control at run time,
then the year will become '1/1/1951'. Suppose the StartYear is '2000' and a '5' is entered;
then the year will become '2051'. The range for the StartYear is 100 years,
so if the starting year is '1951', then the ending year will be '2050'.
So if a '5' is entered and followed by '1', then it refers to the previous century;
if it is followed by '0', then it refers to the current century.