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