Share via


InkPoint Class

Definition

Provides raw input data for a single point used in the construction of an InkStroke.

public ref class InkPoint sealed
/// [Windows.Foundation.Metadata.Activatable(Windows.UI.Input.Inking.IInkPointFactory, 65536, Windows.Foundation.UniversalApiContract)]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class InkPoint final
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Activatable(Windows.UI.Input.Inking.IInkPointFactory, 65536, "Windows.Foundation.UniversalApiContract")]
class InkPoint final
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Activatable(Windows.UI.Input.Inking.IInkPointFactory, 65536, "Windows.Foundation.UniversalApiContract")]
/// [Windows.Foundation.Metadata.Activatable(Windows.UI.Input.Inking.IInkPointFactory2, 262144, "Windows.Foundation.UniversalApiContract")]
class InkPoint final
[Windows.Foundation.Metadata.Activatable(typeof(Windows.UI.Input.Inking.IInkPointFactory), 65536, typeof(Windows.Foundation.UniversalApiContract))]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class InkPoint
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Activatable(typeof(Windows.UI.Input.Inking.IInkPointFactory), 65536, "Windows.Foundation.UniversalApiContract")]
public sealed class InkPoint
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Activatable(typeof(Windows.UI.Input.Inking.IInkPointFactory), 65536, "Windows.Foundation.UniversalApiContract")]
[Windows.Foundation.Metadata.Activatable(typeof(Windows.UI.Input.Inking.IInkPointFactory2), 262144, "Windows.Foundation.UniversalApiContract")]
public sealed class InkPoint
function InkPoint(position, pressure)
function InkPoint(position, pressure, tiltX, tiltY, timestamp)
Public NotInheritable Class InkPoint
Inheritance
Object Platform::Object IInspectable InkPoint
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 InkPoint(Point,Single,Single,Single,UInt64)
1703 15063 TiltX
1703 15063 TiltY
1703 15063 Timestamp

Constructors

InkPoint(Point, Single, Single, Single, UInt64)

Creates a complex InkPoint object used in the construction of an InkStroke.

InkPoint(Point, Single)

Creates a basic InkPoint object used in the construction of an InkStroke.

Properties

Position

The X, Y coordinates of the InkPoint, in device-independent pixel (DIP) relative to the upper left-hand corner of the inking area.

Pressure

The pressure of the contact on the digitizer surface for the InkPoint.

TiltX

Gets the plane angle between the Y-Z plane and the plane containing the Y axis and the axis of the input device.

TiltY

Gets the plane angle between the X-Z plane and the plane containing the X axis and the axis of the input device.

Timestamp

Gets the timestamp for the first InkPoint of an InkStroke, or when an entire InkStroke is pasted or loaded.

Applies to

See also