共用方式為


RibbonFactory.CreateRibbonDropDown Method

Creates a RibbonDropDown object that represents a list of items that a user can choose from and a list of Ribbon buttons that a user can click.

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

Syntax

'Declaration
Function CreateRibbonDropDown As RibbonDropDown
RibbonDropDown CreateRibbonDropDown()

Return Value

Type: Microsoft.Office.Tools.Ribbon.RibbonDropDown
A Ribbon drop-down control.

Remarks

A RibbonDropDown can contain RibbonDropDownItem objects and RibbonButton controls.

.NET Framework Security

See Also

Reference

RibbonFactory Interface

Microsoft.Office.Tools.Ribbon Namespace