ITextViewLineNumberProvider Interface
Provides the base requirements for an object that determines the number text to display in a text view's line number margin.
public interface ITextViewLineNumberProvider
Methods
GetLargestLineNumberText(ITextView)
Returns the largest line number text string that can be displayed for the specified view.
string GetLargestLineNumberText(ITextView view)
Parameter | Type | Description |
---|---|---|
view | ITextView | The ITextView to examine. |
Returns
- string:
The largest line number text string that can be displayed for the specified view.
Remarks
This method aids in determining how wide a line number margin must be to support displaying all of a view's line numbers.
GetLineNumberText(ITextViewLine)
Returns the line number text string to display in a line number margin for the specified view line.
string GetLineNumberText(ITextViewLine viewLine)
Parameter | Type | Description |
---|---|---|
viewLine | ITextViewLine | The ITextViewLine to examine. |
Returns
- string:
The line number text string to display in a line number margin for the specified view line.