Freigeben über


DrawingAttributes-Konstruktor

Initialisiert eine neue Instanz der DrawingAttributes-Klasse mit Standardwerten.

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 DrawingAttributes()
public function DrawingAttributes()

Hinweise

Wenn Sie Zeichnungsattribute für einen Strich ändern, verwenden Sie nach Möglichkeit ein vorhandenes DrawingAttributes-Objekt, statt jedes Mal ein neues Objekt zu erstellen. Durch Erstellen eines neuen DrawingAttributes-Objekts wird Speicher reserviert, der für das Ink-Objekt über die Lebensdauer des DrawingAttributes-Objekts hinaus verfügbar ist.

Beispiele

In diesem C#-Beispiel wird eine neue Instanz der DrawingAttributes-Klasse (theDrawingAttributes) initialisiert.

DrawingAttributes theDrawingAttributes = new DrawingAttributes();

In diesem Microsoft Visual Basic .NET-Beispiel wird eine neue Instanz der DrawingAttributes-Klasse, theDrawingAttributes, initialisiert.

Dim theDrawingAttributes As New DrawingAttributes()

Plattformen

Windows Vista

.NET Framework und .NET Compact Framework unterstützen nicht alle Versionen sämtlicher Plattformen. Eine Liste der unterstützten Versionen finden Sie unter Systemanforderungen für .NET Framework.

Versionsinformationen

.NET Framework

Unterstützt in: 3.0

Siehe auch

Referenz

DrawingAttributes-Klasse

DrawingAttributes-Member

DrawingAttributes-Überladung

Microsoft.Ink-Namespace

DrawingAttributes