Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Object IInspectable InkStroke
Windows 10 (introduced in 10.0.10240.0 - for Xbox, see UWP features that aren't yet supported on Xbox)
Windows.Foundation.UniversalApiContract (introduced in v1.0)
|Windows version||SDK version||Value added|
Gets the bounding box for the InkStroke.
Gets or sets the properties associated with an InkStroke.
Gets the ink stroke identifier.
A unique identifier is assigned to each ink stroke managed by the InkPresenter.
Gets the ID of the pointer associated with the ink stroke.
Gets or sets an affine transformation matrix to apply to the InkStroke object.
Gets whether the stroke is recognized.
Gets whether the stroke is selected.
Gets or sets the time taken by the user to draw a single ink stroke.
Gets or sets the date and time when the InkStroke was started.
Gets the rendering segments of the stroke.
For Universal Windows app using Extensible Application Markup Language (XAML), use GetInkPoints (see remarks).
- Pen and stylus interactions
- Get started: Support ink in your UWP app
- Ink analysis sample (basic) (C#)
- Ink handwriting recognition sample (C#)
- Save and load ink strokes from an Ink Serialized Format (ISF) file
- Save and load ink strokes from the clipboard
- Ink toolbar location and orientation sample (basic)
- Ink toolbar location and orientation sample (dynamic)
- Coloring book sample
- Family notes sample
- Simple inking sample (C#/C++)
- Complex inking sample (C++)
- Ink analysis sample