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

RoundRect Shape

Updated over 6 months ago

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:

C#
RoundRectShape roundRectShape = 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

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