共用方式為


DrawingAttributes.Clone 方法

傳回這個 DrawingAttributes 物件的複本。

命名空間:  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
DrawingAttributes 物件的新複本。

備註

一般來說,您可以複製 (Clone) 繪圖屬性 (Attribute) 的正本、修改一個或多個屬性 (Attribute),以及設定 DrawingAttributes 屬性 (Property),例如 Cursor.DrawingAttributesInkEdit.DrawingAttributesStroke.DrawingAttributes,或呼叫 Strokes.ModifyDrawingAttributes 方法。

範例

這個 C# 範例會建立與 Stroke 物件 (theStroke) 相關聯之 DrawingAttributes 物件的複製品 (Clone)。

DrawingAttributes theClone = theStroke.DrawingAttributes.Clone();

這個 Microsoft® Visual Basic® .NET 範例會建立與 Stroke 物件 (theStroke) 相關聯之 DrawingAttributes 物件的複製品 (Clone)。

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