InkStroke Class

Definition

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

public ref class InkStroke sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class InkStroke final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class InkStroke
Public NotInheritable Class InkStroke
Inheritance
Object Platform::Object IInspectable 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

See also