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

为指定笔画返回最多指定数目的分析备选项。

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

语法

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

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

参数

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

返回值

类型:System.Windows.Ink.AnalysisCore.AnalysisAlternateBaseCollection
指定笔画的最多 maximumAlternate 个最佳分析备选项。

备注

最佳备选项作为集合的第一个备选项返回。

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

示例

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

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

平台

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