# RoundRect Shape

The following image shows the RoundRect shape applied to a RadPanel:

![Telerik UI for WinForms RoundRectShape applied to a RadPanel](https://www.telerik.com/products/winforms/documentation/assets/44cbba3d9926c550444feba1531d708e/roundrect-shape001.png)

The following code shows how you can create and apply a **RoundRectShape**:

  



```C#
RoundRectShape roundRectShape = new RoundRectShape();
roundRectShape.Radius = 30;
radPanel1.RootElement.Shape = roundRectShape;
radPanel1.RootElement.ApplyShapeToControl = true;

```

```VB.NET
Dim roundRectShape As New RoundRectShape()
roundRectShape.Radius = 30
radPanel1.RootElement.Shape = roundRectShape
radPanel1.RootElement.ApplyShapeToControl = True

```

 

### Properties

* **Radius:** Gets or set the radius of the rectangle corner.

* **TopLeftRounded:** allows you to disable the rounding of the top left corner.

* **TopRightRounded:** allows you to disable the rounding of the top right corner.

* **BottomLeftRounded:** allows you to disable the rounding of the bottom left corner.

* **BottomRightRounded:** allows you to disable the rounding of the bottom right corner.

## See Also

* [Custom Shapes](https://www.telerik.com/products/winforms/documentation/telerik-presentation-framework/shapes/diamond-shape)

* [Diamond Shape](https://www.telerik.com/products/winforms/documentation/telerik-presentation-framework/shapes/diamond-shape)

* [Donut Shape](https://www.telerik.com/products/winforms/documentation/telerik-presentation-framework/shapes/donut-shape)

* [Ellipse Shape](https://www.telerik.com/products/winforms/documentation/telerik-presentation-framework/shapes/elipse-shape)

* [Heart Shape](https://www.telerik.com/products/winforms/documentation/telerik-presentation-framework/shapes/heart-shape)

* [Media Shape](https://www.telerik.com/products/winforms/documentation/telerik-presentation-framework/shapes/media-shape)

* [Overview](https://www.telerik.com/products/winforms/documentation/telerik-presentation-framework/shapes/overview)

* [Star Shape](https://www.telerik.com/products/winforms/documentation/telerik-presentation-framework/shapes/star-shape)

* [How to Achieve Rounded Shape and Rounded Border for RadTextBox](https://www.telerik.com/products/winforms/documentation/knowledge-base/rounded-border)
