Strokes.ModifyDrawingAttributes - метод
Обновлен: Ноябрь 2007
Sets the DrawingAttributes property of all of the Stroke objects in Strokes collection.
Пространство имен: Microsoft.Ink
Сборка: Microsoft.Ink (в Microsoft.Ink.dll)
Синтаксис
'Декларация
Public Sub ModifyDrawingAttributes ( _
da As DrawingAttributes _
)
'Применение
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
)
Параметры
- da
Тип: Microsoft.Ink.DrawingAttributes
The new DrawingAttributes object assigned to all of the Stroke objects in the Strokes collection.
Примеры
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);
}
Платформы
Windows Vista
Среды .NET Framework и .NET Compact Framework поддерживают не все версии каждой платформы. Поддерживаемые версии перечислены в разделе Требования к системе для .NET Framework.
Сведения о версии
.NET Framework
Поддерживается в версии: 3.0