AnalysisAlternate.Strokes Property
Gets the strokes that are referenced by the current AnalysisAlternate object.
Namespace: System.Windows.Ink
Assembly: IAWinFX (in IAWinFX.dll)
Syntax
'Declaration
Public ReadOnly Property Strokes As StrokeCollection
'Usage
Dim instance As AnalysisAlternate
Dim value As StrokeCollection
value = instance.Strokes
public StrokeCollection Strokes { get; }
public:
property StrokeCollection^ Strokes {
StrokeCollection^ get ();
}
public function get Strokes () : StrokeCollection
Property Value
Type: System.Windows.Ink.StrokeCollection
The StrokeCollection 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 on the InkCanvas (named theInkCanvas), black, except for strokes from the AnalysisAlternate, selectedAlternate, which it sets to green. It then sets the selected AnalysisAlternate as the top alternate.
' Set these strokes to green
For Each stroke As Stroke In theInkCanvas.Strokes
stroke.DrawingAttributes.Color = Colors.Black
Next stroke
For Each stroke As Stroke In selectedAlternate.Strokes
stroke.DrawingAttributes.Color = Colors.Green
Next stroke
' Use this as the top alternate
theInkAnalyzer.ModifyTopAlternate(selectedAlternate)
theResultsTextBox.Text = theInkAnalyzer.GetRecognizedString()
// Set these strokes to green
foreach (Stroke stroke in theInkCanvas.Strokes)
stroke.DrawingAttributes.Color = Colors.Black;
foreach (Stroke stroke in selectedAlternate.Strokes)
stroke.DrawingAttributes.Color = Colors.Green;
// Use this as the top alternate
theInkAnalyzer.ModifyTopAlternate(selectedAlternate);
theResultsTextBox.Text = theInkAnalyzer.GetRecognizedString();
Platforms
Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003
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