Stroke.DrawingAttributes Eigenschap

Definitie

Hiermee wordt het DrawingAttributes object Stroke opgehaald of ingesteld.

public:
 property System::Windows::Ink::DrawingAttributes ^ DrawingAttributes { System::Windows::Ink::DrawingAttributes ^ get(); void set(System::Windows::Ink::DrawingAttributes ^ value); };
public System.Windows.Ink.DrawingAttributes DrawingAttributes { get; set; }
member this.DrawingAttributes : System.Windows.Ink.DrawingAttributes with get, set
Public Property DrawingAttributes As DrawingAttributes

Waarde van eigenschap

Uitzonderingen

De ingestelde waarde is null.

Voorbeelden

In het volgende voorbeeld wordt het DrawingAttributes instellen van een lijn groen.

// Make the new stroke green.
myNewStroke.DrawingAttributes.Color = Colors.Green;
' Make the new stroke green.
myNewStroke.DrawingAttributes.Color = Colors.Green

Opmerkingen

Deze kenmerken, zoals kleur en breedte, worden toegepast op het Stroke object terwijl het wordt getekend.

Als DrawingAttributes u de gebeurtenis wijzigt, wordt de DrawingAttributesChanged gebeurtenis geactiveerd.

Van toepassing op

Zie ook