Share via


InkStrokeContainer.AddStroke(InkStroke) Method

Definition

Adds an InkStroke object to the collection managed by the InkStrokeContainer.

An InkStroke cannot exist in more than one InkStrokeContainer. Call the Clone method to duplicate a stroke in another container.

public:
 virtual void AddStroke(InkStroke ^ stroke) = AddStroke;
void AddStroke(InkStroke const& stroke);
public void AddStroke(InkStroke stroke);
function addStroke(stroke)
Public Sub AddStroke (stroke As InkStroke)

Parameters

stroke
InkStroke

The ink stroke to be added.

stroke must be created by using the Clone method, or through a call to EndStroke or ProcessPointerUp. Empty or existing strokes are not valid.

Implements

Applies to

See also