この AnalysisAlternate オブジェクトによって参照される Strokes オブジェクトを取得します。
名前空間 : 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
この AnalysisAlternate オブジェクトによって参照される Strokes オブジェクト。
解説
![]() |
---|
InkAnalyzer.ModifyTopAlternate が呼び出された後に Strokes プロパティにアクセスしようとすると、InvalidOperationException がスローされます。 |
例
この例では、InkCollector、theInkCollector からのすべての Strokes を黒にします。ただし、緑に設定される AnalysisAlternate,selectedAlternate からの Strokes は除きます。次に、インク theNotesPanel を含む Panel を更新します。
' 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