Span Class

This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code. Represents a Razor parse tree node that contains the all the content of a block node.

Inheritance Hierarchy

System.Object
  System.Web.Razor.Parser.SyntaxTree.SyntaxTreeNode
    System.Web.Razor.Parser.SyntaxTree.Span

Namespace:  System.Web.Razor.Parser.SyntaxTree
Assembly:  System.Web.Razor (in System.Web.Razor.dll)

Syntax

'Declaration
Public Class Span _
    Inherits SyntaxTreeNode
'Usage
Dim instance As Span
public class Span : SyntaxTreeNode
public ref class Span : public SyntaxTreeNode
type Span =  
    class 
        inherit SyntaxTreeNode 
    end
public class Span extends SyntaxTreeNode

The Span type exposes the following members.

Constructors

  Name Description
Public method Span This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code. Initializes a new instance of the Span class.

Top

Properties

  Name Description
Public property CodeGenerator This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code. Gets or sets the code generator for the span.
Public property Content This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code. Gets or sets the content of the span.
Public property EditHandler This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code. Gets or sets the handler for span edits.
Public property IsBlock This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code. Gets or sets a value that indicates whether this node is a block node. (Overrides SyntaxTreeNode.IsBlock.)
Public property Kind This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code. Gets or sets the kind for this span.
Public property Length This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code. Gets or sets the length of the span content. (Overrides SyntaxTreeNode.Length.)
Public property Next This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code. Gets or sets the next span in the tree node.
Public property Parent This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Gets the parent tree node of the current tree node. (Inherited from SyntaxTreeNode.)
Public property Previous This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code. Gets or sets the previous span in the tree node.
Public property Start This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code. Gets or sets the start character location of the span. (Overrides SyntaxTreeNode.Start.)
Public property Symbols This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code. Gets or sets the symbols used to generate the code for the span.

Top

Methods

  Name Description
Public method Accept This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code. Accepts visit from the specified visitor. (Overrides SyntaxTreeNode.Accept(ParserVisitor).)
Public method Change This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code. Changes the span builder for this span.
Public method ChangeStart This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code. Sets the start character location of this span.
Public method Equals This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code. Determines whether the specified object is equal to this span. (Overrides Object.Equals(Object).)
Public method EquivalentTo This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code. Determines whether the specified node is equivalent to this span. (Overrides SyntaxTreeNode.EquivalentTo(SyntaxTreeNode).)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code. Returns the hash code for this current span. (Overrides Object.GetHashCode().)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public method ReplaceWith This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code. Replaces the span builder for this span with the specified span builder.
Public method ToString This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code. Returns the string representation of this current span. (Overrides Object.ToString().)

Top

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

System.Web.Razor.Parser.SyntaxTree Namespace