# WinForms Separator Overview

**RadSeparator** is a control that gives you the ability to divide your forms into logical parts. By default it contains of two lines.

<CtaPanelOverview></CtaPanelOverview>

> caption Figure 1: RadSeparator

![WinForms RadTemplates Overview](https://www.telerik.com/products/winforms/documentation/assets/16f54af3c77d344154cb0f48d351521d/panels-and-labels-separator001.png)

The control have several properties that you might find interesting:

* **Orientation** - gets or sets the control orientation to Vertical or Horizontal

  ![WinForms RadSeparator Orientation](https://www.telerik.com/products/winforms/documentation/assets/92e647ddadcac4449beafd8955e5b9c6/panels-and-labels-separator002.png)

* **ShadowOffset** - gets or sets the offset of the both lines, both horizontal and vertical

* **ShowShadow** - enables/disables the second line

* **SeparatorElement** - the element that holds the lines. Gives you the ability to access and customize them

Follows a small sample, which demonstrates how to take advantage of the functionalities of RadSeparator

#### Customize RadSeparator

```C#
radSeparator1.ShadowOffset = new Point(10, 0);
radSeparator1.SeparatorElement.Line1.LineWidth = 5;
radSeparator1.SeparatorElement.Line2.LineWidth = 5;

radSeparator1.ShowShadow = true;
radSeparator1.Orientation = Orientation.Horizontal;
radSeparator1.SeparatorElement.Line1.BackColor = Color.Yellow;
radSeparator1.SeparatorElement.Line1.BackColor2 = Color.Orange;
radSeparator1.SeparatorElement.Line1.BackColor3 = Color.Red;
radSeparator1.SeparatorElement.Line1.NumberOfColors = 3;
radSeparator1.SeparatorElement.Line1.GradientStyle = Telerik.WinControls.GradientStyles.Linear;
radSeparator1.SeparatorElement.Line1.GradientAngle = 0;

radSeparator1.SeparatorElement.Line2.BackColor = Color.Black;
radSeparator1.SeparatorElement.Line2.BackColor2 = Color.Green;
radSeparator1.SeparatorElement.Line2.BackColor3 = Color.LightGreen;
radSeparator1.SeparatorElement.Line2.NumberOfColors = 3;
radSeparator1.SeparatorElement.Line2.GradientStyle = Telerik.WinControls.GradientStyles.Linear;
radSeparator1.SeparatorElement.Line2.GradientAngle = 0;
```

```VB.NET
RadSeparator1.ShadowOffset = New Point(10, 0)
RadSeparator1.SeparatorElement.Line1.LineWidth = 5
RadSeparator1.SeparatorElement.Line2.LineWidth = 5

RadSeparator1.ShowShadow = True
RadSeparator1.Orientation = Orientation.Horizontal
RadSeparator1.SeparatorElement.Line1.BackColor = Color.Yellow
RadSeparator1.SeparatorElement.Line1.BackColor2 = Color.Orange
RadSeparator1.SeparatorElement.Line1.BackColor3 = Color.Red
RadSeparator1.SeparatorElement.Line1.NumberOfColors = 3
RadSeparator1.SeparatorElement.Line1.GradientStyle = Telerik.WinControls.GradientStyles.Linear
RadSeparator1.SeparatorElement.Line1.GradientAngle = 0

RadSeparator1.SeparatorElement.Line2.BackColor = Color.Black
RadSeparator1.SeparatorElement.Line2.BackColor2 = Color.Green
RadSeparator1.SeparatorElement.Line2.BackColor3 = Color.LightGreen
RadSeparator1.SeparatorElement.Line2.NumberOfColors = 3
RadSeparator1.SeparatorElement.Line2.GradientStyle = Telerik.WinControls.GradientStyles.Linear
RadSeparator1.SeparatorElement.Line2.GradientAngle = 0
```

Here is the result of the following code:

> caption Figure 2: RadSeparator Customization

![WinForms RadSeparator Customization](https://www.telerik.com/products/winforms/documentation/assets/458e23f548f71a69dca88c681d231a7f/panels-and-labels-separator003.png)

## Telerik UI for WinForms Learning Resources

* [Telerik UI for WinForms Separator Homepage](https://www.telerik.com/products/winforms/separator.aspx)
* [Telerik UI for WinForms API Reference](https://docs.telerik.com/devtools/winforms/api/)
* [Getting Started with Telerik UI for WinForms Components](https://www.telerik.com/products/winforms/documentation/getting-started/first-steps)
* [Telerik UI for WinForms Virtual Classroom (Training Courses for Registered Users)](https://learn.telerik.com/learn/course/external/view/elearning/17/TelerikUIforWinForms)
* [Telerik UI for WinForms Forum](https://www.telerik.com/forums/winforms)
* [Telerik UI for WinForms Knowledge Base](https://docs.telerik.com/devtools/winforms/knowledge-base)

## See Also

* [Panel](https://www.telerik.com/products/winforms/documentation/controls/panels-and-labels/panel/overview)
* [Collapsible Panel](https://www.telerik.com/products/winforms/documentation/controls/panels-and-labels/collapsiblepanel/overview)
* [Scrollable Panel](https://www.telerik.com/products/winforms/documentation/controls/panels-and-labels/radscrollablepanel)
