[]
Returns the RibbonItem that contains the specified control.
public static RibbonItem GetHostRibbonItem(Control control)
| Type | Name | Description |
|---|---|---|
| Control | control |
| Type | Description |
|---|---|
| RibbonItem |
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.