AnalysisAlternate.Strokes 属性

获取当前 AnalysisAlternate 对象引用的笔画。

命名空间:  System.Windows.Ink
程序集:  IAWinFX(在 IAWinFX.dll 中)

语法

声明
Public ReadOnly Property Strokes As StrokeCollection
用法
Dim instance As AnalysisAlternate
Dim value As StrokeCollection

value = instance.Strokes
public StrokeCollection Strokes { get; }
public:
property StrokeCollection^ Strokes {
    StrokeCollection^ get ();
}
/** @property */
public StrokeCollection get_Strokes()
public function get Strokes () : StrokeCollection

属性值

类型:System.Windows.Ink.StrokeCollection
AnalysisAlternate 对象引用的 StrokeCollection

备注

备注

如果在调用 InkAnalyzer.ModifyTopAlternate 之后尝试访问 Strokes 属性,将引发 InvalidOperationException

示例

此示例将 InkCanvas (theInkCanvas)) 的所有笔画设置为黑色,将 AnalysisAlternate (selectedAlternate) 的笔画设置为绿色。然后将所选的 AnalysisAlternate 设置为最佳备选项。

' 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();

平台

Windows Vista

.NET Framework 和 .NET Compact Framework 并不是对每个平台的所有版本都提供支持。有关支持的版本的列表,请参见.NET Framework 系统要求

版本信息

.NET Framework

受以下版本支持:3.0

另请参见

参考

AnalysisAlternate 类

AnalysisAlternate 成员

System.Windows.Ink 命名空间