ComponentOne Ribbon for WinForms
C1.Win.C1Ribbon.4.5.2 Assembly / C1.Win.C1Ribbon Namespace / C1Ribbon Class / GetHostRibbonItem Method

In This Topic
    GetHostRibbonItem Method
    In This Topic
    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