Stroke.DrawingAttributes プロパティ
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
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 発生します。