共用方式為


InkCanvas.GetEnabledGestures 方法

定義

傳回 InkCanvas 所辨識的應用程式筆勢集合。

public:
 System::Collections::ObjectModel::ReadOnlyCollection<System::Windows::Ink::ApplicationGesture> ^ GetEnabledGestures();
public System.Collections.ObjectModel.ReadOnlyCollection<System.Windows.Ink.ApplicationGesture> GetEnabledGestures ();
member this.GetEnabledGestures : unit -> System.Collections.ObjectModel.ReadOnlyCollection<System.Windows.Ink.ApplicationGesture>
Public Function GetEnabledGestures () As ReadOnlyCollection(Of ApplicationGesture)

傳回

InkCanvas 所辨識的筆勢集合。

例外狀況

範例

下列範例示範如何從 InkCanvas 取得已啟用的應用程式手勢。

ReadOnlyCollection<ApplicationGesture> enabledGestures = inkCanvas1.GetEnabledGestures();
Dim enabledGestures As ReadOnlyCollection(Of ApplicationGesture) = _
                    inkCanvas1.GetEnabledGestures()

適用於