Search
PathFigure Constructor (String)
See Also
 






Initializes a new instance of the PathFigure class with the segments defined through the specified string.

Namespace: MindFusion.Gauges
Assembly: MindFusion.Gauges

 Syntax

C#  Copy Code

public PathFigure (
    string data
)

Visual Basic  Copy Code

Public New ( _
    data As String _
)

 Parameters

data
A string describing the contents of the path figure.

 Remarks

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.

 See Also