次の方法で共有


Strokes.ModifyDrawingAttributes Method

Sets the DrawingAttributes property of all of the Stroke objects in Strokes collection.

Namespace: Microsoft.Ink
Assembly: Microsoft.Ink (in microsoft.ink.dll)

Syntax

'Declaration
Public Sub ModifyDrawingAttributes ( _
    da As DrawingAttributes _
)
'Usage
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
)
Not applicable.

Parameters

Example

This C# example modifies the DrawingAttributes of the Strokes collection in the Ink object, theInk.

DrawingAttributes theDrawingAttributes = new DrawingAttributes(Color.Chartreuse);
theDrawingAttributes.Width = 42.0f;
theDrawingAttributes.Transparency = 50;
theInk.Strokes.ModifyDrawingAttributes(theDrawingAttributes);

This Microsoft Visual Basic.NET example modifies the DrawingAttributes of the Strokes collection in the Ink object, theInk.

Dim theDrawingAttributes As New DrawingAttributes(Color.Chartreuse)
theDrawingAttributes.Width = 42.0
theDrawingAttributes.Transparency = 50
theInk.Strokes.ModifyDrawingAttributes(theDrawingAttributes)

Platforms

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

Version Information

.NET Framework

Supported in: 3.0

See Also

Reference

Strokes Class
Strokes Members
Microsoft.Ink Namespace
DrawingAttributes
Stroke