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.

InkStrokeContainer class

Applies to Windows only

Provides properties and methods to manage the input, processing, and manipulation of one or more InkStroke objects.

Syntax


var inkStrokeContainer = new Windows.UI.Input.Inking.InkStrokeContainer();

Attributes

[DualApiPartition()]
[MarshalingBehavior(None)]
[Threading(Both)]
[Version(0x06020000)]

Members

The InkStrokeContainer class has these types of members:

Constructors

The InkStrokeContainer class has these constructors.

ConstructorDescription
InkStrokeContainer Creates a new InkStrokeContainer object that is used to manage InkStroke objects.

 

Methods

The InkStrokeContainer class has these methods. With C#, Visual Basic, and C++, it also inherits methods from the Object class.

MethodDescription
AddStroke Adds one or more InkStroke objects to the collection managed by the InkManager.
CanPasteFromClipboard Identifies whether content on the clipboard can be added to the InkStroke collection that is managed by the InkManager.
CopySelectedToClipboard Copies the selected InkStroke objects (from the InkStroke collection managed by the InkManager) to the clipboard in Ink Serialized Format (ISF) format.
DeleteSelected Deletes the selected InkStroke objects from the InkStroke collection managed by the InkManager.
GetRecognitionResults Gets a collection of potential matches for each word detected by an InkRecognizer during handwriting recognition.
GetStrokes Retrieves all InkStroke objects in the collection managed by the InkManager.
LoadAsync Asynchronously loads all InkStroke objects from the specified stream to the InkStroke collection that is managed by the InkStrokeContainer.
MoveSelected Moves the selected strokes. All affected strokes are re-rendered.
PasteFromClipboard Adds the InkStroke content from the clipboard to the InkStroke collection that is managed by the InkStrokeContainer and renders the new strokes..
SaveAsync Asynchronously saves all InkStroke objects in the InkStroke collection that is managed by the InkStrokeContainer to the specified stream.
SelectWithLine Selects all strokes intersected by the new stroke.
SelectWithPolyLine Selects all strokes contained entirely within the polyline.
UpdateRecognitionResults Updates the collection of potential text matches from handwriting recognition.

 

Properties

The InkStrokeContainer class has these properties.

PropertyAccess typeDescription

BoundingRect

Read-onlyGets the bounding rectangle of the InkStroke collection that is managed by the InkManager.

 

Remarks

Note  : This class is not agile, which means that you need to consider its threading model and marshaling behavior. For more info, see Threading and Marshaling (C++/CX) and Using Windows Runtime objects in a multithreaded environment (.NET).

Requirements

Minimum supported client

Windows 8 [Windows Store apps, desktop apps]

Minimum supported server

Windows Server 2012 [Windows Store apps, desktop apps]

Minimum supported phone

None supported

Namespace

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

Metadata

Windows.winmd

See also

Windows.UI.Input.Inking Classes
Responding to pen and stylus input
Ink App sample

 

 

Show:
© 2014 Microsoft