StylusDevice.DirectlyOver 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 IInputElement that the pointer is positioned over.
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
Property Value
The element the pointer is over.
Examples
The following example demonstrates the DirectlyOver property.
// 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
Applies to
Співпраця з нами на GitHub
Джерело цього вмісту можна знайти на GitHub, де також можна створювати й переглядати запитання та запити на внесення змін. Докладні відомості наведено в нашому посібнику для співавторів.
Зворотний зв’язок
https://aka.ms/ContentUserFeedback.
Очікується незабаром: протягом 2024 року ми будемо припиняти використання механізму реєстрації проблем у GitHub для зворотного зв’язку щодо вмісту й замінювати його новою системою зворотного зв’язку. Докладніше:Надіслати й переглянути відгук про