ComponentOne VSView 8.0
DrawLine Method (VSDraw)

Draws a line segment.

Syntax

[form!]VSDraw.DrawLine X1 As Double, Y1 As Double, [ X2 As Variant ], [ Y2 As Variant ]

Remarks

The DrawLine method draws a line between point (X1, Y1) and (X2, Y2). If (X2, Y2) are omitted, the line is drawn from the last point used in a call to DrawLine and (X1, Y1).

Lines are drawn with the current pen, defined by the PenColor, PenStyle, and PenWidth properties.

The X1, Y1, X2, and Y2 parameters are specified in scale units, defined by the ScaleWidth, ScaleHeight, ScaleLeft, and ScaleHeight properties.

To draw complex shapes, you may prefer to use the Polygon or PolyLine properties instead.

 

 


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

Product Support Forum  |  Documentation Feedback