InkStroke Class

Definition

A single ink stroke, including the Bézier curve parameters used for final rendering of the stroke.

C#
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class InkStroke
Inheritance
Object InkStroke
Attributes

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0 - for Xbox, see UWP features that aren't yet supported on Xbox)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)

Remarks

Version history

Windows version SDK version Value added
1703 15063 Id
1703 15063 StrokeDuration
1703 15063 StrokeStartedTime

Properties

BoundingRect

Gets the bounding box for the InkStroke.

DrawingAttributes

Gets or sets the properties associated with an InkStroke.

Id

Gets the ink stroke identifier.

A unique identifier is assigned to each ink stroke managed by the InkPresenter.

PointerId

Gets the ID of the pointer associated with the ink stroke.

PointTransform

Gets or sets an affine transformation matrix to apply to the InkStroke object.

Recognized

Gets whether the stroke is recognized.

Selected

Gets whether the stroke is selected.

StrokeDuration

Gets or sets the time taken by the user to draw a single ink stroke.

StrokeStartedTime

Gets or sets the date and time when the InkStroke was started.

Methods

Clone()

Copies the InkStroke to another InkManager (or InkStrokeContainer).

GetInkPoints()

Gets the collection of InkPoint objects used to construct the InkStroke.

GetRenderingSegments()

Gets the rendering segments of the stroke.

Note

For Universal Windows app using Extensible Application Markup Language (XAML), use GetInkPoints (see remarks).

Applies to

Product Versions
WinRT Build 10240, Build 10586, Build 14383, Build 15063, Build 16299, Build 17134, Build 17763, Build 18362, Build 19041, Build 20348, Build 22000, Build 22621, Build 26100

See also