Initializes a new instance of the PathFigure class with the segments defined through the specified string.
Namespace: MindFusion.Gauges
Assembly: MindFusion.Gauges
C# Copy Code |
---|
public PathFigure ( |
Visual Basic Copy Code |
---|
Public New ( _ |
The value of data has syntax similar to the XAML syntax used to define paths in WPF. For example, the following sequence defines a rectangular path figure:
C# Copy Code |
---|
PathFigure figure = new PathFigure("M0,0 L100,0 L100,50 L0,50 L0,0 z"); |
Visual Basic Copy Code |
---|
Dim figure As New PathFigure("M0,0 L100,0 L100,50 L0,50 L0,0 z") |
Arcs and curves are also supported.