Stroke.DrawingAttributes Proprietà

Definizione

Ottiene o imposta l'oggetto DrawingAttributes per l'oggetto Stroke .

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

Valore della proprietà

Eccezioni

Il valore impostato è null.

Esempio

Nell'esempio seguente viene impostato l'oggetto DrawingAttributes per rendere verde un tratto.

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

Commenti

Questi attributi, ad esempio il colore e la larghezza, vengono applicati all'oggetto Stroke mentre viene disegnato.

La modifica DrawingAttributes fa sì che l'evento DrawingAttributesChanged venga attivato.

Si applica a

Vedi anche