Share via


Span Class

Definition

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.

public class Span : System.Web.Razor.Parser.SyntaxTree.SyntaxTreeNode
type Span = class
    inherit SyntaxTreeNode
Public Class Span
Inherits SyntaxTreeNode
Inheritance

Constructors

Span(SpanBuilder)

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.

Properties

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.

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.

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.

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.

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.

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.

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.

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)
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.

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.

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.

Methods

Accept(ParserVisitor)

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.

Change(Action<SpanBuilder>)

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.

ChangeStart(SourceLocation)

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.

Equals(Object)

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.

EquivalentTo(SyntaxTreeNode)

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.

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.

ReplaceWith(SpanBuilder)

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.

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.

Applies to