ChamferedRectShape
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
Initializes a new instance of the ChamferedRectShape class.
public ChamferedRectShape()
Initializes a new instance of the ChamferedRectShape class.
public ChamferedRectShape(int width, int angle, bool topLeftChamfered, bool topRightChamfered, bool bottomRightChamfered, bool bottomLeftChamfered)
The width of the chamfer.
angleintThe angle of the chamfer in degrees.
topLeftChamferedboolif set to true the top left corner will be chamfered.
if set to true the top right corner will be chamfered.
if set to true the bottom right corner will be chamfered.
if set to true the bottom left corner will be chamfered.
Initializes a new instance of the ChamferedRectShape class.
Initializes a new instance of the ChamferedRectShape class.
Properties
Gets or sets the angle of the chamfer in degrees. The value must be between 0 inclusive and 90 exclusive.
public int Angle { get; set; }
Gets or sets a value indicating whether the bottom left corner of the shape will be chamfered.
public bool BottomLeftChamfered { get; set; }
true if the bottom left corner is chamfered; otherwise, false.
Gets or sets a value indicating whether the bottom right corner of the shape will be chamfered.
public bool BottomRightChamfered { get; set; }
true if the bottom right corner is chamfered; otherwise, false.
Gets or sets a value indicating whether the top left corner of the shape will be chamfered.
public bool TopLeftChamfered { get; set; }
true if the top left corner is be chamfered; otherwise, false.
Gets or sets a value indicating whether the top right corner of the shape will be chamfered.
public bool TopRightChamfered { get; set; }
true if the top right corner is be chamfered; otherwise, false.
Methods
Creates path using a rectangle for bounds.
public override GraphicsPath CreatePath(Rectangle bounds)
Overrides:
Deserializes properties. Required for telerik deserialization mechanism.
public override void DeserializeProperties(string propertiesString)
Overrides:
Serializes properties. Required for telerik serialization mechanism.