ClassRoundRectShape
Represents a rounded rectangle shape with configurable corner radius and individual corner rounding control.
Definition
Namespace:Telerik.WinControls
Assembly:Telerik.WinControls.dll
Syntax:
[ComVisible(false)]
public class RoundRectShape : ElementShape, IComponent, IDisposable
Inheritance: objectMarshalByRefObjectComponentElementShapeRoundRectShape
Implements:
Inherited Members
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
components
The container to add this shape to.
RoundRectShape(int)
Initializes a new instance of the RoundRectShape class with the specified radius.
Declaration
public RoundRectShape(int radius)
Parameters
radius
The radius for all rounded corners.
RoundRectShape(int, bool, bool, bool, bool)
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
radius
The radius for rounded corners.
topLeftRounded
true to round the top-left corner; otherwise, false.
bottomLeftRounded
true to round the bottom-left corner; otherwise, false.
topRightRounded
true to round the top-right corner; otherwise, false.
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
BottomRightRounded
Gets or sets value indicating whether bottom right corner of the shape should be round
Radius
Gets or sets the radius of the rounded corners.
Declaration
public int Radius { get; set; }
Property Value
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
TopRightRounded
Gets or sets value indicating whether top right corner of the shape should be round
Methods
CreatePath(Rectangle)
Creates a GraphicsPath using the specified rectangle as bounds. This method must be implemented by derived classes.
Declaration
public override GraphicsPath CreatePath(Rectangle bounds)
Parameters
bounds
The rectangle defining the bounds for the shape.
Returns
A GraphicsPath representing the shape within the specified bounds.
Overrides
CreatePath(RectangleF)
Creates round rectangle like path.
Declaration
public override GraphicsPath CreatePath(RectangleF bounds)
Parameters
bounds
Returns
Overrides
DeserializeProperties(string)
Deserializes properties. Required for telerik deserialization mechanism.
Declaration
public override void DeserializeProperties(string propertiesString)
Parameters
propertiesString
Overrides
SerializeProperties()
Serializes properties. Required for telerik serialization mechanism.