InkAnalyzer.SetStrokesLanguageId 方法

更改指定 StrokeCollection 的区域设置标识符。

命名空间:  System.Windows.Ink
程序集:  IAWinFX(在 IAWinFX.dll 中)

语法

声明
Public Sub SetStrokesLanguageId ( _
    strokes As StrokeCollection, _
    languageId As Integer _
)
用法
Dim instance As InkAnalyzer
Dim strokes As StrokeCollection
Dim languageId As Integer

instance.SetStrokesLanguageId(strokes, _
    languageId)
public void SetStrokesLanguageId(
    StrokeCollection strokes,
    int languageId
)
public:
void SetStrokesLanguageId(
    StrokeCollection^ strokes, 
    int languageId
)
public void SetStrokesLanguageId(
    StrokeCollection strokes,
    int languageId
)
public function SetStrokesLanguageId(
    strokes : StrokeCollection, 
    languageId : int
)

参数

  • languageId
    类型:System.Int32
    分配给 strokes 中的笔画的区域设置标识符。

备注

笔画的区域设置是在通过调用 AddStrokeAddStrokes 添加笔画时设置的。若要获取当前分配给笔画的区域设置,请调用 GetStrokeLanguageId()。

示例

此示例将区域设置标识符 theLcid 分配给与 InkAnalyzer (theInkAnalyzer) 关联的 ContextNode (theContextNode) 中的所有笔画。

' Update the locale of all strokes associated with the context node.
theInkAnalyzer.SetStrokesLanguageId(theContextNode.Strokes, theLcid)
// Update the locale of all strokes associated with the context node.
theInkAnalyzer.SetStrokesLanguageId(theContextNode.Strokes, theLcid);

平台

Windows Vista

.NET Framework 和 .NET Compact Framework 并不是对每个平台的所有版本都提供支持。有关支持的版本的列表,请参见.NET Framework 系统要求

版本信息

.NET Framework

受以下版本支持:3.0

另请参见

参考

InkAnalyzer 类

InkAnalyzer 成员

System.Windows.Ink 命名空间