Sdílet prostřednictvím


DrawingAttributes Constructor

Initializes a new instance of the DrawingAttributes class using default values.

Namespace:  Microsoft.Ink
Assembly:  Microsoft.Ink (in Microsoft.Ink.dll)

Syntax

'Declaration
Public Sub New
'Usage
Dim instance As New DrawingAttributes()
public DrawingAttributes()
public:
DrawingAttributes()
public function DrawingAttributes()

Remarks

When modifying drawing attributes for a stroke, try to reuse an existing DrawingAttributes object rather than creating a new one each time. Creating a new DrawingAttributes object allocates memory that remains with the Ink object past the lifetime of the DrawingAttributes object.

Examples

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

DrawingAttributes theDrawingAttributes = new DrawingAttributes();

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

Dim theDrawingAttributes As New DrawingAttributes()

Platforms

Windows 7, Windows Vista, Windows Server 2008 R2, Windows Server 2008

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Version Information

.NET Framework

Supported in: 3.0

See Also

Reference

DrawingAttributes Class

DrawingAttributes Members

DrawingAttributes Overload

Microsoft.Ink Namespace

DrawingAttributes