ClassPathElementShape
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:
public class PathElementShape : CustomShape, IComponent, IDisposable
Inheritance: objectMarshalByRefObjectComponentElementShapeCustomShapePathElementShape
Derived Classes:
Implements:
Inherited Members
Constructors
PathElementShape()
Initializes a new instance of the PathElementShape class.
Declaration
public PathElementShape()
PathElementShape(GraphicsPath, VisualElement)
Initializes a new instance of the PathElementShape class with the specified path and owner.
Declaration
public PathElementShape(GraphicsPath path, VisualElement owner)
Parameters
path
The graphics path that defines the shape.
owner
The visual element that owns this shape.
Properties
Bounds
Gets or sets the bounding rectangle of the shape.
Declaration
public RectangleF Bounds { get; set; }
Property Value
The bounds of the shape.
Owner
Gets or sets the visual element that owns this shape.
Declaration
public VisualElement Owner { get; set; }
Property Value
The owner visual element.
Path
Gets or sets the graphics path that defines the shape geometry.
Declaration
public GraphicsPath Path { get; set; }
Property Value
The graphics path of the shape.
ScaledPath
Gets the scaled graphics path after transformation to fit the specified bounds.
Declaration
public GraphicsPath ScaledPath { get; }
Property Value
The scaled and transformed path.
Methods
CreatePath(Rectangle)
Creates a scaled and transformed graphics path based on the original path and specified bounds.
Declaration
public override GraphicsPath CreatePath(Rectangle bounds)
Parameters
bounds
The target bounds for the shape.
Returns
A GraphicsPath scaled and transformed to fit the specified bounds.
Overrides
DeserializeProperties(string)
Deserializes path properties from a string representation to reconstruct the graphics path.
Declaration
public override void DeserializeProperties(string propertiesString)
Parameters
propertiesString
The string containing serialized path data and types.
Overrides
SerializeProperties()
Serializes the path properties to a string representation for persistence.
Declaration
public override string SerializeProperties()
Returns
A string containing the serialized path data and types.
Overrides