Strokes.ModifyDrawingAttributes-Methode
Legt die DrawingAttributes-Eigenschaft aller Stroke-Objekte in der Strokes-Auflistung fest.
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
)
Parameter
- da
Typ: Microsoft.Ink.DrawingAttributes
Das neue DrawingAttributes-Objekt, das allen Stroke-Objekten in der Strokes-Auflistung zugewiesen ist.
Beispiele
In diesem Beispiel werden die DrawingAttributes der Strokes-Auflistung geändert.
' 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);
}
Plattformen
Windows Vista
.NET Framework und .NET Compact Framework unterstützen nicht alle Versionen sämtlicher Plattformen. Eine Liste der unterstützten Versionen finden Sie unter Systemanforderungen für .NET Framework.
Versionsinformationen
.NET Framework
Unterstützt in: 3.0