Stroke.DrawingAttributes Property


Gets or sets the DrawingAttributes for the Stroke object.

 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

Property Value


The set value is null.


The following example sets the DrawingAttributes to make a stroke green.

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


These attributes, such as color and width, are applied to the Stroke object as it is drawn.

Changing DrawingAttributes causes the DrawingAttributesChanged event to fire.

Applies to

See also