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

NameDescription
System_CAPS_pubpropertyEnd

Gets the SnapshotPoint of the first character past the end of the line, excluding any line break characters.

System_CAPS_pubpropertyEndIncludingLineBreak

The SnapshotPoint of the first character past the end of the line, including any line break characters.

System_CAPS_pubpropertyExtent

Gets the extent of the line, excluding any line break characters.

System_CAPS_pubpropertyExtentIncludingLineBreak

Gets the extent of the line, including any line break characters.

System_CAPS_pubpropertyLength

Gets the length of the line, excluding any line break characters.

System_CAPS_pubpropertyLengthIncludingLineBreak

Gets the length of the line, including any line break characters.

System_CAPS_pubpropertyLineBreakLength

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

System_CAPS_pubpropertyLineNumber

Gets the 0-based line number of the line.

System_CAPS_pubpropertySnapshot

Gets the ITextSnapshot in which the line appears.

System_CAPS_pubpropertyStart

Gets the SnapshotPoint of the first character in the line.

NameDescription
System_CAPS_pubmethodGetLineBreakText()

Gets the string consisting of the line break characters (if any) at the end of the line.

System_CAPS_pubmethodGetText()

Gets the text of the line, excluding any line break characters.

System_CAPS_pubmethodGetTextIncludingLineBreak()

Gets the text of the line, including any line break characters.

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.

Return to top
Show: