Share via


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 function ModifyDrawingAttributes(
    da : DrawingAttributes
)

Parameters

Examples

In this example, the DrawingAttributes of the Strokes collection are modified.

' 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);
}

Platforms

Windows 7, Windows Vista, Windows Server 2008 R2, Windows Server 2008

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Version Information

.NET Framework

Supported in: 3.0

See Also

Reference

Strokes Class

Strokes Members

Microsoft.Ink Namespace

DrawingAttributes

Stroke