[]
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.
public LengthUnit MaxLengthUnit { get; set; }
Public Property MaxLengthUnit As LengthUnit
Type | Description |
---|---|
LengthUnit | A GrapeCity.Windows.InputMan.LengthUnit enumeration value indicates the length unit is based on char, byte or text element.
|
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.
Type | Condition |
---|---|
ArgumentException | Value is not defined in GrapeCity.Windows.InputMan.LengthUnit enumeration. |