Spread WPF 18
GrapeCity.Wpf.SpreadSheet.CellType.Editors Namespace / GcTextBox Class / MaxLengthUnit Property


In This Topic
    MaxLengthUnit Property
    In This Topic
    Gets or sets whether the maximum number of characters that can hold in the control are handled based on bytes, characters or text elements. This is a dependency property.
    Syntax
    'Declaration
     
    Public Property MaxLengthUnit As LengthUnit
    'Usage
     
    Dim instance As GcTextBox
    Dim value As LengthUnit
     
    instance.MaxLengthUnit = value
     
    value = instance.MaxLengthUnit
    public LengthUnit MaxLengthUnit {get; set;}

    Property Value

    A GrapeCity.Windows.InputMan.LengthUnit enumeration value indicates the length unit is based on char, byte or text element.
    The default is GrapeCity.Windows.InputMan.LengthUnit.Char.
    Exceptions
    ExceptionDescription
    Value is not defined in GrapeCity.Windows.InputMan.LengthUnit enumeration.
    Remarks
    Determining the unit for counting the MaxLength property. The value GrapeCity.Windows.InputMan.LengthUnit.Byte means the MaxLength counted by byte. The value GrapeCity.Windows.InputMan.LengthUnit.Char means the MaxLength counted by char. The value GrapeCity.Windows.InputMan.LengthUnit.TextElement means the MaxLength counted by text element.
    See Also