StylusDevice.DirectlyOver Właściwość

Definicja

Pobiera wskaźnik, który IInputElement jest umieszczony w pozycji.

public:
 property System::Windows::IInputElement ^ DirectlyOver { System::Windows::IInputElement ^ get(); };
public System.Windows.IInputElement DirectlyOver { get; }
member this.DirectlyOver : System.Windows.IInputElement
Public ReadOnly Property DirectlyOver As IInputElement

Wartość właściwości

Element, na którym znajduje się wskaźnik.

Przykłady

W poniższym przykładzie pokazano DirectlyOver właściwość .

// See to what DirectlyOver property is set
// First see if it's null
if (null == myStylusDevice.DirectlyOver)
{
    textbox1.AppendText("DirectlyOver: null\n");
}
else
{
    // Otherwise display the underlying type
    textbox1.AppendText("DirectlyOver: " + myStylusDevice.DirectlyOver.GetType().Name + "\n");
}
' See to what DirectlyOver property is set
' First see if it's null
If IsNothing(myStylusDevice.DirectlyOver) Then
    textbox1.AppendText("DirectlyOver: null" + vbCrLf)
Else
    ' Otherwise display the underlying type
    textbox1.AppendText("DirectlyOver (type): " + TypeName(myStylusDevice.DirectlyOver) + vbCrLf)
End If

Dotyczy