Strokes.ModifyDrawingAttributes, méthode
Mise à jour : November 2007
Définit la propriété DrawingAttributes de tous les objets Stroke dans la collection Strokes.
Espace de noms : Microsoft.Ink
Assembly : Microsoft.Ink (dans Microsoft.Ink.dll)
Syntaxe
'Déclaration
Public Sub ModifyDrawingAttributes ( _
da As DrawingAttributes _
)
'Utilisation
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
)
Paramètres
- da
Type : Microsoft.Ink.DrawingAttributes
Nouvel objet DrawingAttributes assigné à tous les objets Stroke contenus dans la collection Strokes.
Exemples
Dans cet exemple, les DrawingAttributes de la collection Strokes sont modifiés.
' 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);
}
Plateformes
Windows Vista
Le .NET Framework et le .NET Compact Framework ne prennent pas en charge toutes les versions de chaque plateforme. Pour obtenir la liste des versions prises en charge, consultez Configuration requise du .NET Framework.
Informations de version
.NET Framework
Pris en charge dans : 3.0