Edit this page

RoundRect Shape

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

RoundRect-shape001

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

RoundRectShape roundRectShape = new RoundRectShape();
roundRectShape.Radius = 30;
radPanel1.PanelElement.Shape = roundRectShape;

Dim roundRectShape As New RoundRectShape()
roundRectShape.Radius = 30
radPanel1.PanelElement.Shape = roundRectShape

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