ComponentOne VSView 8.0
Polyline Property (VSPrinter)

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

Syntax

[form!]VSPrinter.Polyline = value As String

Remarks

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

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

Const pi = 3.1416

Dim a#, s$

vp.StartDoc

  For a = 0 To 6 * pi Step 0.2

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

  Next

  vp.Polyline = s

vp.EndDoc

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