Share via


ModelSpan Class

Provides a model-aware Span class for ASP.NET MVC.

Inheritance Hierarchy

System.Object
  System.Web.Razor.Parser.SyntaxTree.SyntaxTreeNode
    System.Web.Razor.Parser.SyntaxTree.Span
      System.Web.Razor.Parser.SyntaxTree.CodeSpan
        System.Web.Mvc.Razor.ModelSpan

Namespace:  System.Web.Mvc.Razor
Assembly:  System.Web.Mvc (in System.Web.Mvc.dll)

Syntax

'Declaration
Public Class ModelSpan _
    Inherits CodeSpan
'Usage
Dim instance As ModelSpan
public class ModelSpan : CodeSpan
public ref class ModelSpan : public CodeSpan
public class ModelSpan extends CodeSpan

The ModelSpan type exposes the following members.

Constructors

  Name Description
Public method ModelSpan Initializes a new instance of the ModelSpan class.

Top

Properties

  Name Description
Public property AcceptedCharacters (Inherited from Span.)
Public property AutoCompleteString (Inherited from Span.)
Public property Content (Inherited from Span.)
Public property Hidden (Inherited from Span.)
Public property IsBlock (Inherited from Span.)
Public property Kind (Inherited from Span.)
Public property Length (Inherited from Span.)
Public property ModelTypeName Gets the type name of the model.
Public property Next (Inherited from Span.)
Public property Offset (Inherited from Span.)
Public property Parent (Inherited from SyntaxTreeNode.)
Public property Previous (Inherited from Span.)
Public property Start (Inherited from Span.)

Top

Methods

  Name Description
Public method Accept (Inherited from Span.)
Public method ApplyChange(TextChange) (Inherited from Span.)
Public method ApplyChange(TextChange, Boolean) (Inherited from Span.)
Protected method CanAcceptChange (Inherited from CodeSpan.)
Public method Equals Gets a value that indicates whether the current ModelSpan object is identical to the specified object. (Overrides Span.Equals(Object).)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode Returns the hash code of the ModelSpan object. (Overrides Span.GetHashCode().)
Protected method GetOldText (Inherited from Span.)
Protected method GetSpanTypeName (Inherited from Span.)
Public method GetType (Inherited from Object.)
Protected method IsAtEndOfFirstLine (Inherited from Span.)
Protected method IsAtEndOfSpan (Inherited from Span.)
Protected method IsEndDeletion (Inherited from Span.)
Protected method IsEndInsertion (Inherited from Span.)
Protected method IsEndReplace (Inherited from Span.)
Protected method MemberwiseClone (Inherited from Object.)
Public method OwnsChange (Inherited from Span.)
Public method ToString (Inherited from CodeSpan.)
Public method TryMergeWith (Inherited from Span.)

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.Mvc.Razor Namespace