Поделиться через


Strokes.ModifyDrawingAttributes Method

Strokes.ModifyDrawingAttributes Method

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

Definition

Visual Basic .NET Public Sub ModifyDrawingAttributes( _
ByVal da As DrawingAttributes _
)
C# public void ModifyDrawingAttributes(
DrawingAttributes da
);
Managed C++ public: void ModifyDrawingAttributes(
DrawingAttributes *da
);

Parameters

da Microsoft.Ink.DrawingAttributes. The new DrawingAttributes object assigned to all of the Stroke objects in the Strokes collection.

Exceptions

ObjectDisposedException Leave Site: The Strokes collection is disposed.

Examples

[C#]

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

[VB.NET]

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)
                

See Also