共用方式為


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 位元帶正負號的整數 (Signed Integer),這個整數表示文字範圍的起點。這個參數是以未初始化的狀態傳遞。
  • 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 命名空間