InkAnalyzer.SetStrokeLanguageId 方法
變更所指定 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。
範例
這個範例會指派地區設定識別項 theLcid 給與 InkAnalyzer (theInkAnalyzer) 相關聯之 ContextNode (theContextNode) 中的所有筆劃。
' 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