Class
ChamferedRectShape

Represents a rectangle with chamfered corners.

Definition

Namespace:Telerik.WinControls

Assembly:Telerik.WinControls.dll

Syntax:

cs-api-definition
[ComVisible(false)]
public class ChamferedRectShape : ElementShape, IComponent, IDisposable

Inheritance: objectMarshalByRefObjectComponentElementShapeChamferedRectShape

Implements: IComponentIDisposable

Inherited Members ElementShape.GetElementShape(RadElement)ElementShape.GetElementContour(RadElement)ElementShape.GetElementContour(Rectangle)ElementShape.CreateRegion(Rectangle)ElementShape.GetBounds(RadElement)ElementShape.CreatePath(RectangleF)ElementShape.CreateContour(Rectangle)ElementShape.MirrorPath(GraphicsPath, RectangleF)ElementShape.ShouldMirrorPath()ElementShape.Dispose(bool)ElementShape.IsRightToLeftComponent.Dispose()Component.GetService(Type)Component.ToString()Component.CanRaiseEventsComponent.EventsComponent.SiteComponent.ContainerComponent.DesignModeComponent.DisposedMarshalByRefObject.MemberwiseClone(bool)MarshalByRefObject.GetLifetimeService()MarshalByRefObject.InitializeLifetimeService()MarshalByRefObject.CreateObjRef(Type)

Constructors

ChamferedRectShape()

Initializes a new instance of the ChamferedRectShape class.

Declaration

cs-api-definition
public ChamferedRectShape()

ChamferedRectShape(int)

Initializes a new instance of the ChamferedRectShape class.

Declaration

cs-api-definition
public ChamferedRectShape(int width)

Parameters

width

int

The width of the chamfer.

ChamferedRectShape(int, int)

Initializes a new instance of the ChamferedRectShape class.

Declaration

cs-api-definition
public ChamferedRectShape(int width, int angle)

Parameters

width

int

The width of the chamfer.

angle

int

The angle of the chamfer in degrees.

ChamferedRectShape(int, int, bool, bool, bool, bool)

Initializes a new instance of the ChamferedRectShape class.

Declaration

cs-api-definition
public ChamferedRectShape(int width, int angle, bool topLeftChamfered, bool topRightChamfered, bool bottomRightChamfered, bool bottomLeftChamfered)

Parameters

width

int

The width of the chamfer.

angle

int

The angle of the chamfer in degrees.

topLeftChamfered

bool

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

topRightChamfered

bool

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

bottomRightChamfered

bool

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

bottomLeftChamfered

bool

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.

Declaration

cs-api-definition
public int Angle { get; set; }

Property Value

int

BottomLeftChamfered

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

Declaration

cs-api-definition
public bool BottomLeftChamfered { get; set; }

Property Value

bool

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

cs-api-definition
public bool BottomRightChamfered { get; set; }

Property Value

bool

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

cs-api-definition
public bool TopLeftChamfered { get; set; }

Property Value

bool

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

cs-api-definition
public bool TopRightChamfered { get; set; }

Property Value

bool

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

Width

Gets or sets the width of the chamfer.

Declaration

cs-api-definition
public int Width { get; set; }

Property Value

int

Methods

CreatePath(Rectangle)

Creates path using a rectangle for bounds.

Declaration

cs-api-definition
public override GraphicsPath CreatePath(Rectangle bounds)

Parameters

bounds

Rectangle

Returns

GraphicsPath

Overrides ElementShape.CreatePath(Rectangle)

DeserializeProperties(string)

Deserializes properties. Required for telerik deserialization mechanism.

Declaration

cs-api-definition
public override void DeserializeProperties(string propertiesString)

Parameters

propertiesString

string

Overrides ElementShape.DeserializeProperties(string)

SerializeProperties()

Serializes properties. Required for telerik serialization mechanism.

Declaration

cs-api-definition
public override string SerializeProperties()

Returns

string

Overrides ElementShape.SerializeProperties()