Share via


DrawingAttributes.DrawingAttributes Constructor

DrawingAttributes.DrawingAttributes Constructor

Initializes a new instance of the DrawingAttributes class.

Definition

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

Parameters

color System.Drawing.Color. The specific color to which the DrawingAttributes object is initialized.

Examples

[C#]

This C# example initializes a new instance of the DrawingAttributes class, theDrawingAttributes, with a specific color.

DrawingAttributes theDrawingAttributes = new DrawingAttributes(Color.Red);
                

[VB.NET]

This Microsoft® Visual Basic® .NET example initializes a new instance of the DrawingAttributes class, theDrawingAttributes, with a specific color.

Dim theDrawingAttributes As New DrawingAttributes(Color.Red)
                

See Also