In This Article

ITextSnapshotLineCollection Interface

Encapsulates a collection of ITextSnapshotLine objects.

public interface ITextSnapshotLineCollection

Properties

this[int]

Gets the ITextSnapshotLine at the specified index.

[C#] In C#, this property is the indexer for the ITextSnapshotLineCollection class.

ITextSnapshotLine this[int index] { get; }
Parameter Type Description
index int

The index of the ITextSnapshotLine to return.

Property Value

ITextSnapshotLine:

The ITextSnapshotLine at the specified index.

See Also

Methods

GetLineTextRange(int)

Returns the TextRange of the specified line, excluding the line terminator.

TextRange GetLineTextRange(int index)
Parameter Type Description
index int

The index of the line to examine.

Returns

TextRange:

The TextRange of the specified line, excluding the line terminator.

See Also

IndexOf(int)

Finds the index of the ITextSnapshotLine that contains the specified offset.

int IndexOf(int offset)
Parameter Type Description
offset int

The offset to look for.

Returns

int:

The index of the ITextSnapshotLine that contains the specified offset.

See Also

See Also