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

In This Topic
    GetHostRibbonItem Method (C1Ribbon)
    In This Topic
    Returns the RibbonItem that contains the specified control.
    Syntax
    'Declaration
     
    
    Public Shared Function GetHostRibbonItem( _
       ByVal control As Control _
    ) As RibbonItem
    public static RibbonItem GetHostRibbonItem( 
       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