InkAnalyzerBase.FindNodesOfType 方法 (Guid, array<Int32[])
傳回指定之型別的 ContextNodeBase 物件,這些物件所包含之筆劃的識別項位於指定的筆劃識別項陣列中。
命名空間: System.Windows.Ink.AnalysisCore
組件: IACore (在 IACore.dll 中)
語法
'宣告
Public Function FindNodesOfType ( _
type As Guid, _
strokeIds As Integer() _
) As ContextNodeBaseCollection
'用途
Dim instance As InkAnalyzerBase
Dim type As Guid
Dim strokeIds As Integer()
Dim returnValue As ContextNodeBaseCollection
returnValue = instance.FindNodesOfType(type, _
strokeIds)
public ContextNodeBaseCollection FindNodesOfType(
Guid type,
int[] strokeIds
)
public:
ContextNodeBaseCollection^ FindNodesOfType(
Guid type,
array<int>^ strokeIds
)
public ContextNodeBaseCollection FindNodesOfType(
Guid type,
int[] strokeIds
)
public function FindNodesOfType(
type : Guid,
strokeIds : int[]
) : ContextNodeBaseCollection
參數
- type
型別:System.Guid
要尋找之內容節點的型別。
- strokeIds
型別:array<System.Int32[]
陣列,包含筆劃識別項。
傳回值
型別:System.Windows.Ink.AnalysisCore.ContextNodeBaseCollection
ContextNodeBaseCollection ,包含指定之型別的內容節點,這些節點所包含之筆劃的識別項位於 strokeIds 中。
備註
如果節點或其中一個子代參考 strokeIds 中指定的筆劃,則這個方法會在傳回值中包含該節點。
範例
下列範例會在 InkAnalyzerBase (theInkAnalyzerBase) 中尋找所有行節點,這些節點包含已在陣列 theStrokeIds 中識別的筆劃。
Dim lineNodes As System.Windows.Ink.AnalysisCore.ContextNodeBaseCollection = _
theInkAnalyzerBase.FindNodesOfType( _
System.Windows.Ink.AnalysisCore.ContextNodeTypeBase.Line, theStrokeIds)
System.Windows.Ink.AnalysisCore.ContextNodeBaseCollection lineNodes =
theInkAnalyzerBase.FindNodesOfType(
System.Windows.Ink.AnalysisCore.ContextNodeTypeBase.Line, theStrokeIds);
平台
Windows Vista, Windows XP SP2, Windows Server 2003
.NET Framework 和 .NET Compact Framework 並不支援各種平台的所有版本。如需支援平台版本的相關資訊,請參閱 .NET Framework 系統需求。
版本資訊
.NET Framework
支援版本:3.0
請參閱
參考
System.Windows.Ink.AnalysisCore 命名空間