InkAnalyzerBase.GetAlternates 方法 (array<Int32[])

为指定笔画返回最多前 10 个分析备选项。

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

语法

声明
Public Function GetAlternates ( _
    strokeIds As Integer() _
) As AnalysisAlternateBaseCollection
用法
Dim instance As InkAnalyzerBase
Dim strokeIds As Integer()
Dim returnValue As AnalysisAlternateBaseCollection

returnValue = instance.GetAlternates(strokeIds)
public AnalysisAlternateBaseCollection GetAlternates(
    int[] strokeIds
)
public:
AnalysisAlternateBaseCollection^ GetAlternates(
    array<int>^ strokeIds
)
public AnalysisAlternateBaseCollection GetAlternates(
    int[] strokeIds
)
public function GetAlternates(
    strokeIds : int[]
) : AnalysisAlternateBaseCollection

参数

  • strokeIds
    类型:array<System.Int32[]
    一个数组,包含要获取其分析备选项的笔画的标识符。

返回值

类型:System.Windows.Ink.AnalysisCore.AnalysisAlternateBaseCollection
为指定笔画返回最多前 10 个分析备选项。

备注

最佳备选项作为集合的第一个备选项返回。如果备选项多于 10 个,则只返回前 10 个。

指定的笔画不一定表示文档的相邻区域。

示例

下面的示例为 32 位有符号整数数组 theStrokeIds 中标识的笔画获取最多前 10 个备选项。指定的笔画是分配给 InkAnalyzerBase (theInkAnalyzerBase) 的笔画。

' Retrieve alternates for the specified strokes.
Dim theAlternates As System.Windows.Ink.AnalysisCore.AnalysisAlternateBaseCollection = _
    theInkAnalyzerBase.GetAlternates(theStrokeIds)
// Retrieve alternates for the specified strokes.
System.Windows.Ink.AnalysisCore.AnalysisAlternateBaseCollection theAlternates =
    theInkAnalyzerBase.GetAlternates(theStrokeIds);

平台

Windows Vista, Windows XP SP2, Windows Server 2003

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

版本信息

.NET Framework

受以下版本支持:3.0

另请参见

参考

InkAnalyzerBase 类

InkAnalyzerBase 成员

GetAlternates 重载

System.Windows.Ink.AnalysisCore 命名空间

System.Windows.Ink.AnalysisCore.AnalysisAlternateBase

System.Windows.Ink.AnalysisCore.AnalysisAlternateBaseCollection