ClassChamferedRectShape
Represents a rectangle with chamfered corners.
Definition
Namespace:Telerik.WinControls
Assembly:Telerik.WinControls.dll
Syntax:
[ComVisible(false)]
public class ChamferedRectShape : ElementShape, IComponent, IDisposable
Inheritance: objectMarshalByRefObjectComponentElementShapeChamferedRectShape
Implements:
Inherited Members
Constructors
ChamferedRectShape()
Initializes a new instance of the ChamferedRectShape class.
Declaration
public ChamferedRectShape()
ChamferedRectShape(int)
Initializes a new instance of the ChamferedRectShape class.
Declaration
public ChamferedRectShape(int width)
Parameters
width
The width of the chamfer.
ChamferedRectShape(int, int)
Initializes a new instance of the ChamferedRectShape class.
ChamferedRectShape(int, int, bool, bool, bool, bool)
Initializes a new instance of the ChamferedRectShape class.
Declaration
public ChamferedRectShape(int width, int angle, bool topLeftChamfered, bool topRightChamfered, bool bottomRightChamfered, bool bottomLeftChamfered)
Parameters
width
The width of the chamfer.
angle
The angle of the chamfer in degrees.
topLeftChamfered
if set to true the top left corner will be chamfered.
topRightChamfered
if set to true the top right corner will be chamfered.
bottomRightChamfered
if set to true the bottom right corner will be chamfered.
bottomLeftChamfered
if set to true the bottom left corner will be chamfered.
Properties
Angle
Gets or sets the angle of the chamfer in degrees. The value must be between 0 inclusive and 90 exclusive.
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
true if the bottom left corner is chamfered; otherwise, false.
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
true if the bottom right corner is chamfered; otherwise, false.
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
true if the top left corner is be chamfered; otherwise, false.
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
true if the top right corner is be chamfered; otherwise, false.
Methods
CreatePath(Rectangle)
Creates path using a rectangle for bounds.
Declaration
public override GraphicsPath CreatePath(Rectangle 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.