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 イベントが発生します。

適用対象

こちらもご覧ください