InkStroke Class
Important
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
- Inheritance
- Attributes
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)
|
Windows version | SDK version | Value added |
---|---|---|
1703 | 15063 | Id |
1703 | 15063 | StrokeDuration |
1703 | 15063 | StrokeStartedTime |
Bounding |
Gets the bounding box for the InkStroke. |
Drawing |
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. |
Pointer |
Gets the ID of the pointer associated with the ink stroke. |
Point |
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. |
Stroke |
Gets or sets the time taken by the user to draw a single ink stroke. |
Stroke |
Gets or sets the date and time when the InkStroke was started. |
Clone() |
Copies the InkStroke to another InkManager (or InkStrokeContainer). |
Get |
Gets the collection of InkPoint objects used to construct the InkStroke. |
Get |
Gets the rendering segments of the stroke. Note 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
- Inking sample (JavaScript)
- Simple inking sample (C#/C++)
- Complex inking sample (C++)
- Ink analysis sample