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


DrawingAttributes.Clone - метод

Обновлен: Ноябрь 2007

Returns a copy of this DrawingAttributes object.

Пространство имен:  Microsoft.Ink
Сборка:  Microsoft.Ink (в Microsoft.Ink.dll)

Синтаксис

'Декларация
Public Function Clone As DrawingAttributes
'Применение
Dim instance As DrawingAttributes
Dim returnValue As DrawingAttributes

returnValue = instance.Clone()
public DrawingAttributes Clone()
public:
DrawingAttributes^ Clone()
public DrawingAttributes Clone()
public function Clone() : DrawingAttributes

Возвращаемое значение

Тип: Microsoft.Ink.DrawingAttributes
The new copy of the DrawingAttributes object.

Заметки

Typically, you clone a master copy of the drawing attributes, modify one or more of the attributes, and either set a DrawingAttributes property—such as Cursor.DrawingAttributes, InkEdit.DrawingAttributes, or Stroke.DrawingAttributes—or call the Strokes.ModifyDrawingAttributes method.

Примеры

This C# example creates a clone of the DrawingAttributes object associated with a Stroke object, theStroke.

DrawingAttributes theClone = theStroke.DrawingAttributes.Clone();

This Microsoft® Visual Basic® .NET example creates a clone of the DrawingAttributes object associated with a Stroke object, theStroke.

Dim theClone As DrawingAttributes = theStroke.DrawingAttributes.Clone()

Платформы

Windows Vista

Среды .NET Framework и .NET Compact Framework поддерживают не все версии каждой платформы. Поддерживаемые версии перечислены в разделе Требования к системе для .NET Framework.

Сведения о версии

.NET Framework

Поддерживается в версии: 3.0

См. также

Ссылки

DrawingAttributes Класс

DrawingAttributes - члены

Microsoft.Ink - пространство имен

DrawingAttributes.DrawingAttributes

Strokes.ModifyDrawingAttributes