Spread WPF 18
GrapeCity.Wpf.SpreadSheet.CellType.Editors Namespace / GcNumber Class / MaxValue Property


In This Topic
    MaxValue Property
    In This Topic
    Gets or sets a decimal value indicate the maximum of range control.
    Syntax
    'Declaration
     
    <TypeConverterAttribute(System.ComponentModel.DecimalConverter)>
    Public Property MaxValue As Decimal
    'Usage
     
    Dim instance As GcNumber
    Dim value As Decimal
     
    instance.MaxValue = value
     
    value = instance.MaxValue
    [TypeConverter(System.ComponentModel.DecimalConverter)]
    public decimal MaxValue {get; set;}
    Remarks

    MaxValue controls the maximum of Value no matter the programmatic way or user interaction. When Value is beyond the MaxValue, the value will be validated when when control lost keyboard focus according to the ControlValidatorSet setting.

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

    See Also