Class
CustomShape

Definition

Namespace:Telerik.WinControls

Assembly:Telerik.WinControls.dll

Syntax:

cs-api-definition
public class CustomShape : ElementShape, IComponent, IDisposable

Inheritance: objectMarshalByRefObjectComponentElementShapeCustomShape

Derived Classes: PathElementShape

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

CustomShape()

Declaration

cs-api-definition
public CustomShape()

CustomShape(IContainer)

Declaration

cs-api-definition
public CustomShape(IContainer container)

Parameters

container

IContainer

CustomShape(Rectangle)

Declaration

cs-api-definition
public CustomShape(Rectangle rect)

Parameters

rect

Rectangle

Properties

AsString

Declaration

cs-api-definition
public string AsString { get; set; }

Property Value

string

Dimension

Declaration

cs-api-definition
public Rectangle Dimension { get; set; }

Property Value

Rectangle

Shape

Declaration

cs-api-definition
public ShapeLinesCollection Shape { get; set; }

Property Value

ShapeLinesCollection

Methods

AddBezier(PointF, PointF, PointF, PointF)

Declaration

cs-api-definition
public void AddBezier(PointF from, PointF ctrl1, PointF ctrl2, PointF to)

Parameters

from

PointF

ctrl1

PointF

ctrl2

PointF

to

PointF

AddLine(PointF, PointF)

Declaration

cs-api-definition
public void AddLine(PointF from, PointF to)

Parameters

from

PointF

to

PointF

AppendBezier(PointF, PointF, PointF)

Declaration

cs-api-definition
public bool AppendBezier(PointF ctrl1, PointF ctrl2, PointF to)

Parameters

ctrl1

PointF

ctrl2

PointF

to

PointF

Returns

bool

AppendLine(PointF)

Declaration

cs-api-definition
public bool AppendLine(PointF to)

Parameters

to

PointF

Returns

bool

Clone()

Declaration

cs-api-definition
public CustomShape Clone()

Returns

CustomShape

CloseFigureUsingBezier(PointF, PointF)

Declaration

cs-api-definition
public bool CloseFigureUsingBezier(PointF ctrl1, PointF ctrl2)

Parameters

ctrl1

PointF

ctrl2

PointF

Returns

bool

CloseFigureUsingLine()

Declaration

cs-api-definition
public bool CloseFigureUsingLine()

Returns

bool

CopyFrom(CustomShape)

Declaration

cs-api-definition
public void CopyFrom(CustomShape cs)

Parameters

cs

CustomShape

CreateClosedShape(List<PointF>)

Declaration

cs-api-definition
public bool CreateClosedShape(List<PointF> points)

Parameters

points

List<PointF>

Returns

bool

CreateClosedShape(PointF[])

Declaration

cs-api-definition
public bool CreateClosedShape(PointF[] points)

Parameters

points

PointF[]

Returns

bool

CreateClosedShape(ShapePoint[])

Declaration

cs-api-definition
protected bool CreateClosedShape(ShapePoint[] pts)

Parameters

pts

ShapePoint[]

Returns

bool

CreatePath(Rectangle)

Creates a GraphicsPath using the specified rectangle as bounds. This method must be implemented by derived classes.

Declaration

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

Parameters

bounds

Rectangle

The rectangle defining the bounds for the shape.

Returns

GraphicsPath

A GraphicsPath representing the shape within the specified bounds.

Overrides ElementShape.CreatePath(Rectangle)

CreateRectangleShape(PointF, PointF)

Declaration

cs-api-definition
public void CreateRectangleShape(PointF from, PointF to)

Parameters

from

PointF

to

PointF

CreateRectangleShape(PointF, SizeF)

Declaration

cs-api-definition
public void CreateRectangleShape(PointF pos, SizeF size)

Parameters

pos

PointF

size

SizeF

CreateRectangleShape(Rectangle)

Declaration

cs-api-definition
public void CreateRectangleShape(Rectangle rect)

Parameters

rect

Rectangle

CreateRectangleShape(float, float, float, float)

Declaration

cs-api-definition
public void CreateRectangleShape(float x, float y, float width, float height)

Parameters

x

float

y

float

width

float

height

float

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)

DoFixDimension()

Declaration

cs-api-definition
public bool DoFixDimension()

Returns

bool

DoFixDimension(bool)

Declaration

cs-api-definition
public bool DoFixDimension(bool forceFix)

Parameters

forceFix

bool

Returns

bool

GetBoundingRectangle()

Declaration

cs-api-definition
public RectangleF GetBoundingRectangle()

Returns

RectangleF

SerializeProperties()

Serializes properties. Required for telerik serialization mechanism.

Declaration

cs-api-definition
public override string SerializeProperties()

Returns

string

Overrides ElementShape.SerializeProperties()