# Structure

> caption Figure 1: RadCommandBar's elements hierarchy

![WinForms RadCommandBar RadCommandBar's elements hierarchy](https://www.telerik.com/products/winforms/documentation/assets/44debedc7a3bd3a56ff532bb3dbad886/commandbar-structure005.png)

The Telerik **RadCommandBar** is built up of five levels of nested components:

* RadCommandbar

  * RadCommandBarElement

    * CommandBarRowElement (Rows Collection)

      * CommandBarStripElement (Strips Collection)

        * RadCommandBarGripButton

        * Items ( arranged in ItemsLayout)

        * RadCommandBarOverflowButton

## RadCommandBar

The **RadCommandBarElement** object represents the overall area of the form occupied by the Telerik **RadCommandBar**.

> caption Figure 2: RadCommandBarElement

![WinForms RadCommandBar CommandBarElement Sample](https://www.telerik.com/products/winforms/documentation/assets/7bb13e4d682d4883df1ffb063359f7b7/commandbar-structure001.png)

## CommandBarRowElement

The **CommandBarRowElement** object represents a horizontal or vertical line within the **RadCommandBarElement** where individual strip elements are displayed.

> caption Figure 3: CommandBarRowElement

![WinForms RadCommandBar CommandBarRowElement Sample](https://www.telerik.com/products/winforms/documentation/assets/12d412bda46156c20d09020bc4e8d4a9/commandbar-structure002.png)

## CommandBarStripElement

The **CommandBarStripElement** object represents an individual toolstrip within a **CommandBarRowElement**. Descendants of the **RadCommandBarBaseItem** are arranged within a particular **CommandBarStripElement**.

> caption Figure 4: CommandBarStripElement

![WinForms RadCommandBar CommandBarStripElement Sample](https://www.telerik.com/products/winforms/documentation/assets/fdf675e1bf728a323ad5fd9b8b81864e/commandbar-structure003.png)

## RadCommandBarBaseItem descendants

You can add these item types to the **CommandBarStripElement** from the context menu or the RadElement Collection Editor:

| Name                     | Example                                                                                                                                                                          | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| ------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| CommandBarButton         | ![WinForms RadCommandBar CommandBarButton](https://www.telerik.com/products/winforms/documentation/assets/be2ec6b268808b6d48ba9d32db623440/commandbar-item-types001.png)         | Displays a button containing text, an image, or both. Set the DrawText property to true to display the text of the button. Use the TextImageRelation property to control the layout of image and text: Overlay, ImageAboveText, TextAboveImage, ImageBeforeText, TextBeforeImage.                                                                                                                                                                                                        |
| CommandBarToggleButton   | ![WinForms RadCommandBar CommandBarToggleButton](https://www.telerik.com/products/winforms/documentation/assets/cecee506685d9b306ef5a07b08049a53/commandbar-item-types002.png)   | Displays a button that can toggle between "pressed" and "unpressed" states. The button element ToggleState property indicates the current condition of the button.                                                                                                                                                                                                                                                                                                                       |
| CommandBarTextBox        | ![WinForms RadCommandBar CommandBarTextBox](https://www.telerik.com/products/winforms/documentation/assets/15ed78d25d0aa8ef46e39493d2edc040/commandbar-item-types003.png)        | Displays a text box that can accept user input. Use the Text property to get and set its content.                                                                                                                                                                                                                                                                                                                                                                                        |
| CommandBarDropDownList   | ![WinForms RadCommandBar CommandBarDropDownList](https://www.telerik.com/products/winforms/documentation/assets/0407dc28accb1659a8180d2bf6867f50/commandbar-item-types004.png)   | Displays a dropdown list. Use the SelectedIndexChanged and SelectedValueChanged events to respond to user choices.                                                                                                                                                                                                                                                                                                                                                                       |
| CommandBarLabel          | ![WinForms RadCommandBar CommandBarLabel](https://www.telerik.com/products/winforms/documentation/assets/5f0ad6684bc5464d68ca4d165b7577e7/commandbar-item-types005.png)          | Displays static text on a strip element. Set the Text property to change the content.                                                                                                                                                                                                                                                                                                                                                                                                    |
| CommandBarSeparatorItem  | ![WinForms RadCommandBar CommandBarSeparatorItem](https://www.telerik.com/products/winforms/documentation/assets/7bb3bd86221b5f1d8e1c690888e7c5cb/commandbar-item-types006.png)  | Adds empty space between other elements on a strip element.                                                                                                                                                                                                                                                                                                                                                                                                                              |
| CommandBarDropDownButton | ![WinForms RadCommandBar CommandBarDropDownButton](https://www.telerik.com/products/winforms/documentation/assets/1545fdfceb362387e0c41ee09a67f35d/commandbar-item-types007.png) | Displays a button with a drop-down arrow. Clicking the drop-down arrow displays a menu of choices. Use the Items property to populate the menu. To host a WinForms control in the dropdown, use a **RadMenuHostItem**. Attach event handlers for individual element events in code to respond to user actions.                                                                                                                                                                           |
| CommandBarSplitButton    | ![WinForms RadCommandBar CommandBarSplitButton](https://www.telerik.com/products/winforms/documentation/assets/5b8c7a2973bc8c0912e2390376c53d71/commandbar-item-types008.png)    | Displays a button with a drop-down arrow. Clicking the drop-down arrow displays a menu of choices. Clicking the button has the same effect as clicking the default item from the menu.                                                                                                                                                                                                                                                                                                   |
| CommandBarHostItem       | ![WinForms RadCommandBar CommandBarHostItem](https://www.telerik.com/products/winforms/documentation/assets/ab638e7db36926949a1a9fcaa7fe8130/commandbar-item-types009.png)       | Item that can host a **RadElement** or a WinForms control directly in the CommandBar strip. Use the **HostedItem** or **HostedControl** property to get/set the element or control that you are hosting. To host a control in a **CommandBarDropDownButton** dropdown, use a **RadMenuHostItem** as shown in [Display a calendar in a CommandBarDropDownButton](https://www.telerik.com/products/winforms/documentation/controls/commandbar/how-to/display-calendar-in-dropdown-button). |
| CommandBarMaskedEditBox  | ![WinForms RadCommandBar CommandBarMaskedEditBox](https://www.telerik.com/products/winforms/documentation/assets/6a5c4d995de1c3caaaa214fb633d32b3/commandbar-item-types010.png)  | Displays [WinForms RadCommandBar RadMaskedEditBox](https://www.telerik.com/products/winforms/documentation/controls/editors/maskededitbox/maskededitbox).                                                                                                                                                                                                                                                                                                                                |

> caption Figure 5: RadCommandBarBaseItem

![WinForms RadCommandBar 5 RadCommandBarBaseItem Sample](https://www.telerik.com/products/winforms/documentation/assets/47b6c6e71aaa5f74a52ee6f687f19a0b/commandbar-structure004.png)
