ContextNodeBase.GetTextRangeFromNodes 方法

查找已识别字符串中对应于上下文节点集合的文本范围。

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

语法

声明
Public Sub GetTextRangeFromNodes ( _
    subTree As ContextNodeBaseCollection, _
    <OutAttribute> ByRef start As Integer, _
    <OutAttribute> ByRef length As Integer _
)
用法
Dim instance As ContextNodeBase
Dim subTree As ContextNodeBaseCollection
Dim start As Integer
Dim length As Integer

instance.GetTextRangeFromNodes(subTree, _
    start, length)
public void GetTextRangeFromNodes(
    ContextNodeBaseCollection subTree,
    out int start,
    out int length
)
public:
void GetTextRangeFromNodes(
    ContextNodeBaseCollection^ subTree, 
    [OutAttribute] int% start, 
    [OutAttribute] int% length
)
public void GetTextRangeFromNodes(
    ContextNodeBaseCollection subTree,
    /** @attribute OutAttribute */ /** @ref */int start,
    /** @attribute OutAttribute */ /** @ref */int length
)
public function GetTextRangeFromNodes(
    subTree : ContextNodeBaseCollection, 
    start : int, 
    length : int
)

参数

  • start
    类型:System.Int32%
    此方法返回时,start 参数包含指示文本范围起点的 32 位有符号整数。该参数未经初始化即被传递。
  • length
    类型:System.Int32%
    此方法返回时,length 参数包含指示文本范围长度的 32 位有符号整数。该参数未经初始化即被传递。

备注

如果 subTree 包含不连续的 ContextNodeBase 对象,则此方法返回涵盖所有上下文节点的最小文本范围。

如果 nodesToSearch 包含不与 ContextNodeBase 关联的上下文节点,则此方法引发 System.ArgumentException

平台

Windows Vista, Windows XP SP2, Windows Server 2003

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

版本信息

.NET Framework

受以下版本支持:3.0

另请参见

参考

ContextNodeBase 类

ContextNodeBase 成员

System.Windows.Ink.AnalysisCore 命名空间