StylusDevice.Captured 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 element that captured the stylus.
public:
property System::Windows::IInputElement ^ Captured { System::Windows::IInputElement ^ get(); };
public System.Windows.IInputElement Captured { get; }
member this.Captured : System.Windows.IInputElement
Public ReadOnly Property Captured As IInputElement
Property Value
The IInputElement that captured the stylus.
Examples
The following example demonstrates the Captured property.
// See to what Captured property is set
// First see if it's null
if (null == myStylusDevice.Captured)
{
textbox1.AppendText("Captured: null\n");
}
else
{
// Otherwise display the underlying type
textbox1.AppendText("Captured: " + myStylusDevice.Captured.GetType().Name + "\n");
}
' See to what Captured property is set
' First see if it's null
If IsNothing(myStylusDevice.Captured) Then
textbox1.AppendText("Captured: null" + vbCrLf)
Else
' Otherwise display the underlying type
textbox1.AppendText("Captured (type): " + TypeName(myStylusDevice.Captured) + vbCrLf)
End If
Applies to
GitHub पर हमारे साथ सहयोग करें
इस सामग्री का स्रोत GitHub पर पाया जा सकता है, जहाँ आप समस्याएँ बना और समीक्षा भी कर सकते हैं और अनुरोध खींच सकते हैं. अधिक जानकारी के लिए, हमारे योगदानकर्ता गाइड देखें.