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

Definition

Constructors

C#
public CustomShape()
C#
public CustomShape(IContainer container)
Parameters:containerIContainer
C#
public CustomShape(Rectangle rect)
Parameters:rectRectangle

Properties

C#
public string AsString { get; set; }
C#
public Rectangle Dimension { get; set; }
C#
public ShapeLinesCollection Shape { get; set; }

Methods

C#
public void AddBezier(PointF from, PointF ctrl1, PointF ctrl2, PointF to)
Parameters:fromPointFctrl1PointFctrl2PointFtoPointF
C#
public void AddLine(PointF from, PointF to)
Parameters:fromPointFtoPointF
C#
public bool AppendBezier(PointF ctrl1, PointF ctrl2, PointF to)
Parameters:ctrl1PointFctrl2PointFtoPointFReturns:

bool

C#
public bool AppendLine(PointF to)
Parameters:toPointFReturns:

bool

C#
public CustomShape Clone()
Returns:

CustomShape

C#
public bool CloseFigureUsingBezier(PointF ctrl1, PointF ctrl2)
Parameters:ctrl1PointFctrl2PointFReturns:

bool

C#
public bool CloseFigureUsingLine()
Returns:

bool

C#
public void CopyFrom(CustomShape cs)
Parameters:csCustomShape
C#
public bool CreateClosedShape(List<PointF> points)
Parameters:pointsList<PointF>Returns:

bool

C#
public bool CreateClosedShape(PointF[] points)
Parameters:pointsPointF[]Returns:

bool

C#
protected bool CreateClosedShape(ShapePoint[] pts)
Parameters:ptsShapePoint[]Returns:

bool

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

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

The rectangle defining the bounds for the shape.

Returns:

GraphicsPath

A GraphicsPath representing the shape within the specified bounds.

Overrides: ElementShape.CreatePath(Rectangle)

C#
public void CreateRectangleShape(float x, float y, float width, float height)
Parameters:xfloatyfloatwidthfloatheightfloat
C#
public void CreateRectangleShape(PointF from, PointF to)
Parameters:fromPointFtoPointF
C#
public void CreateRectangleShape(PointF pos, SizeF size)
Parameters:posPointFsizeSizeF
C#
public void CreateRectangleShape(Rectangle rect)
Parameters:rectRectangle

Deserializes properties. Required for telerik deserialization mechanism.

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

Overrides: ElementShape.DeserializeProperties(string)

C#
public bool DoFixDimension()
Returns:

bool

C#
public bool DoFixDimension(bool forceFix)
Parameters:forceFixboolReturns:

bool

C#
public RectangleF GetBoundingRectangle()
Returns:

RectangleF

Serializes properties. Required for telerik serialization mechanism.

C#
public override string SerializeProperties()
Returns:

string

Overrides: ElementShape.SerializeProperties()