Share via


RibbonComboBox.SizeString Property (2007 System)

Gets or sets a string that determines the size of the 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 SizeString As String
'Usage
Dim instance As RibbonComboBox 
Dim value As String 

value = instance.SizeString

instance.SizeString = value
public string SizeString { get; set; }
public:
property String^ SizeString {
    String^ get ();
    void set (String^ value);
}
public function get SizeString () : String 
public function set SizeString (value : String)

Property Value

Type: System.String
A string, the length of which determines the size of this RibbonComboBox.

Remarks

When you set the SizeString property in the Ribbon Designer, the Microsoft Office application tries to size the RibbonComboBox so that it will be large enough to display the entire string. Although Visual Studio Tools for Office allows a string of up to 1024 characters in length, in practice the usable string length might be much shorter.

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

.NET Framework Security

See Also

Reference

RibbonComboBox Class

RibbonComboBox Members

Microsoft.Office.Tools.Ribbon Namespace

Other Resources

Ribbon Object Model Overview