Share via


RibbonComboBox.MaxLength Property

Definition

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

public:
 property int MaxLength { int get(); void set(int value); };
public int MaxLength { get; set; }
member this.MaxLength : int with get, set
Public Property MaxLength As Integer

Property Value

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.

Applies to