Freigeben über


RibbonEditBox.MaxLength Property

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

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 RibbonEditBox. 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

See Also

Reference

RibbonEditBox Interface

Microsoft.Office.Tools.Ribbon Namespace

Other Resources

Ribbon Object Model Overview