Export (0) Print
Expand All

RibbonComboBox.MaxLength Property

Gets or sets a value that indicates the maximum number of characters allowed per entry in this RibbonComboBox.

Namespace:  Microsoft.Office.Tools.Ribbon
Assembly:  Microsoft.Office.Tools.Common (in Microsoft.Office.Tools.Common.dll)

int MaxLength { get; set; }

Property Value

Type: System.Int32
An integer value that indicates the maximum number of characters allowed per entry in this RibbonComboBox. A value of 0 indicates that there is no predefined limit.

This property can be set at run time only under certain conditions. For more information, see Ribbon Object Model Overview.

The MaxLength property does not specify how much of the input string is displayed. To change the display limit, set the SizeString property.

Show:
© 2014 Microsoft