Printer.DrawStyle Property

 

Gets or sets a value that determines the line style for output from graphics methods.

Namespace:   Microsoft.VisualBasic.PowerPacks.Printing.Compatibility.VB6
Assembly:  Microsoft.VisualBasic.PowerPacks.Vs (in Microsoft.VisualBasic.PowerPacks.Vs.dll)

Syntax

public short DrawStyle { get; set; }
public:
property short DrawStyle {
    short get();
    void set(short value);
}
member DrawStyle : int16 with get, set
Public Property DrawStyle As Short

Property Value

Type: System.Int16

Returns a Short.

Remarks

If the DrawWidth property is set to a value greater than 1, DrawStyle settings 1 through 4 produce a solid line (and the DrawStyle property value is not changed). If DrawWidth is set to 1, DrawStyle produces the effect described for each setting in the following table.

The following table lists the DrawStyleConstants values that are valid for the DrawStyle property.

Constant

Value

Description

vbSolid

0

Solid (default)

vbDash

1

Dash

vbDot

2

Dot

vbDashDot

3

Dash - dot

vbDashDotDot

4

Dash - dot - dot

Note

Functions and objects in the Microsoft.VisualBasic.PowerPacks.Printing.Compatibility.VB6 namespace are provided for use by the tools for upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code model differs significantly from the .NET Framework implementation.

Examples

The following example demonstrates how to set the DrawStyle property.

Dim Printer As New Printer
Printer.CurrentX = 500
Printer.CurrentY = 500
Printer.DrawStyle = vbDash
Printer.Line(1000, 500)
Printer.EndDoc()

See Also

Printer Class
Microsoft.VisualBasic.PowerPacks.Printing.Compatibility.VB6 Namespace

4e434922-3709-49c6-a69d-38120ed72d7abc1bcb98-e13b-4c68-a514-045c042dbf367f9351ea-cb3e-4615-8f70-5a29c165c1a7

Return to top