AnalysisAlternate.Strokes Property
Gets the Strokes objects that are referenced by this AnalysisAlternate object.
Namespace: Microsoft.Ink
Assembly: Microsoft.Ink.Analysis (in Microsoft.Ink.Analysis.dll)
Syntax
'Declaration
Public ReadOnly Property Strokes As Strokes
'Usage
Dim instance As AnalysisAlternate
Dim value As Strokes
value = instance.Strokes
public Strokes Strokes { get; }
public:
property Strokes^ Strokes {
Strokes^ get ();
}
public function get Strokes () : Strokes
Property Value
Type: Microsoft.Ink.Strokes
The Strokes objects that are referenced by this AnalysisAlternate object.
Remarks
Note
An InvalidOperationException is thrown if you attempt to access the Strokes property after InkAnalyzer.ModifyTopAlternate is called.
Examples
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();
Platforms
Windows 7, Windows Vista, Windows Server 2008 R2, Windows Server 2008
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Version Information
.NET Framework
Supported in: 3.0