# Special Border Styles in Toolbars

Get started with Menus and Toolbars for WinForms. Create versatile menus and docking/floating toolbars. See more in documentation here.

## Content



C1ToolBar has a special class, [C1Border](/componentone/docs/win/online-menus-toolbar/), that allows you to add various border styles to the toolbars. C1Border contains the following members:

| Name | Description |
| --- | --- |
| [BottomEdge](/componentone/docs/win/online-menus-toolbar/) | Determines whether the border has a bottom edge. |
| [DarkColor](/componentone/docs/win/online-menus-toolbar/) | Gets or sets the color of the group. In the Flat setting for the [Style](/componentone/docs/win/online-menus-toolbar/) this color applies to the top, bottom, left, and right edges of the toolbar. |
| [LeftEdge](/componentone/docs/win/online-menus-toolbar/) | Determines whether the border has a left edge. |
| [LightColor](/componentone/docs/win/online-menus-toolbar/) | Gets or sets the color of the border. This color is not used in the Flat setting for the C1Border |
| [RightEdge](/componentone/docs/win/online-menus-toolbar/) | Determines whether the border has a right edge. |
| [Style](/componentone/docs/win/online-menus-toolbar/) | Gets or sets the border style. |
| [TopEdge](/componentone/docs/win/online-menus-toolbar/) | Determines whether the border has a top edge. |
| [Width](/componentone/docs/win/online-menus-toolbar/) | Gets or sets the border width in pixels. |

The following image illustrates the TopEdge, LeftEdge, BottomEdge, and RightEdge properties for the **C1Border** class.

<br />![Properties in C1Border class](https://cdn.mescius.io/document-site-files/images/a27cb622-e6d9-4efc-a0b0-0c31245fd632/imagesext/image11_138.png)

The TopEdge, LeftEdge, BottomEdge, and RightEdge properties are useful for applying borders to specific areas such as the top, bottom, left, or right edge of the **C1ToolBar**. These properties are set to **True** by default.

The following table illustrates each of the property settings for [Style](/componentone/docs/win/online-menus-toolbar/) property. In addition to the various border styles shown below, the table also illustrates the **Width**, **DarkColor**, **LeftEdge**, **RightEdge**, **BottomEdge**, and **TopEdge** properties. The [Width](/componentone/docs/win/online-menus-toolbar/) property is set to 5 pixels, [DarkColor](/componentone/docs/win/online-menus-toolbar/) property is set to **DarkTurquoise**, [LeftEdge](/componentone/docs/win/online-menus-toolbar/) property is set to PaleTurquoise, and the [LeftEdge](/componentone/docs/win/online-menus-toolbar/), [RightEdge](/componentone/docs/win/online-menus-toolbar/), [BottomEdge](/componentone/docs/win/online-menus-toolbar/), and [TopEdge](/componentone/docs/win/online-menus-toolbar/) are all set to **True**.

| Property Setting | Image |
| --- | --- |
| **Style.None** | ![None](https://cdn.mescius.io/document-site-files/images/a27cb622-e6d9-4efc-a0b0-0c31245fd632/imagesext/image11_139.png) |
| **Style.Flat** | ![Flat](https://cdn.mescius.io/document-site-files/images/a27cb622-e6d9-4efc-a0b0-0c31245fd632/imagesext/image11_140.png) |
| **Style.Groove** | ![Groove](https://cdn.mescius.io/document-site-files/images/a27cb622-e6d9-4efc-a0b0-0c31245fd632/imagesext/image11_141.png) |
| **Style.Ridge** | ![Ridge](https://cdn.mescius.io/document-site-files/images/a27cb622-e6d9-4efc-a0b0-0c31245fd632/imagesext/image11_142.png) |
| **Style.Inset** | ![Inset](https://cdn.mescius.io/document-site-files/images/a27cb622-e6d9-4efc-a0b0-0c31245fd632/imagesext/image11_143.png) |
| **Style.Outset** | ![Outset](https://cdn.mescius.io/document-site-files/images/a27cb622-e6d9-4efc-a0b0-0c31245fd632/imagesext/image11_144.png) |

The following table illustrates the effect of the [LeftEdge](/componentone/docs/win/online-menus-toolbar/), [RightEdge](/componentone/docs/win/online-menus-toolbar/), [BottomEdge](/componentone/docs/win/online-menus-toolbar/), and [TopEdge](/componentone/docs/win/online-menus-toolbar/) when each one is disabled:

| Property Setting | Image |
| --- | --- |
| **BottomEdge.False** | ![Bottom edge](https://cdn.mescius.io/document-site-files/images/a27cb622-e6d9-4efc-a0b0-0c31245fd632/imagesext/image11_145.png) |
| **LeftEdge.False** | ![Left edge](https://cdn.mescius.io/document-site-files/images/a27cb622-e6d9-4efc-a0b0-0c31245fd632/imagesext/image11_146.png) |
| **RightEdge.False** | ![Right edge](https://cdn.mescius.io/document-site-files/images/a27cb622-e6d9-4efc-a0b0-0c31245fd632/imagesext/image11_147.png) |
| **TopEdge.False** | ![Top Edge](https://cdn.mescius.io/document-site-files/images/a27cb622-e6d9-4efc-a0b0-0c31245fd632/imagesext/image11_148.png) |

For more information about using these properties, see [Modifying the Appearance of the Toolbar](/componentone/docs/win/online-menus-toolbar/menusandtoolbarsforw2/toolbartasks/modifyingtheappearan1).

## See Also

[Mouse-Over Styles in Toolbar Buttons](/componentone/docs/win/online-menus-toolbar/menusandtoolbarsover/toolbarsappearancean/mouseoverstylesintoo)