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