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)
Syntax
'Declaration
Property MaxLength As Integer
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.
Remarks
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.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
Microsoft.Office.Tools.Ribbon Namespace