ComponentOne VSView 8.0
Polyline Property (VSDraw)

Draws a line defined by a string of X,Y coordinates.

Syntax

[form!]VSDraw.Polyline = value As String

Remarks

The string assigned to the Polyline property contains a sequence of coordinates, in scale units, separated by spaces or commas.

This is a convenient way to draw complex open shapes using a single drawing command. For example, the code below draws a sine curve.

Const pi = 3.1416

Dim a#, s$

For a = 0 To 6 * pi Step 0.2

s = s & (1000 + 100 * a) & " " & (2000 + Sin(a) * 500) & " "

Next

vd.Polyline = s

The Polyline property draws an open shape using the current pen. To draw closed shapes, use the Polygon property instead.

Data Type

String

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Product Support Forum  |  Documentation Feedback