Stroke.DrawingAttributes Свойство

Определение

Получает или задает DrawingAttributes для объекта 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

Значение свойства

Исключения

Устанавливаемое значение равно null.

Примеры

В следующем примере задается , DrawingAttributes чтобы сделать росчерк зеленым.

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

Комментарии

Эти атрибуты, такие как цвет и ширина, применяются к объекту по Stroke мере его рисования.

Изменение DrawingAttributes приводит к возникновению DrawingAttributesChanged события.

Применяется к

См. также раздел