Scope: Schematic editor
Object: Viewport Object
Prerequisites: None
Draws a spline with specified control points.
Viewport.Spline(ByVal Type As VdSplineType, ByVal Order As VdSplineOrder, ByVal Granularity As Integer, ByVal XArrayOfPoints As Variant, ByVal YArrayOfPoints As Variant, ByVal Arrowhead As VdArrowType, ByVal ArrowWidth As Integer, ByVal ArrowLength As Integer, ByVal ArrowFill As VdFillStyle)
Specify the spline type. This argument uses the form VdSplineType Enum.
Specifies the order of the spline. Order controls the continuity of the curve. A value of SHARP causes the curve to come close to but may not actually pass through a control point. If you actually want the curve to pass through the control point you can “emphasize” any control point by simply replicating the coordinates of that point in the input control point list. A value of SMOOTH makes the curve more continuous and a value of ROUND makes it even more continuous. This argument uses the form VdSplineOrder Enum.
Granularity controls the smoothness of the curve. The spline is computed as a series of individual points from which line segments are drawn. Granularity controls exactly how many line segments are actually drawn between successive control points. A low value produces a low-resolution spline which may look almost look like a polygon line and higher numbers produce smoother curves. Since this number is multiplied by the number of control points try to keep it as low as possible. A value of 10 is a good place to start.
Array of X ordinate values. Must be a single dimensioned array.
Array of Y ordinate values. Must be a single dimensioned array.
Indicates how arrow heads should be drawn. This argument uses the form VdArrowType Enum.
Specifies the arrowhead width.
Specifies the arrowhead length.
Specifies the fill style for the arrowhead.