New to Telerik UI for WinFormsStart a free 30-day trial

Represents a rectangle with chamfered corners.

Definition

Constructors

Initializes a new instance of the ChamferedRectShape class.

C#
public ChamferedRectShape()

Initializes a new instance of the ChamferedRectShape class.

C#
public ChamferedRectShape(int width, int angle, bool topLeftChamfered, bool topRightChamfered, bool bottomRightChamfered, bool bottomLeftChamfered)
Parameters:widthint

The width of the chamfer.

angleint

The angle of the chamfer in degrees.

topLeftChamferedbool

if set to true the top left corner will be chamfered.

topRightChamferedbool

if set to true the top right corner will be chamfered.

bottomRightChamferedbool

if set to true the bottom right corner will be chamfered.

bottomLeftChamferedbool

if set to true the bottom left corner will be chamfered.

Initializes a new instance of the ChamferedRectShape class.

C#
public ChamferedRectShape(int width, int angle)
Parameters:widthint

The width of the chamfer.

angleint

The angle of the chamfer in degrees.

Initializes a new instance of the ChamferedRectShape class.

C#
public ChamferedRectShape(int width)
Parameters:widthint

The width of the chamfer.

Properties

Gets or sets the angle of the chamfer in degrees. The value must be between 0 inclusive and 90 exclusive.

C#
public int Angle { get; set; }

Gets or sets a value indicating whether the bottom left corner of the shape will be chamfered.

C#
public bool BottomLeftChamfered { get; set; }
Property Value:

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.

C#
public bool BottomRightChamfered { get; set; }
Property Value:

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.

C#
public bool TopLeftChamfered { get; set; }
Property Value:

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.

C#
public bool TopRightChamfered { get; set; }
Property Value:

true if the top right corner is be chamfered; otherwise, false.

Gets or sets the width of the chamfer.

C#
public int Width { get; set; }

Methods

Creates path using a rectangle for bounds.

C#
public override GraphicsPath CreatePath(Rectangle bounds)
Parameters:boundsRectangleReturns:

GraphicsPath

Overrides: ElementShape.CreatePath(Rectangle)

Deserializes properties. Required for telerik deserialization mechanism.

C#
public override void DeserializeProperties(string propertiesString)
Parameters:propertiesStringstring

Overrides: ElementShape.DeserializeProperties(string)

Serializes properties. Required for telerik serialization mechanism.

C#
public override string SerializeProperties()
Returns:

string

Overrides: ElementShape.SerializeProperties()