InkAnalyzer.RemoveStrokes - метод
Обновлен: Ноябрь 2007
Removes a strokes collection from the ink analyzer.
Пространство имен: Microsoft.Ink
Сборка: Microsoft.Ink.Analysis (в Microsoft.Ink.Analysis.dll)
Синтаксис
'Декларация
Public Sub RemoveStrokes ( _
strokesToRemove As Strokes _
)
'Применение
Dim instance As InkAnalyzer
Dim strokesToRemove As Strokes
instance.RemoveStrokes(strokesToRemove)
public void RemoveStrokes(
Strokes strokesToRemove
)
public:
void RemoveStrokes(
Strokes^ strokesToRemove
)
public void RemoveStrokes(
Strokes strokesToRemove
)
public function RemoveStrokes(
strokesToRemove : Strokes
)
Параметры
- strokesToRemove
Тип: Microsoft.Ink.Strokes
The strokes collection to remove.
Заметки
This method removes strokesToRemove from the InkAnalyzer.
This method removes each stroke in strokesToRemove from the leaf context node that references the stroke. If the context node no longer references any strokes, this method deletes the context node and any ancestor nodes that no longer have any child nodes.
After this method removes the strokes from the context node, it updates the DirtyRegion to include the bounding box of the removed strokes.
This method ignores any strokes that are not associated with the ink analyzer. If none of the strokes in strokesToRemove are associated with the ink analyzer, this method returns without updating the ink analyzer.
This method throws a System.ArgumentNullException when strokesToRemove is nullссылка null (Nothing в Visual Basic).
Примеры
This example removes all the strokes associated with the InkAnalyzer, theInkAnalyzer, from the ink analyzer and also removes them from the Microsoft.Ink.Ink object associated with theInkAnalyzer.
' Get all the strokes associated with the ink analyzer.
Dim theStrokes As Microsoft.Ink.Strokes = Me.theInkAnalyzer.RootNode.Strokes
If Nothing IsNot theStrokes Then
' Remove the strokes from the analyzer.
Me.theInkAnalyzer.RemoveStrokes(theStrokes)
' Deleted the strokes from the associated Ink object.
Me.theInkAnalyzer.Ink.DeleteStrokes(theStrokes)
End If
// Get all the strokes associated with the ink analyzer.
Microsoft.Ink.Strokes theStrokes = this.theInkAnalyzer.RootNode.Strokes;
if (null != theStrokes)
{
// Remove the strokes from the analyzer.
this.theInkAnalyzer.RemoveStrokes(theStrokes);
// Deleted the strokes from the associated Ink object.
this.theInkAnalyzer.Ink.DeleteStrokes(theStrokes);
}
Платформы
Windows Vista
Среды .NET Framework и .NET Compact Framework поддерживают не все версии каждой платформы. Поддерживаемые версии перечислены в разделе Требования к системе для .NET Framework.
Сведения о версии
.NET Framework
Поддерживается в версии: 3.0