PenAndInkSettings Class
Definition
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.
Provides access to user settings related to accepting and converting ink to text input in a text control (when HandwritingView is enabled).
public ref class PenAndInkSettings sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 458752)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class PenAndInkSettings final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 458752)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class PenAndInkSettings
Public NotInheritable Class PenAndInkSettings
- Inheritance
- Attributes
Windows requirements
Device family |
Windows 10, version 1809 (introduced in 10.0.17763.0)
|
API contract |
Windows.Foundation.UniversalApiContract (introduced in v7.0)
|
Properties
FontFamilyName |
Gets the font used for converting ink to text input in a text control (when HandwritingView is enabled). |
HandwritingLineHeight |
Gets the handwriting space available when using ink for text input in a text control (when HandwritingView is enabled). |
IsHandwritingDirectlyIntoTextFieldEnabled |
Gets whether ink can be used for text input in a text control (when HandwritingView is enabled). |
IsTouchHandwritingEnabled |
Gets whether touch inking can be used for text input in a text control (when HandwritingView is enabled). |
PenHandedness |
Gets the user's preferred hand (left or right) for pen and ink input, and related UI. |
UserConsentsToHandwritingTelemetryCollection |
Gets whether ink/handwriting input telemetry data can be collected and sent to Microsoft for improving recognition and suggestion capabilities. |
Methods
GetDefault() |
Creates a PenAndInkSettings object with default property values. |
SetPenHandedness(PenHandedness) |
Sets the user's preferred hand (left or right) for pen and ink input, and related UI. |
Applies to
See also
- 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