ComponentOne VSView 8.0
PenStyle Property (VSDraw)

Returns or sets the pen style.

Syntax

[form!]VSDraw.PenStyle[ = PenStyleSettings ]

Remarks

The PenColor, PenStyle, and PenWidth properties define the pen used to outline all graphical objects drawn on the control.

Graphical objects are created using the Draw and Polygon properties as well as the DrawRectangle, DrawCircle, and DrawEllipse methods.

The settings for the PenStyle property are described below:

Constant

Value

Description

psSolid

0

Solid pen (default value).

psDash

1

Dashed pen.

psDot

2

Dotted pen.

psDashDot

3

Dash-dot pen.

psDashDotDot

4

Dash-dot-dot pen.

psTransparent

5

Transparent pen (no lines).

psInsideSolid

6

Solid pen drawn inside shapes.

Note: Non-solid settings are only valid when the PenWidth property is set to zero (which translates into a pen one-pixel wide). This is a Windows GDI limitation, not imposed by the VSPrinter control.

Data Type

PenStyleSettings (Enumeration)

Default Value

psSolid (0)

 

 


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

Product Support Forum  |  Documentation Feedback