We recommend using Visual Studio 2017
This documentation is archived and is not being maintained.

DrawStyleConstants Class

Provides constants that map Visual Basic 6.0 DrawStyle constants to their DashStyle equivalents.


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

public sealed class DrawStyleConstants

The DrawStyleConstants type exposes the following members.

Public methodEqualsDetermines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)

Public fieldStatic membervbDashMaps the Visual Basic 6.0 constant vbDash to DashStyle Dash.
Public fieldStatic membervbDashDotMaps the Visual Basic 6.0 constant vbDashDot to DashStyle DashDot.
Public fieldStatic membervbDashDotDotMaps the Visual Basic 6.0 constant vbDashDotDot to DashStyle DashDotDot.
Public fieldStatic membervbDotMaps the Visual Basic 6.0 constant vbDot to DashStyle Dot.
Public fieldStatic membervbSolidMaps the Visual Basic 6.0 constant vbDash to DashStyle Solid.

Visual Basic 6.0 used constants to represent line styles; Visual Basic 2010 uses the DashStyle type.


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 2010. 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.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.