Spread WPF 18
GrapeCity.Wpf.SpreadSheet.CellType.Editors Namespace / GcDateTime Class / MaxDate Property


In This Topic
    MaxDate Property (GcDateTime)
    In This Topic
    Gets or sets the maximum possible value of the range element.
    Syntax
    'Declaration
     
    Public Property MaxDate As Date
    'Usage
     
    Dim instance As GcDateTime
    Dim value As Date
     
    instance.MaxDate = value
     
    value = instance.MaxDate
    public DateTime MaxDate {get; set;}

    Property Value

    A System.DateTime value which indicates the maximum date of GcDateTime.
    Remarks

    Its default value is DateTime.MaxValue. When user spin the Value property exceed the MaxDate, the value will be validated after GcDateTime lost keyboard focus.

    Set MinDate greater than MaxDate, MaxDate will change to same as MinDate; Set MaxDate less than MinDate, the MinDate won't change and the MaxDate changes to same as MinDate.

    See Also