Class RoundRectShape
Represents a rounded rectangle shape with configurable corner radius and individual corner rounding control.
Inherited Members
Namespace: Telerik.WinControls
Assembly: Telerik.WinControls.dll
Syntax
[ComVisible(false)]
public class RoundRectShape : ElementShape
Remarks
This shape allows for creating rounded rectangles with fine-grained control over which corners are rounded and the radius of the rounded corners. Each corner can be independently configured to be rounded or square.
Constructors
RoundRectShape()
Initializes a new instance of the RoundRectShape class with default settings.
Declaration
public RoundRectShape()
RoundRectShape(IContainer)
Initializes a new instance of the RoundRectShape class with a container.
Declaration
public RoundRectShape(IContainer components)
Parameters
System.ComponentModel.IContainer
components
The container to add this shape to. |
RoundRectShape(Int32)
Initializes a new instance of the RoundRectShape class with the specified radius.
Declaration
public RoundRectShape(int radius)
Parameters
System.Int32
radius
The radius for all rounded corners. |
RoundRectShape(Int32, Boolean, Boolean, Boolean, Boolean)
Initializes a new instance of the RoundRectShape class with the specified radius and corner settings.
Declaration
public RoundRectShape(int radius, bool topLeftRounded, bool bottomLeftRounded, bool topRightRounded, bool bottomRightRounded)
Parameters
System.Int32
radius
The radius for rounded corners. |
System.Boolean
topLeftRounded
true to round the top-left corner; otherwise, false. |
System.Boolean
bottomLeftRounded
true to round the bottom-left corner; otherwise, false. |
System.Boolean
topRightRounded
true to round the top-right corner; otherwise, false. |
System.Boolean
bottomRightRounded
true to round the bottom-right corner; otherwise, false. |
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 rounded corners.
Declaration
public int Radius { get; set; }
Property Value
System.Int32
The radius in pixels for rounded corners. Default is 5. |
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
CreatePath(RectangleF)
Creates round rectangle like path.
Declaration
public override GraphicsPath CreatePath(RectangleF bounds)
Parameters
System.Drawing.RectangleF
bounds
|
Returns
System.Drawing.Drawing2D.GraphicsPath
|
Overrides
CreateRegion(Rectangle)
Declaration
public override Region CreateRegion(Rectangle bounds)
Parameters
System.Drawing.Rectangle
bounds
|
Returns
System.Drawing.Region
|
Overrides
DeserializeProperties(String)
Deserializes properties. Required for telerik deserialization mechanism.
Declaration
public override void DeserializeProperties(string propertiesString)
Parameters
System.String
propertiesString
|
Overrides
SerializeProperties()
Serializes properties. Required for telerik serialization mechanism.
Declaration
public override string SerializeProperties()
Returns
System.String
|
Overrides
ShouldMirrorPath()
Declaration
protected override bool ShouldMirrorPath()
Returns
System.Boolean
|