Udostępnij za pośrednictwem


RibbonComboBox.MaxLength Property (2007 System)

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.v9.0 (in Microsoft.Office.Tools.Common.v9.0.dll)

Syntax

'Declaration
Public Property MaxLength As Integer
'Usage
Dim instance As RibbonComboBox 
Dim value As Integer 

value = instance.MaxLength

instance.MaxLength = value
public int MaxLength { get; set; }
public:
property int MaxLength {
    int get ();
    void set (int value);
}
public function get MaxLength () : int 
public function set MaxLength (value : int)

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

See Also

Reference

RibbonComboBox Class

RibbonComboBox Members

Microsoft.Office.Tools.Ribbon Namespace

Other Resources

Ribbon Object Model Overview