Class ChamferedRectShape
Represents a rectangle with chamfered corners.
Inherited Members
Namespace: Telerik.WinControls
Assembly: Telerik.WinControls.dll
Syntax
[ComVisible(false)]
public class ChamferedRectShape : ElementShape
Constructors
ChamferedRectShape()
ChamferedRectShape(Int32)
Initializes a new instance of the ChamferedRectShape class.
Declaration
public ChamferedRectShape(int width)
Parameters
System.Int32
width
The width of the chamfer. |
ChamferedRectShape(Int32, Int32)
Initializes a new instance of the ChamferedRectShape class.
Declaration
public ChamferedRectShape(int width, int angle)
Parameters
System.Int32
width
The width of the chamfer. |
System.Int32
angle
The angle of the chamfer in degrees. |
ChamferedRectShape(Int32, Int32, Boolean, Boolean, Boolean, Boolean)
Initializes a new instance of the ChamferedRectShape class.
Declaration
public ChamferedRectShape(int width, int angle, bool topLeftChamfered, bool topRightChamfered, bool bottomRightChamfered, bool bottomLeftChamfered)
Parameters
System.Int32
width
The width of the chamfer. |
System.Int32
angle
The angle of the chamfer in degrees. |
System.Boolean
topLeftChamfered
if set to |
System.Boolean
topRightChamfered
if set to |
System.Boolean
bottomRightChamfered
if set to |
System.Boolean
bottomLeftChamfered
if set to |
Properties
Angle
Gets or sets the angle of the chamfer in degrees. The value must be between 0 inclusive and 90 exclusive.
Declaration
public int Angle { get; set; }
Property Value
System.Int32
|
BottomLeftChamfered
Gets or sets a value indicating whether the bottom left corner of the shape will be chamfered.
Declaration
public bool BottomLeftChamfered { get; set; }
Property Value
System.Boolean
|
BottomRightChamfered
Gets or sets a value indicating whether the bottom right corner of the shape will be chamfered.
Declaration
public bool BottomRightChamfered { get; set; }
Property Value
System.Boolean
|
TopLeftChamfered
Gets or sets a value indicating whether the top left corner of the shape will be chamfered.
Declaration
public bool TopLeftChamfered { get; set; }
Property Value
System.Boolean
|
TopRightChamfered
Gets or sets a value indicating whether the top right corner of the shape will be chamfered.
Declaration
public bool TopRightChamfered { get; set; }
Property Value
System.Boolean
|
Width
Gets or sets the width of the chamfer.
Declaration
public int Width { get; set; }
Property Value
System.Int32
|
Methods
CreatePath(Rectangle)
Creates path using a rectangle for bounds.
Declaration
public override GraphicsPath CreatePath(Rectangle bounds)
Parameters
System.Drawing.Rectangle
bounds
|
Returns
System.Drawing.Drawing2D.GraphicsPath
|
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
|