Stroke.DrawingAttributes Propriedade

Definição

Obtém ou define o DrawingAttributes para o 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 Propriedade

Exceções

O valor do conjunto é null.

Exemplos

O exemplo seguinte faz com que DrawingAttributes um traço fique verde.

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

Observações

Estes atributos, como cor e largura, são aplicados ao Stroke objeto à medida que este é desenhado.

Mudar DrawingAttributes faz com que o DrawingAttributesChanged evento dispare.

Aplica-se a

Ver também