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 事件触发。

适用于

另请参阅