次の方法で共有


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

解説

ms594090.alert_note(ja-jp,VS.90).gifメモ :

InkAnalyzer.ModifyTopAlternate が呼び出された後に Strokes プロパティにアクセスしようとすると、InvalidOperationException がスローされます。

この例では、theInkCanvas という名前のInkCanvas 上のすべてのストロークを黒にマークします。ただし、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 名前空間