StrokeCollection::Clone Method ()

 

Copies the StrokeCollection.

Namespace:   System.Windows.Ink
Assembly:  PresentationCore (in PresentationCore.dll)

public:
virtual StrokeCollection^ Clone()

Return Value

Type: System.Windows.Ink::StrokeCollection^

A copy of the StrokeCollection.

The Clone method copies each Stroke in the collection and the new StrokeCollection references the new strokes.

The following example demonstrates how to copy the ink in one InkCanvas onto another InkCanvas. This example assumes:

  • There are two InkCanvas objects called inkCanvas1 and inkCanvas2.

  • The Click event has been connected to the event handler.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 3.0
Return to top
Show: