ComponentOne VSView 8.0
Polygon Property (VSDraw)

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

Syntax

[form!]VSDraw.Polygon = value As String

Remarks

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

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

vd.Polygon = "1000 1000, 2000 1000, 2000 2000, 1000 2000"

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