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