[]
Gets or sets whether the maximum number of characters allowed in the control are handled based on bytes, characters, or text elements.
public LengthUnit MaxLengthUnit { get; set; }
Public Property MaxLengthUnit As LengthUnit
Type | Description |
---|---|
LengthUnit | The value is true if the MaxLength is based on byte;
otherwise, based on character.
|
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.