Spread Windows Forms 17
GrapeCity.Win.PluginInputMan Assembly / GrapeCity.Win.Spread.InputMan.CellType Namespace / GcTextBox Class / MaxLengthUnit Property


In This Topic
    MaxLengthUnit Property (GcTextBox)
    In This Topic
    Gets or sets whether the maximum number of characters that fit in the control are handled based on bytes, characters, or text elements.
    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

    true if the MaxLength is based on byte; otherwise, based on character.
    The default is LengthUnit.Char.
    Remarks
    Determines the unit for counting for the MaxLength property. The value LengthUnit.Byte means the MaxLength is counted by Byte. The value LengthUnit.Char means the MaxLength is counted by Char. The value LengthUnit.TextElement means the MaxLength is counted by TextElement.
    See Also