ITextViewLineCollection Interface
Provides the base requirements for a read-only collection of ITextViewLine objects.
public interface ITextViewLineCollection : IList<ITextViewLine>, ICollection<ITextViewLine>, IEnumerable<ITextViewLine>, IEnumerable
Properties
FirstVisiblePosition
Gets the TextPosition of the first visible character or intra-text adornment.
TextPosition FirstVisiblePosition { get; }
Property Value
- TextPosition:
The TextPosition of the first visible character or intra-text adornment.
FullyVisibleCount
Gets the number of lines that are fully visible, including any virtual view lines that might fill the text area below the last real view line.
int FullyVisibleCount { get; }
Property Value
- Int32:
The number of lines that are fully visible, including any virtual view lines that might fill the text area below the last real view line.
Remarks
Since this property's value might count virtual view lines that aren't in this collection, its count could be larger than the number of view lines in the collection. This scenario can occur when the view is scrolled such that there is text area space below the last real view line.
MaxWidth
Gets the maximum width of the lines in this collection.
SnapshotRange
Gets the TextSnapshotRange that contains the text range rendered with the view lines.
TextSnapshotRange SnapshotRange { get; }
Property Value
- TextSnapshotRange:
The TextSnapshotRange that contains the text range rendered with the view lines.
Extension Methods
- ListExtensions.AddRange<ITextViewLine>(IEnumerable<ITextViewLine>)
- ListExtensions.InsertRange<ITextViewLine>(Int32, IEnumerable<ITextViewLine>)
- ListExtensions.RemoveAll<ITextViewLine>(Predicate<ITextViewLine>)