Stroke のストロークの型を変更します。
名前空間 : System.Windows.Ink
アセンブリ : IAWinFX (IAWinFX.dll 内)
構文
'宣言
Public Sub SetStrokeType ( _
stroke As Stroke, _
strokeType As StrokeType _
)
'使用
Dim instance As InkAnalyzer
Dim stroke As Stroke
Dim strokeType As StrokeType
instance.SetStrokeType(stroke, strokeType)
public void SetStrokeType(
Stroke stroke,
StrokeType strokeType
)
public:
void SetStrokeType(
Stroke^ stroke,
StrokeType strokeType
)
public void SetStrokeType(
Stroke stroke,
StrokeType strokeType
)
public function SetStrokeType(
stroke : Stroke,
strokeType : StrokeType
)
パラメータ
- stroke
型 : System.Windows.Ink.Stroke
strokeType に割り当てられるストローク。
- strokeType
型 : System.Windows.Ink.StrokeType
strokes のストロークに割り当てられるストロークの型。
解説
ストロークの型が Unspecified という名前の System.Windows.Ink.StrokeType 値の場合、InkAnalyzer はインク分析時にストロークを分類します。それ以外の場合、InkAnalyzer はストロークで設定された型を使用します。
現在ストロークに割り当てられている型を取得するには、GetStrokeType() を呼び出します。
例
この例では、(theInkAnalyzer という名前の) InkAnalyzer に関連付けられた (theContextNode という名前の) ContextNode の各ストロークに、theStrokeType という名前の StrokeType 値を割り当てます。
' Iterate through the strokes within the context node and update
' the stroke type of those strokes.
Dim theStroke As Stroke
For Each theStroke In theContextNode.Strokes
theInkAnalyzer.SetStrokeType(theStroke, theStrokeType)
Next theStroke
// Iterate through the strokes within the context node and update
// the stroke type of those strokes.
foreach (Stroke theStroke in theContextNode.Strokes)
{
theInkAnalyzer.SetStrokeType(theStroke, theStrokeType);
}
プラットフォーム
Windows Vista
.NET Framework および .NET Compact Framework では、各プラットフォームのすべてのバージョンはサポートしていません。サポートされているバージョンについては、「.NET Framework システム要件」を参照してください。
バージョン情報
.NET Framework
サポート対象 : 3.0