FlexChart | ComponentOne
C1.Win.Ribbon.8 Assembly / 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 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