[]
        
(Showing Draft Content)

GrapeCity.Win.Spread.InputMan.CellType.GcTextBoxCellType.MaxLengthUnit

MaxLengthUnit Property

MaxLengthUnit

Gets or sets whether the maximum number of characters allowed in the control are handled based on bytes, characters, or text elements.

Declaration
public LengthUnit MaxLengthUnit { get; set; }
Public Property MaxLengthUnit As LengthUnit
Property Value
Type Description
LengthUnit

The value is true if the MaxLength is based on byte; otherwise, based on character.
The default is LengthUnit.Char.

Remarks

Determines the unit for counting the GrapeCity.Win.Spread.InputMan.CellType.GcTextBox.MaxLength property. The value LengthUnit.Byte means the MaxLength is counted by bytes. The value LengthUnit.Char means the MaxLength is counted by characters. The value LengthUnit.TextElement means the MaxLength is counted by text elements.