ComponentOne VSView 8.0
Polygon Property (VSPrinter)

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

Syntax

[form!]VSPrinter.Polygon = value As String

Remarks

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

This is a convenient way to draw complex closed shapes using a single drawing command. For example, the following code draws a rectangle extending from point (1000,1000) to point (2000,2000).

vp.StartDoc

  vp.Polygon = "1000 1000, 2000 1000, 2000 2000, 1000 2000"

vp.EndDoc

All graphical objects are drawn with the current pen and filled with the current brush. Pen and brush attributes are defined with the PenColor, PenStyle, PenWidth, BrushColor, and BrushStyle properties.

The Polygon property draws closed shapes. To draw open shapes, use the Polyline property instead.

Data Type

String

 

 


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

Product Support Forum  |  Documentation Feedback