Class PathElementShape
Represents a custom shape based on a graphics path that can be scaled and transformed.
Inherited Members
Namespace: Telerik.WinControls.Shapes
Assembly: Telerik.WinControls.dll
Syntax
public class PathElementShape : CustomShape
  Constructors
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
| 
        System.Drawing.Drawing2D.GraphicsPath
        path
         The graphics path that defines the shape.  | 
    
| 
        VisualElement
        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
| 
        System.Drawing.RectangleF
         The bounds of the shape.  | 
    
Owner
Gets or sets the visual element that owns this shape.
Declaration
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
public GraphicsPath Path { get; set; }
  Property Value
| 
        System.Drawing.Drawing2D.GraphicsPath
         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
| 
        System.Drawing.Drawing2D.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
public override GraphicsPath CreatePath(Rectangle bounds)
  Parameters
| 
        System.Drawing.Rectangle
        bounds
         The target bounds for the shape.  | 
    
Returns
| 
        System.Drawing.Drawing2D.GraphicsPath
         A System.Drawing.Drawing2D.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
| 
        System.String
        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
| 
        System.String
         A string containing the serialized path data and types.  |