指定した Stroke のロケール識別子を変更します。
名前空間 : Microsoft.Ink
アセンブリ : Microsoft.Ink.Analysis (Microsoft.Ink.Analysis.dll 内)
構文
'宣言
Public Sub SetStrokeLanguageId ( _
stroke As Stroke, _
languageId As Integer _
)
'使用
Dim instance As InkAnalyzer
Dim stroke As Stroke
Dim languageId As Integer
instance.SetStrokeLanguageId(stroke, _
languageId)
public void SetStrokeLanguageId(
Stroke stroke,
int languageId
)
public:
void SetStrokeLanguageId(
Stroke^ stroke,
int languageId
)
public void SetStrokeLanguageId(
Stroke stroke,
int languageId
)
public function SetStrokeLanguageId(
stroke : Stroke,
languageId : int
)
パラメータ
- stroke
型 : Microsoft.Ink.Stroke
ロケール識別子を割り当てるストローク。
- languageId
型 : System.Int32
stroke に割り当てる言語識別子。
解説
ストロークのロケールは、AddStroke または AddStrokes を呼び出すことにより、ストロークを追加したときに設定されます。現在ストロークに割り当てられているロケールを取得するには、GetStrokeLanguageId を呼び出します。
例
この例では、InkAnalyzer、theInkAnalyzer に関連付けられた ContextNode、theContextNode のすべてのストロークにロケール識別子 theLcid を割り当てます。
' Iterate through the strokes within the context node and update
' the locale of each stroke.
Dim theStroke As Microsoft.Ink.Stroke
For Each theStroke In theContextNode.Strokes
theInkAnalyzer.SetStrokeLanguageId(theStroke, theLcid)
Next theStroke
// Iterate through the strokes within the context node and update
// the locale of each stroke.
foreach (Microsoft.Ink.Stroke theStroke in theContextNode.Strokes)
{
theInkAnalyzer.SetStrokeLanguageId(theStroke, theLcid);
}
プラットフォーム
Windows Vista
.NET Framework および .NET Compact Framework では、各プラットフォームのすべてのバージョンはサポートしていません。サポートされているバージョンについては、「.NET Framework システム要件」を参照してください。
バージョン情報
.NET Framework
サポート対象 : 3.0