Freigeben über


ITextDocumentSnapshotLine Interface

Definition

Provides read access to a line in an immutable version of a document in the file system, in memory in this Service Hub extension, or remoted from the host Visual Studio.

public interface ITextDocumentSnapshotLine
type ITextDocumentSnapshotLine = interface
Public Interface ITextDocumentSnapshotLine

Properties

Document

The immutable document version in which this line appears.

LineBreakLength

Length of line break characters (always falls in the range [0..2]).

LineNumber

The 0-origin line number of the line.

Text

Gets a TextRange for the line, excluding any line break characters.

TextIncludingLineBreak

Gets a TextRange for the line, including any line break characters.

Methods

GetLineBreakText()

The string consisting of the line break characters (if any) at the end of the line. Has zero length for the last line in the buffer.

Applies to