Not
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
Adds a ContextNode object to the ContextNodeCollection.
Namespace: Microsoft.Ink
Assembly: Microsoft.Ink.Analysis (in Microsoft.Ink.Analysis.dll)
Syntax
'Declaration
Public Function Add ( _
nodeToAdd As ContextNode _
) As Integer
'Usage
Dim instance As ContextNodeCollection
Dim nodeToAdd As ContextNode
Dim returnValue As Integer
returnValue = instance.Add(nodeToAdd)
public int Add(
ContextNode nodeToAdd
)
public:
int Add(
ContextNode^ nodeToAdd
)
public function Add(
nodeToAdd : ContextNode
) : int
Parameters
nodeToAdd
Type: Microsoft.Ink.ContextNodeThe ContextNode object to add to the ContextNodeCollection.
Return Value
Type: System.Int32
This method returns the index at which the ContextNode got added. If the node already exists in the collection, this method returns the index of the node in the collection.
If this method fails, it returns -1.
Examples
The following example creates a new ParagraphNode from an InkAnalyzer, theInkAnalyzer, and adds it to the ContextNodeCollection, nodes.
Dim paragraph As ContextNode = _
theInkAnalyzer.RootNode.CreateSubNode(Microsoft.Ink.ContextNodeType.Paragraph)
nodes.Add(paragraph)
ContextNode paragraph =
theInkAnalyzer.RootNode.CreateSubNode(Microsoft.Ink.ContextNodeType.Paragraph);
nodes.Add(paragraph);
Platforms
Windows 7, Windows Vista, Windows Server 2008 R2, Windows Server 2008
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Version Information
.NET Framework
Supported in: 3.0