다음을 통해 공유


DrawingAttributes.Clone Method

Returns a copy of this DrawingAttributes object.

Namespace: Microsoft.Ink
Assembly: Microsoft.Ink (in microsoft.ink.dll)

Syntax

'Declaration
Public Function Clone As DrawingAttributes
'Usage
Dim instance As DrawingAttributes
Dim returnValue As DrawingAttributes

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

Return Value

The new copy of the DrawingAttributes object.

Remarks

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.

Example

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()

Platforms

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

Version Information

.NET Framework

Supported in: 3.0

See Also

Reference

DrawingAttributes Class
DrawingAttributes Members
Microsoft.Ink Namespace
Microsoft.Ink.DrawingAttributes
Strokes.ModifyDrawingAttributes