StrokeCollection::Add Method (StrokeCollection^)

 

Adds the specified strokes to the StrokeCollection.

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

public:
void Add(
	StrokeCollection^ strokes
)

Parameters

strokes
Type: System.Windows.Ink::StrokeCollection^

The StrokeCollection to add to the collection.

Exception Condition
ArgumentException

A Stroke in strokes is already a member of the StrokeCollection.

ArgumentNullException

strokes is null.

The Add method raises the StrokesChanged event.

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: