# Chamfered Rect Shape

The following image shows the Chamfered Rect shape applied to a RadPanel:

![Telerik UI for WinForms Chamfered Rect shape applied to a RadPanel](https://www.telerik.com/products/winforms/documentation/assets/867d8c9ff9736079263bed2855613152/chamfered-rect-shape001.png)

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

  



```C#
ChamferedRectShape chamferedRectShape = new ChamferedRectShape();
chamferedRectShape.Width = 50;
chamferedRectShape.Angle = 45;
radPanel1.BackColor = Color.ForestGreen;
this.radPanel1.RootElement.Shape = chamferedRectShape;
this.radPanel1.RootElement.ApplyShapeToControl = true;

```

```VB.NET
Dim chamferedRectShape As ChamferedRectShape = New ChamferedRectShape()
chamferedRectShape.Width = 50
chamferedRectShape.Angle = 45
radPanel1.BackColor = Color.ForestGreen
Me.radPanel1.RootElement.Shape = chamferedRectShape
Me.radPanel1.RootElement.ApplyShapeToControl = True

```

 

### Properties

* **Width**: A property of type **int** that gets or sets the **width** of the chamfer.
* **Angle**: A property of type **int** that gets or sets the **angle** of the chamfer.
* **TopLeftChamfered**: A property of type **bool** that gets or sets whether the top left corner of the shape will be chamfered.
* **TopRightChamfered**: A property of type **bool** that gets or sets whether the top right corner of the shape will be chamfered.
* **BottomRightChamfered**: A property of type **bool** that gets or sets whether the bottom right corner of the shape will be chamfered.
* **BottomLeftChamfered**: A property of type **bool** that gets or sets whether the bottom left corner of the shape will be chamfered.

## 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)

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