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
)
パラメータ
- strokes
型 : System.Windows.Ink.StrokeCollection
strokeType に割り当てられるストロークのコレクション。
- strokeType
型 : System.Windows.Ink.StrokeType
strokes のストロークに割り当てられるストロークの型。
解説
ストロークの型が System.Windows.Ink.StrokeType 値 Unspecified の場合、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