Share via


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 function Clone() : DrawingAttributes

Return Value

Type: Microsoft.Ink.DrawingAttributes
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.

Examples

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 7, Windows Vista, Windows Server 2008 R2, Windows Server 2008

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Version Information

.NET Framework

Supported in: 3.0

See Also

Reference

DrawingAttributes Class

DrawingAttributes Members

Microsoft.Ink Namespace

DrawingAttributes.DrawingAttributes

Strokes.ModifyDrawingAttributes