[]
        
(Showing Draft Content)

C1.Win.Ribbon.C1Ribbon.GetHostRibbonItem

GetHostRibbonItem Method

GetHostRibbonItem(Control)

Returns the RibbonItem that contains the specified control.

Declaration
public static RibbonItem GetHostRibbonItem(Control control)
Parameters
Type Name Description
Control control
Returns
Type Description
RibbonItem
Remarks

For example, the RibbonTextBox item uses the TextBox control internally. If you pass this TextBox to the GetHostRibbonItem method it will return the owner RibbonTextBox item.