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 オブジェクトの新しいコピー。
解説
一般に、描画属性のマスタ コピーを複製して 1 つ以上の属性を変更したら、DrawingAttributes プロパティ (Cursor.DrawingAttributes、InkEdit.DrawingAttributes、または Stroke.DrawingAttributes) を設定するか、Strokes.ModifyDrawingAttributes メソッドを呼び出します。
例
この C# の例では、Stroke オブジェクト theStroke に関連付けられた DrawingAttributes オブジェクトの複製を作成します。
DrawingAttributes theClone = theStroke.DrawingAttributes.Clone();
この Microsoft Visual Basic.NET の例では、Stroke オブジェクト theStroke に関連付けられた DrawingAttributes オブジェクトの複製を作成します。
Dim theClone As DrawingAttributes = theStroke.DrawingAttributes.Clone()
プラットフォーム
Windows Vista
.NET Framework および .NET Compact Framework では、各プラットフォームのすべてのバージョンはサポートしていません。サポートされているバージョンについては、「.NET Framework システム要件」を参照してください。
バージョン情報
.NET Framework
サポート対象 : 3.0