StylusDevice.ActiveSource 屬性

定義

取得報告目前手寫筆輸入的 PresentationSourceGets the PresentationSource that reports current input for the stylus.

public:
 virtual property System::Windows::PresentationSource ^ ActiveSource { System::Windows::PresentationSource ^ get(); };
[get: System.Security.SecurityCritical]
public override System.Windows.PresentationSource ActiveSource { get; }
member this.ActiveSource : System.Windows.PresentationSource
Public Overrides ReadOnly Property ActiveSource As PresentationSource

屬性值

報告目前手寫筆輸入的 PresentationSourceThe PresentationSource that reports current input for the stylus.

屬性

範例

下列範例會示範ActiveSource屬性。The following example demonstrates the ActiveSource property.

PresentationSource myPresentationSource = myStylusDevice.ActiveSource;

if (null == myPresentationSource)
{
    textbox1.AppendText("ActiveSource : null\n");
}
else
{
    textbox1.AppendText("ActiveSource :" + myPresentationSource.ToString() + "\n");
}
Dim myPresentationSource As PresentationSource = myStylusDevice.ActiveSource

If IsNothing(myPresentationSource) Then
    textbox1.AppendText("ActiveSource : null" + vbCrLf)
Else
    textbox1.AppendText("ActiveSource :" + myPresentationSource.ToString() + vbCrLf)
End If

安全性

UIPermission
供應用程式讀取此屬性。for applications to read this property. 相關聯的列舉:AllWindowsAssociated enumeration: AllWindows

適用於