Search
LineTemplate Constructor (Double, Double, Double, Double, Color, DashStyle, Double)
See Also
 





Initializes a new instance of the LineTemplate class with the specified start and end points, and the specified color and style.

Namespace: MindFusion.Diagramming
Assembly: MindFusion.Diagramming

 Syntax

C#  Copy Code

public LineTemplate (
    double x1,
    double y1,
    double x2,
    double y2,
    Color color,
    DashStyle dashStyle,
    double width
)

Visual Basic  Copy Code

Public New ( _
    x1 As Double, _
    y1 As Double, _
    x2 As Double, _
    y2 As Double, _
    color As Color, _
    dashStyle As DashStyle, _
    width As Double _
)

 Parameters

x1
The x-coordinate of the first point, expressed as percentage of a shape node's bounding rectangle.
y1
The y-coordinate of the first point, expressed as percentage of a shape node's bounding rectangle.
x2
The x-coordinate of the second point, expressed as percentage of a shape node's bounding rectangle.
y2
The y-coordinate of the second point, expressed as percentage of a shape node's bounding rectangle.
color
The color of this segment.
dashStyle
The dash style of this segment.
width
The width of this segment.

 Remarks

A line template is defined by two points whose coordinates are passed as arguments.

 See Also