Version

Search Results

ToString Method (TextLocation)

Returns the string representation of this object. Syntax

TextLocation Constructor

Instantiates a new TextLocation Syntax Parameters line The zero-based line offset within the document.character The zero-based character offset within the line. Exceptions Exception Description System.ArgumentOutOfRangeException If line or character is less than 0.

TextSpan Structure

Structure containing an offset and length that identify a run of text within a document Syntax

TextSpan Structure Fields

For a list of all members of this type, see TextSpan members. Public Fields Name Description All Returns a span that represents all the text. Top

TextSpan Structure Members

Public Constructors Public Fields Public Properties Public Methods Public Operators

TextSpan Structure Properties

Public Properties

All Field

Returns a span that represents all the text. Syntax

Contains(Int32) Method

Determines if a offset is contained within this span. Syntax Parameters offset The offset to test. Return Value true is the offset is contained within this span, otherwise false.

Contains(TextSpan) Method

Determines if a span is completely contained within this span. Syntax Parameters span The span to test. Return Value true is the span is completely contained within this span, otherwise false.