PointerPointProperties.ZDistance Property


Gets the z-coordinate (or distance) of the pointer from the screen surface, in device-independent pixels.

 property IReference<float> ^ ZDistance { IReference<float> ^ get(); };
IReference<float> ZDistance();
public System.Nullable<float> ZDistance { get; }
var iReference = pointerPointProperties.zDistance;
Public ReadOnly Property ZDistance As Nullable(Of Single)

Property Value

The value is null when the pointer is not within detection range or when MaxPointersWithZDistance is zero. The default value is null.

Applies to