Version

SyntaxNode Class Members

The following tables list the members exposed by SyntaxNode.

Public Properties
 NameDescription
Public PropertyChildCountReturns the count of child nodes (read-only).  
Public PropertyContainsDiagnosticsGets the value indicating whether GetDiagnostics will return any NodeDiagnostic values representing diagnostic information within the sub-tree rooted at the SyntaxNode.  
Public PropertyFullSnapshotSpanGets the Infragistics.Documents.SnapshotSpan occupied by the SyntaxNode.  
Public PropertyFullSpanGets the full TextSpan occupied by the SyntaxNode.  
Public PropertyHasAnnotationsGets the value indicating whether the node has associated annotations.  
Public PropertyHasLeadingIgnoredContentGets the value indicating whether this node has ignored content before it.  
Public PropertyIndexReturns the zero-based index of this node in its Parent's children (read-only).  
Public PropertyIsIgnoredContentGets the value indicating whether the node represents structured ignored content.  
Public PropertyIsMissingGets the value indicating whether the node is a missing from the text and was inserted while parsing.  
Public PropertyIsSkippedGets the value indicating whether the node was skipped while parsing because it was not expected in its context.  
Public PropertyIsTokenNodeGets the value indicating whether the node represents a Token from the document.  
Public PropertyLanguageReturns the associated Language (read-only)  
Public PropertyLeadingIgnoredContentLengthGets the number of ignored characters before the node.  
Public PropertyLengthReturns the aggregate string length (read-only)  
Public PropertyOverallOffsetReturns the overall offset of the node within the entire tree (read-only)  
Public PropertyParentReturns the parent node (read-only)  
Public PropertyRelativeOffsetReturns the relatve offset of the node within its parent node (read-only)  
Public PropertySnapshotSpanGets the Infragistics.Documents.SnapshotSpan occupied by the SyntaxNode.  
Public PropertySpanGets the TextSpan occupied by the SyntaxNode.  
Public PropertySymbolReturns the Symbol which produced this token.  
Public PropertySyntaxTreeGets the SyntaxTree in which the SyntaxNode or null if it does not exist in a SyntaxTree.  
Public Methods
 NameDescription
Public MethodAncestorsGets the collection of ancestor nodes leading up from the SyntaxNode.  
Public MethodAncestorsAndSelfGets the collection of the SyntaxNode and its ancestor nodes leading up from the node.  
Public MethodChildrenOverloaded. Gets the list of direct child nodes of the SyntaxNode.  
Public MethodDescendantsOverloaded. Gets the list of descendent nodes of the SyntaxNode.  
Public MethodDescendantsAndSelfOverloaded. Gets the list of the SyntaxNode and its descendent nodes.  
Public MethodEqualsCompares the specified object to this object to see if they are equivalent.  
Public MethodGetAnnotatedNodesOverloaded. Returns an enumerator for all nodes within the sub-tree rooted at this node with annotations.  
Public MethodGetAnnotationsOverloaded. Returns an enumerator for all annotation values of the node.  
Public MethodGetChildReturns the child node at a specific index.  
Public MethodGetDiagnosticsReturns an enumerator for all descendant NodeDiagnostic values of the node.  
Public MethodGetFirstTokenNodeReturns the first node in this node's sub-tree which represents a Token.  
Public MethodGetHashCodeReturns the hash code of the object.  
Public MethodGetLastTokenNodeReturns the last node in this node's sub-tree which represents a Token.  
Public MethodGetLeadingIgnoredContentReturns the list of all leading ignored content before this node.  
Public MethodGetTextGets the text of this node and all of its descendants.  
Public MethodGetTokenGets the Token associated with the SyntaxNode if the node represents a token.  
Public MethodToStringReturns the string representation of this object.  
See Also