Share via


PointerPointProperties.ZDistance Property

Definition

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.

Applies to