New to Telerik UI for WinFormsStart a free 30-day trial

Chamfered Rect Shape

Updated over 6 months ago

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

star-shape001

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;

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

In this article
PropertiesSee Also
Not finding the help you need?
Contact Support