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.

InkStrokeContainer class

Provides properties and methods to store and manage the collection of InkStroke objects rendered by the InkPresenter.

Modifications made to any of the ink strokes in the stroke container are immediately rendered to the drawing surface associated with the InkPresenter.

Syntax


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

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 an InkStroke object to the collection managed by the InkStrokeContainer.
AddStrokes Adds one or more ink strokes to the collection managed by the InkStrokeContainer.
CanPasteFromClipboard Identifies whether content on the clipboard can be added to the InkStroke collection managed by the InkStrokeContainer.
Clear Deletes all InkStroke objects from the collection managed by the InkStrokeContainer.
CopySelectedToClipboard Copies the selected InkStroke objects (from the InkStroke collection managed by the InkStrokeContainer) to the clipboard in Ink Serialized Format (ISF) format.
DeleteSelected Deletes the selected InkStroke objects from the InkStroke collection managed by the InkStrokeContainer.
GetRecognitionResults Gets the collection of recognition matches previously processed by an InkRecognizer and stored in an InkRecognizerContainer.
GetStrokes Retrieves all ink strokes in the collection managed by the InkStrokeContainer.
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 recognition matches previously processed by an InkRecognizer and stored in an InkRecognizerContainer.

 

Properties

The InkStrokeContainer class has these properties.

PropertyAccess typeDescription

BoundingRect

Read-only

Gets the bounding rectangle of the InkStroke collection managed by the InkStrokeContainer.

 

Remarks

For ink recognition, use an InkRecognizerContainer object.

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 (Windows 10 device family)

Device family

Universal, introduced version 10.0.10240.0 [for Xbox, see UWP features that aren't yet supported on Xbox]

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

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

Metadata

Windows.Foundation.UniversalApiContract.winmd

Requirements (Windows 8.x and Windows Phone 8.x)

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

Attributes

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

See also

Object
IInkStrokeContainer
Windows.UI.Input.Inking Classes
Pen and stylus interactions
Samples
Ink sample
Simple ink sample
Complex ink sample

 

 

Show:
© 2016 Microsoft