ContextNodeBaseCollection.Add-Methode
Fügt der ContextNodeBaseCollection-Auflistung ein ContextNodeBase-Objekt hinzu.
Namespace: System.Windows.Ink.AnalysisCore
Assembly: IACore (in IACore.dll)
Syntax
'Declaration
Public Function Add ( _
nodeToAdd As ContextNodeBase _
) As Integer
'Usage
Dim instance As ContextNodeBaseCollection
Dim nodeToAdd As ContextNodeBase
Dim returnValue As Integer
returnValue = instance.Add(nodeToAdd)
public int Add(
ContextNodeBase nodeToAdd
)
public:
int Add(
ContextNodeBase^ nodeToAdd
)
public int Add(
ContextNodeBase nodeToAdd
)
public function Add(
nodeToAdd : ContextNodeBase
) : int
Parameter
- nodeToAdd
Typ: System.Windows.Ink.AnalysisCore.ContextNodeBase
Das der ContextNodeBaseCollection hinzuzufügende ContextNodeBase-Objekt.
Rückgabewert
Typ: System.Int32
Der Index, an dem der ContextNodeBase hinzugefügt wird. Wenn nodeToAdd bereits in der Auflistung vorhanden ist, gibt Add den Index seiner Position in der Auflistung zurück. Wenn Add den ContextNodeBase nicht hinzufügen kann, wird -1 zurückgegeben.
Beispiele
Im folgenden Beispiel wird ein neuer ContextNodeBase vom Typ Paragraph von einem InkAnalyzerBase mit dem Namen theInkAnalyzerBase aus erstellt und der ContextNodeBaseCollection mit dem Namen nodes hinzugefügt.
Dim paragraph As ContextNodeBase = _
theInkAnalyzerBase.RootNode.CreateSubNode(System.Windows.Ink.AnalysisCore.ContextNodeTypeBase.Paragraph)
nodes.Add(paragraph)
ContextNodeBase paragraph = theInkAnalyzer.RootNode.CreateSubNode(System.Windows.Ink.AnalysisCore.ContextNodeTypeBase.Paragraph);
nodes.Add(paragraph);
Plattformen
Windows Vista, Windows XP SP2, Windows Server 2003
.NET Framework und .NET Compact Framework unterstützen nicht alle Versionen sämtlicher Plattformen. Eine Liste der unterstützten Versionen finden Sie unter Systemanforderungen für .NET Framework.
Versionsinformationen
.NET Framework
Unterstützt in: 3.0
Siehe auch
Referenz
ContextNodeBaseCollection-Klasse