Stroke.DrawingAttributes Propiedad

Definición

Obtiene o establece el objeto DrawingAttributes para el Stroke objeto .

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

Valor de propiedad

Excepciones

El valor establecido es null.

Ejemplos

En el ejemplo siguiente se establece el objeto DrawingAttributes para que un trazo sea verde.

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

Comentarios

Estos atributos, como el color y el ancho, se aplican al Stroke objeto a medida que se dibuja.

Cambiar DrawingAttributes hace que se active el DrawingAttributesChanged evento.

Se aplica a

Consulte también