取得 InkOverlaySelectionChangingEventArgs 事件的新 Strokes 集合。
命名空間: Microsoft.Ink
組件: Microsoft.Ink (在 Microsoft.Ink.dll 中)
語法
'宣告
Public ReadOnly Property NewSelection As Strokes
'用途
Dim instance As InkOverlaySelectionChangingEventArgs
Dim value As Strokes
value = instance.NewSelection
public Strokes NewSelection { get; }
public:
property Strokes^ NewSelection {
Strokes^ get ();
}
/** @property */
public Strokes get_NewSelection()
public function get NewSelection () : Strokes
屬性值
型別:Microsoft.Ink.Strokes
新的 Strokes 集合。
範例
在這個範例中,SelectionChanging 事件處理常式會藉由從目前選取範圍中移除所有物件,而只留下一個 Stroke 物件的方式,禁止選取多個筆劃。
Private Sub mInkObject_SelectionChanging(ByVal sender As Object, ByVal e As InkOverlaySelectionChangingEventArgs)
While e.NewSelection.Count > 1
e.NewSelection.RemoveAt(e.NewSelection.Count - 1)
End While
End Sub
private void mInkObject_SelectionChanging(object sender, InkOverlaySelectionChangingEventArgs e)
{
while (e.NewSelection.Count > 1)
{
e.NewSelection.RemoveAt(e.NewSelection.Count - 1);
}
}
平台
Windows Vista
.NET Framework 和 .NET Compact Framework 並不支援各種平台的所有版本。如需支援平台版本的相關資訊,請參閱 .NET Framework 系統需求。
版本資訊
.NET Framework
支援版本:3.0
請參閱
參考
InkOverlaySelectionChangingEventArgs 類別