InkStrokeBuilder class

InkStrokeBuilder class

[ Updated for UWP apps on Windows 10. For Windows 8.x articles, see the archive ]

Builds strokes from raw pointer input.

Note  

For Universal Windows apps using Extensible Application Markup Language (XAML), we recommend using InkPresenter and the InkCanvas control instead of InkManager.

Use CreateStrokeFromInkPoints and SetDefaultDrawingAttributes to programmatically build strokes for an InkPresenter.

 

Syntax


public ref class InkStrokeBuilder sealed 

Members

The InkStrokeBuilder class has these types of members:

Constructors

The InkStrokeBuilder class has these constructors.

ConstructorDescription
InkStrokeBuilder Creates a new InkStrokeBuilder object that is used to construct InkStroke objects.

 

Methods

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

MethodDescription
AppendToStroke Adds a new segment to the ink stroke.
BeginStroke Starts building the ink stroke.
CreateStroke Creates a stroke from an array of Point coordinates.
CreateStrokeFromInkPoints Creates a stroke from collection of InkPoint objects.
EndStroke Stops building the ink stroke.
SetDefaultDrawingAttributes Sets the default InkDrawingAttributes for all new ink strokes created after the current stroke.

 

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

Device family

Universal

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
Windows.UI.Input.Inking Classes
Pen and stylus interactions
Samples
Ink sample
Simple ink sample
Complex ink sample

 

 

Show:
© 2016 Microsoft