Export (0) Print
Expand All

ITextSnapshotLine Interface

Represents a line of text from an ITextSnapshot.

Namespace:  Microsoft.VisualStudio.Text
Assembly:  Microsoft.VisualStudio.Text.Data (in Microsoft.VisualStudio.Text.Data.dll)

public interface ITextSnapshotLine

The ITextSnapshotLine type exposes the following members.

  NameDescription
Public propertyEndGets the SnapshotPoint of the first character past the end of the line, excluding any line break characters.
Public propertyEndIncludingLineBreakThe SnapshotPoint of the first character past the end of the line, including any line break characters.
Public propertyExtentGets the extent of the line, excluding any line break characters.
Public propertyExtentIncludingLineBreakGets the extent of the line, including any line break characters.
Public propertyLengthGets the length of the line, excluding any line break characters.
Public propertyLengthIncludingLineBreakGets the length of the line, including any line break characters.
Public propertyLineBreakLengthGets the length of line break characters (always falls in the range [0..2]).
Public propertyLineNumberGets the 0-based line number of the line.
Public propertySnapshotGets the ITextSnapshot in which the line appears.
Public propertyStartGets the SnapshotPoint of the first character in the line.
Top

  NameDescription
Public methodGetLineBreakTextGets the string consisting of the line break characters (if any) at the end of the line.
Public methodGetTextGets the text of the line, excluding any line break characters.
Public methodGetTextIncludingLineBreakGets the text of the line, including any line break characters.
Top

For more information about text snapshot lines, see the section "A Closer Look at the Text Model and the Text View" in Inside the Editor.

This object is immutable.

Show:
© 2014 Microsoft