PointerPointProperties.ZDistance Property
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.
Gets the z-coordinate (or distance) of the pointer from the screen surface, in device-independent pixels.
public:
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.