Freigeben über


DrawingAttributes.DrawingAttributes Constructor

DrawingAttributes.DrawingAttributes Constructor

Initializes a new instance of the DrawingAttributes class.

Definition

Visual Basic .NET Public Sub DrawingAttributes( _
ByVal width As Single _
)
C# public DrawingAttributes(
float width
);
Managed C++ public: DrawingAttributes(
float *width
);

Parameters

width System.Single. The specific pen width to which the DrawingAttributes object is initialized.

Remarks

The width of the pen is in HIMETRIC units.

Examples

[C#]

This C# example initializes a new instance of the DrawingAttributes class, theDrawingAttributes, with a Width of 200 HIMETRIC units.

DrawingAttributes theDrawingAttributes = new DrawingAttributes(200);
                

[VB.NET]

This Microsoft® Visual Basic® .NET example initializes a new instance of the DrawingAttributes class, theDrawingAttributes, with a Width of 200 HIMETRIC units.

Dim theDrawingAttributes As New DrawingAttributes(200)
                

See Also