次の方法で共有


InkAnalyzer.SetStrokesType メソッド

Strokes コレクション内の各ストロークの型を変更します。

名前空間 :  Microsoft.Ink
アセンブリ :  Microsoft.Ink.Analysis (Microsoft.Ink.Analysis.dll 内)

構文

'宣言
Public Sub SetStrokesType ( _
    strokes As Strokes, _
    strokeType As StrokeType _
)
'使用
Dim instance As InkAnalyzer
Dim strokes As Strokes
Dim strokeType As StrokeType

instance.SetStrokesType(strokes, strokeType)
public void SetStrokesType(
    Strokes strokes,
    StrokeType strokeType
)
public:
void SetStrokesType(
    Strokes^ strokes, 
    StrokeType strokeType
)
public void SetStrokesType(
    Strokes strokes,
    StrokeType strokeType
)
public function SetStrokesType(
    strokes : Strokes, 
    strokeType : StrokeType
)

パラメータ

  • strokes
    型 : Microsoft.Ink.Strokes
    strokeType を割り当てるストロークのコレクション。

解説

ストロークの型が Microsoft.Ink.StrokeTypeUnspecified の場合、InkAnalyzer はインク分析時にストロークを分類します。それ以外の場合、InkAnalyzer はストロークで設定された型を使用します。

現在ストロークに割り当てられている型を取得するには、InkAnalyzer.GetStrokeType を呼び出します。

この例では、InkAnalyzer、theInkAnalyzer に関連付けられた ContextNode、theContextNode のすべてのストロークに StrokeType 値 theStrokeType を割り当てます。

theInkAnalyzer.SetStrokesType(theContextNode.Strokes, theStrokeType)
theInkAnalyzer.SetStrokesType(theContextNode.Strokes, theStrokeType);

プラットフォーム

Windows Vista

.NET Framework および .NET Compact Framework では、各プラットフォームのすべてのバージョンはサポートしていません。サポートされているバージョンについては、「.NET Framework システム要件」を参照してください。

バージョン情報

.NET Framework

サポート対象 : 3.0

参照

参照

InkAnalyzer クラス

InkAnalyzer メンバ

Microsoft.Ink 名前空間

Microsoft.Ink.StrokeType