RibbonPanel.AddStackedItems(RibbonItemData, RibbonItemData)
Method
Description:
Adds two stacked items to the panel.
Adds two stacked items to the panel.
Remarks:
Each new item may either be a PushButton, PulldownButton, SplitButton, ComboBox or TextBox, depending upon the type of data passed in for each argument. The new items will be created as small-size horizontal controls, with the first stacked on top of the second in the panel.
Each new item may either be a PushButton, PulldownButton, SplitButton, ComboBox or TextBox, depending upon the type of data passed in for each argument. The new items will be created as small-size horizontal controls, with the first stacked on top of the second in the panel.
Parameters
Parameter | Type | Description |
---|---|---|
item1 | RibbonItemData | Data containing information about the first item. This data must be of type PushButtonData, PulldownButtonData, SplitButtonData, ComboBoxData, or TextBoxData. |
item2 | RibbonItemData | Data containing information about the second item. This data must be of type PushButtonData, PulldownButtonData, SplitButtonData, ComboBoxData, or TextBoxData. |
Return Value
Type | Description |
---|---|
IList | A collection containing the added items. |
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | Thrown when item1 or item2 is. |
ArgumentException | Thrown when an item with the item1.Name or item2.Name already exists in the panel or the data is not of the correct type. |