Class
PathElementShape

Represents a custom shape based on a graphics path that can be scaled and transformed.

Definition

Namespace:Telerik.WinControls.Shapes

Assembly:Telerik.WinControls.dll

Syntax:

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

Inheritance: objectMarshalByRefObjectComponentElementShapeCustomShapePathElementShape

Derived Classes: CalloutElementShape

Implements: IComponentIDisposable

Inherited Members CustomShape.Clone()CustomShape.CopyFrom(CustomShape)CustomShape.GetBoundingRectangle()CustomShape.DoFixDimension(bool)CustomShape.DoFixDimension()CustomShape.AddLine(PointF, PointF)CustomShape.AddBezier(PointF, PointF, PointF, PointF)CustomShape.AppendLine(PointF)CustomShape.AppendBezier(PointF, PointF, PointF)CustomShape.CloseFigureUsingLine()CustomShape.CloseFigureUsingBezier(PointF, PointF)CustomShape.CreateClosedShape(ShapePoint[])CustomShape.CreateClosedShape(PointF[])CustomShape.CreateClosedShape(List<PointF>)CustomShape.CreateRectangleShape(PointF, PointF)CustomShape.CreateRectangleShape(float, float, float, float)CustomShape.CreateRectangleShape(PointF, SizeF)CustomShape.CreateRectangleShape(Rectangle)CustomShape.DimensionCustomShape.ShapeCustomShape.AsStringElementShape.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

PathElementShape()

Initializes a new instance of the PathElementShape class.

Declaration

cs-api-definition
public PathElementShape()

PathElementShape(GraphicsPath, VisualElement)

Initializes a new instance of the PathElementShape class with the specified path and owner.

Declaration

cs-api-definition
public PathElementShape(GraphicsPath path, VisualElement owner)

Parameters

path

GraphicsPath

The graphics path that defines the shape.

owner

VisualElement

The visual element that owns this shape.

Properties

Bounds

Gets or sets the bounding rectangle of the shape.

Declaration

cs-api-definition
public RectangleF Bounds { get; set; }

Property Value

RectangleF

The bounds of the shape.

Owner

Gets or sets the visual element that owns this shape.

Declaration

cs-api-definition
public VisualElement Owner { get; set; }

Property Value

VisualElement

The owner visual element.

Path

Gets or sets the graphics path that defines the shape geometry.

Declaration

cs-api-definition
public GraphicsPath Path { get; set; }

Property Value

GraphicsPath

The graphics path of the shape.

ScaledPath

Gets the scaled graphics path after transformation to fit the specified bounds.

Declaration

cs-api-definition
public GraphicsPath ScaledPath { get; }

Property Value

GraphicsPath

The scaled and transformed path.

Methods

CreatePath(Rectangle)

Creates a scaled and transformed graphics path based on the original path and specified bounds.

Declaration

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

Parameters

bounds

Rectangle

The target bounds for the shape.

Returns

GraphicsPath

A GraphicsPath scaled and transformed to fit the specified bounds.

Overrides CustomShape.CreatePath(Rectangle)

DeserializeProperties(string)

Deserializes path properties from a string representation to reconstruct the graphics path.

Declaration

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

Parameters

propertiesString

string

The string containing serialized path data and types.

Overrides CustomShape.DeserializeProperties(string)

SerializeProperties()

Serializes the path properties to a string representation for persistence.

Declaration

cs-api-definition
public override string SerializeProperties()

Returns

string

A string containing the serialized path data and types.

Overrides CustomShape.SerializeProperties()