Freigeben über


Source.GetLine(Int32) Method

Definition

Gets the text on the specified line.

public:
 System::String ^ GetLine(int line);
public:
 Platform::String ^ GetLine(int line);
std::wstring GetLine(int line);
public string GetLine (int line);
member this.GetLine : int -> string
Public Function GetLine (line As Integer) As String

Parameters

line
Int32

The line number for which to get the text.

Returns

The text at the specified line number. This could be an empty string.

Remarks

This method forwards the call to the GetLineText method on the IVsTextLines object passed to the Source class constructor. An exception is thrown if the line number is out of range.

Applies to