[]
        
(Showing Draft Content)

GrapeCity.Wpf.SpreadSheet.CellType.Editors.GcTextBox.MaxLengthUnit

MaxLengthUnit Property

MaxLengthUnit

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.

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

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.

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.

Exceptions
Type Condition
ArgumentException

Value is not defined in GrapeCity.Windows.InputMan.LengthUnit enumeration.