Strokes.ModifyDrawingAttributes (Método)
Actualización: noviembre 2007
Establece la propiedad DrawingAttributes de todos los objetos Stroke de la colección Strokes.
Espacio de nombres: Microsoft.Ink
Ensamblado: Microsoft.Ink (en Microsoft.Ink.dll)
Sintaxis
'Declaración
Public Sub ModifyDrawingAttributes ( _
da As DrawingAttributes _
)
'Uso
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
)
Parámetros
- da
Tipo: Microsoft.Ink.DrawingAttributes
El nuevo objeto DrawingAttributes asignado a todos los objetos Stroke de la colección Strokes.
Ejemplos
En este ejemplo, se modifica el objeto DrawingAttributes de la colección Strokes.
' 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);
}
Plataformas
Windows Vista
.NET Framework y .NET Compact Framework no admiten todas las versiones de cada plataforma. Para obtener una lista de las versiones compatibles, vea Requisitos de sistema de .NET Framework.
Información de versión
.NET Framework
Compatible con: 3.0