Chamfered Rect Shape
The following image shows the Chamfered Rect shape applied to a RadPanel:
The following code shows how you can create and apply a StarShape:
ChamferedRectShape chamferedRectShape = new ChamferedRectShape();
chamferedRectShape.Width = 50;
chamferedRectShape.Angle = 45;
radPanel1.BackColor = Color.ForestGreen;
this.radPanel1.RootElement.Shape = chamferedRectShape;
this.radPanel1.RootElement.ApplyShapeToControl = true;
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.