skip navigation
  • Product Bundles

    DevCraft

    All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:

    • NEW: Design Kits for Figma
    • Online Training
    • Document Processing Library
    • Embedded Reporting for web and desktop
    Web
    Kendo UI UI for jQuery UI for Angular UI for React UI for Vue UI for ASP.NET AJAX UI for ASP.NET MVC UI for ASP.NET Core UI for Blazor UI for Silverlight UI for PHP UI for JSP
    Mobile
    UI for .NET MAUI UI for Xamarin
    Document Management
    Telerik Document Processing
    Desktop
    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF UI for UWP
    Reporting & Mocking
    Telerik Reporting Telerik Report Server Telerik JustMock
    Automated Testing
    Test Studio Test Studio Dev Edition
    CMS
    Sitefinity
    UI/UX Tools
    ThemeBuilder
    Debugging
    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Jam FiddlerCap FiddlerCore
    Extended Reality
    UI for Unity XR
    Free Tools
    JustAssembly JustDecompile VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
    • What's New
    • Roadmap
    • Release History
  • Docs & Support
  • Pricing
  • Search
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now

Class RoundRectShape

Represents round rectangle shape.

Inheritance
System.Object
ElementShape
RoundRectShape
Inherited Members
ElementShape.GetElementShape(RadElement)
ElementShape.GetElementContour(RadElement)
ElementShape.GetElementContour(Rectangle)
ElementShape.GetBounds(RadElement)
ElementShape.CreateContour(Rectangle)
ElementShape.MirrorPath(GraphicsPath, RectangleF)
ElementShape.Dispose(Boolean)
ElementShape.IsRightToLeft
Namespace: Telerik.WinControls
Assembly: Telerik.WinControls.dll

Syntax

[ComVisible(false)]
public class RoundRectShape : ElementShape

Constructors

RoundRectShape()

Initializes a new instance of the RoundRectShape class.

Declaration
public RoundRectShape()

RoundRectShape(IContainer)

Initializes a new instance of the RoundRectShape class.

Declaration
public RoundRectShape(IContainer components)
Parameters
System.ComponentModel.IContainer components

RoundRectShape(Int32)

Initializes a new instance of the RoundRectShape class using a radius.

Declaration
public RoundRectShape(int radius)
Parameters
System.Int32 radius

RoundRectShape(Int32, Boolean, Boolean, Boolean, Boolean)

Initializes a new instance of the RoundRectShape class using a radius and rounded corners.

Declaration
public RoundRectShape(int radius, bool topLeftRounded, bool bottomLeftRounded, bool topRightRounded, bool bottomRightRounded)
Parameters
System.Int32 radius

System.Boolean topLeftRounded

System.Boolean bottomLeftRounded

System.Boolean topRightRounded

System.Boolean bottomRightRounded

Properties

BottomLeftRounded

Gets or sets value indicating whether the bottom left corner of the shape should be round

Declaration
public bool BottomLeftRounded { get; set; }
Property Value
System.Boolean

BottomRightRounded

Gets or sets value indicating whether bottom right corner of the shape should be round

Declaration
public bool BottomRightRounded { get; set; }
Property Value
System.Boolean

Radius

Gets or sets the radius of the shape.

Declaration
public int Radius { get; set; }
Property Value
System.Int32

TopLeftRounded

Gets or sets value indicating whether top left corner of the shape should be round

Declaration
public bool TopLeftRounded { get; set; }
Property Value
System.Boolean

TopRightRounded

Gets or sets value indicating whether top right corner of the shape should be round

Declaration
public bool TopRightRounded { get; set; }
Property Value
System.Boolean

Methods

CreatePath(Rectangle)

Declaration
public override GraphicsPath CreatePath(Rectangle bounds)
Parameters
System.Drawing.Rectangle bounds

Returns
System.Drawing.Drawing2D.GraphicsPath

Overrides
ElementShape.CreatePath(Rectangle)

CreatePath(RectangleF)

Greates round rectangle like path.

Declaration
public override GraphicsPath CreatePath(RectangleF bounds)
Parameters
System.Drawing.RectangleF bounds

Returns
System.Drawing.Drawing2D.GraphicsPath

Overrides
ElementShape.CreatePath(RectangleF)

CreateRegion(Rectangle)

Declaration
public override Region CreateRegion(Rectangle bounds)
Parameters
System.Drawing.Rectangle bounds

Returns
System.Drawing.Region

Overrides
ElementShape.CreateRegion(Rectangle)

DeserializeProperties(String)

Deserializes properties. Required for telerik deserialization mechanism.

Declaration
public override void DeserializeProperties(string propertiesString)
Parameters
System.String propertiesString

Overrides
ElementShape.DeserializeProperties(String)

SerializeProperties()

Serializes properties. Required for telerik serialization mechanism.

Declaration
public override string SerializeProperties()
Returns
System.String

Overrides
ElementShape.SerializeProperties()

ShouldMirrorPath()

Declaration
protected override bool ShouldMirrorPath()
Returns
System.Boolean

Overrides
ElementShape.ShouldMirrorPath()

Extension Methods

SvgExtentions.Traverse<T>(T, Func<T, IEnumerable<T>>)
SvgExtentions.TraverseDepthFirst<T>(T, Func<T, IEnumerable<T>>)

Was this article helpful?

Tell us how we can improve this article

Skip
Getting Started
  • Install Now
  • Demos
  • Step-by-Step Tutorial
  • Sample Applications
  • SDK Samples
  • Visual Studio Extensions
Support Resources
  • Code Library
  • Knowledge Base
  • Videos
Community
  • Forums
  • Blogs
  • Feedback Portal
  • Document Processing Feedback Portal

Copyright © 2018 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.