次の方法で共有


Strokes.ModifyDrawingAttributes メソッド

Strokes コレクションのすべての Stroke オブジェクトの DrawingAttributes プロパティを設定します。

名前空間 :  Microsoft.Ink
アセンブリ :  Microsoft.Ink (Microsoft.Ink.dll 内)

構文

'宣言
Public Sub ModifyDrawingAttributes ( _
    da As DrawingAttributes _
)
'使用
Dim instance As Strokes
Dim da As DrawingAttributes

instance.ModifyDrawingAttributes(da)
public void ModifyDrawingAttributes(
    DrawingAttributes da
)
public:
void ModifyDrawingAttributes(
    DrawingAttributes^ da
)
public void ModifyDrawingAttributes(
    DrawingAttributes da
)
public function ModifyDrawingAttributes(
    da : DrawingAttributes
)

パラメータ

この例では、Strokes コレクションの DrawingAttributes が変更されます。

' Access to the Strokes property returns a copy of the Strokes object.
' This copy must be implicitly (via using statement) or explicitly
' disposed of in order to avoid a memory leak.
Using allStrokes As Strokes = mInkOverlay.Ink.Strokes
    Dim theDrawingAttributes As DrawingAttributes = New DrawingAttributes(Color.Chartreuse)
    theDrawingAttributes.Width = 42.0F
    theDrawingAttributes.Transparency = 50
    allStrokes.ModifyDrawingAttributes(theDrawingAttributes)
End Using
// Access to the Strokes property returns a copy of the Strokes object.
// This copy must be implicitly (via using statement) or explicitly
// disposed of in order to avoid a memory leak.
using (Strokes allStrokes = mInkOverlay.Ink.Strokes)
{
    DrawingAttributes theDrawingAttributes = new DrawingAttributes(Color.Chartreuse);
    theDrawingAttributes.Width = 42.0f;
    theDrawingAttributes.Transparency = 50;
    allStrokes.ModifyDrawingAttributes(theDrawingAttributes);
}

プラットフォーム

Windows Vista

.NET Framework および .NET Compact Framework では、各プラットフォームのすべてのバージョンはサポートしていません。サポートされているバージョンについては、「.NET Framework システム要件」を参照してください。

バージョン情報

.NET Framework

サポート対象 : 3.0

参照

参照

Strokes クラス

Strokes メンバ

Microsoft.Ink 名前空間

DrawingAttributes

Stroke