ComponentOne Ribbon for WinForms
GetHostRibbonItem Method

C1.Win.C1Ribbon.4 Assembly > C1.Win.C1Ribbon Namespace > C1Ribbon Class : GetHostRibbonItem Method
Returns the RibbonItem that contains the specified control.
Syntax
'Declaration
 
Public Shared Function GetHostRibbonItem( _
   ByVal control As System.Windows.Forms.Control _
) As RibbonItem
public static RibbonItem GetHostRibbonItem( 
   System.Windows.Forms.Control control
)

Parameters

control
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.
See Also

Reference

C1Ribbon Class
C1Ribbon Members