RibbonDropDownItem.ToString Method

Returns a string that represents this RibbonDropDownItem object.

Namespace:  Microsoft.Office.Tools.Ribbon
Assembly:  Microsoft.Office.Tools.Common.v9.0 (in Microsoft.Office.Tools.Common.v9.0.dll)


Public Overrides Function ToString As String
Dim instance As RibbonDropDownItem
Dim returnValue As String

returnValue = instance.ToString()
public override string ToString()

Return Value

Type: System.String
A string that represents this RibbonDropDownItem object.


This method is used at design time to generate human-readable names for newly created RibbonDropDownItem controls.

If this RibbonDropDownItem has a Label of nonzero length, then the label text is returned. Otherwise, the string returned is "Item" followed by a unique integer specific to this RibbonDropDownItem.

.NET Framework Security

See Also


RibbonDropDownItem Class

RibbonDropDownItem Members

Microsoft.Office.Tools.Ribbon Namespace

Other Resources

Ribbon Object Model Overview