Stroke.DrawingAttributes Proprietà

Definizione

Ottiene o imposta la classe 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 su 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 colore e larghezza, vengono applicati all'oggetto Stroke come viene disegnato.

La modifica DrawingAttributes causa l'attivazione dell'evento DrawingAttributesChanged .

Si applica a

Vedi anche