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()

适用于