次の方法で共有


InkAnalyzer.SetStrokesType メソッド

StrokeCollection の各ストロークの型を変更します。

名前空間 :  System.Windows.Ink
アセンブリ :  IAWinFX (IAWinFX.dll 内)

構文

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

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

パラメータ

解説

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

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

この例では、InkAnalyzer、theInkAnalyzer に関連付けられた (theContextNode という名前の) ContextNode のすべてのストロークに 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 メンバ

System.Windows.Ink 名前空間

System.Windows.Ink.StrokeType