Stroke.DrawingAttributes Egenskap

Definition

Hämtar eller anger DrawingAttributes för Stroke objektet.

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

Egenskapsvärde

Undantag

Det angivna värdet är null.

Exempel

I följande exempel anges DrawingAttributes för att göra en linje grön.

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

Kommentarer

Dessa attribut, till exempel färg och bredd, tillämpas på Stroke objektet när det ritas.

Ändring DrawingAttributes gör att händelsen DrawingAttributesChanged utlöses.

Gäller för

Se även