Freigeben über


ContextNodeBase.GetTextRangeFromNodes Method

Finds the text range in the recognized string that corresponds to a collection of context nodes.

Namespace: System.Windows.Ink.AnalysisCore
Assembly: IACore (in iacore.dll)

Syntax

'Declaration
Public Sub GetTextRangeFromNodes ( _
    subTree As ContextNodeBaseCollection, _
    <OutAttribute> ByRef start As Integer, _
    <OutAttribute> ByRef length As Integer _
)
'Usage
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
)
Not applicable.

Parameters

  • subTree
    The collection of context nodes for which to find the text range.
  • start
    When this method returns, the start parameter contains a 32-bit signed integer that indicates the start of the text range. This parameter is passed uninitialized.
  • length
    When this method returns, the length parameter contains a 32-bit signed integer that indicates the length of the text range. This parameter is passed uninitialized.

Remarks

If subTree contains ContextNodeBase objects that are not consecutive, then this method returns the smallest text range that covers all of the context nodes.

This method throws a System.ArgumentException when nodesToSearch contains a context node that is not associated with the ContextNodeBase.

Platforms

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

Version Information

.NET Framework

Supported in: 3.0

See Also

Reference

ContextNodeBase Class
ContextNodeBase Members
System.Windows.Ink.AnalysisCore Namespace