Windows desktop applications
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

InkStroke.Clone | clone method

[ Updated for UWP apps on Windows 10. For Windows 8.x articles, see the archive ]

Copies the InkStroke to another InkManager (or InkStrokeContainer).

Syntax


var inkStroke = inkStroke.clone();

Parameters

This method has no parameters.

Return value

Type: InkStroke

The new stroke.

Remarks

This method must be used with AddStroke (InkManager) or AddStroke (InkStrokeContainer).



inkStrokeContainer.AddStroke(stroke.Clone());
inkManager.AddStroke(stroke.Clone());

Requirements (Windows 10 device family)

Device family

Universal

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

Windows.UI.Input.Inking
Windows::UI::Input::Inking [C++]

Metadata

Windows.Foundation.UniversalApiContract.winmd

See also

InkStroke
Pen and stylus interactions
Samples
Ink sample
Simple ink sample
Complex ink sample

 

 

Show:
© 2016 Microsoft