AnalysisAlternate.Strokes - свойство
Обновлен: Ноябрь 2007
Gets the Strokes objects that are referenced by this AnalysisAlternate object.
Пространство имен: Microsoft.Ink
Сборка: Microsoft.Ink.Analysis (в Microsoft.Ink.Analysis.dll)
Синтаксис
'Декларация
Public ReadOnly Property Strokes As Strokes
'Применение
Dim instance As AnalysisAlternate
Dim value As Strokes
value = instance.Strokes
public Strokes Strokes { get; }
public:
property Strokes^ Strokes {
Strokes^ get ();
}
/** @property */
public Strokes get_Strokes()
public function get Strokes () : Strokes
Значение свойства
Тип: Microsoft.Ink.Strokes
The Strokes objects that are referenced by this AnalysisAlternate object.
Заметки
![]() |
---|
An InvalidOperationException is thrown if you attempt to access the Strokes property after InkAnalyzer.ModifyTopAlternate is called. |
Примеры
This example makes all of the Strokes from an InkCollector, theInkCollector, black except for Strokes from the AnalysisAlternate, selectedAlternate, which it sets to green. It then refreshes the Panel that contains the ink, theNotesPanel.
' Set these strokes to green
Dim inkStroke As Stroke
For Each inkStroke In theInkCollector.Ink.Strokes
inkStroke.DrawingAttributes = New DrawingAttributes(Color.Black)
Next inkStroke
For Each inkStroke In selectedAlternate.Strokes
inkStroke.DrawingAttributes = New DrawingAttributes(Color.Green)
Next inkStroke
theNotesPanel.Refresh()
' Use this as the top alternate
theInkAnalyzer.ModifyTopAlternate(selectedAlternate)
theResultsTextBox.Text = theInkAnalyzer.GetRecognizedString()
// Set these strokes to green
foreach (Stroke stroke in theInkCollector.Ink.Strokes)
stroke.DrawingAttributes = new DrawingAttributes(Color.Black);
foreach (Stroke stroke in selectedAlternate.Strokes)
stroke.DrawingAttributes = new DrawingAttributes(Color.Green);
theNotesPanel.Refresh();
// Use this as the top alternate
theInkAnalyzer.ModifyTopAlternate(selectedAlternate);
theResultsTextBox.Text = theInkAnalyzer.GetRecognizedString();
Платформы
Windows Vista
Среды .NET Framework и .NET Compact Framework поддерживают не все версии каждой платформы. Поддерживаемые версии перечислены в разделе Требования к системе для .NET Framework.
Сведения о версии
.NET Framework
Поддерживается в версии: 3.0