TextBox::GetLineText Method (Int32)

 

Returns the text that is currently displayed on the specified line.

Namespace:   System.Windows.Controls
Assembly:  PresentationFramework (in PresentationFramework.dll)

public:
String^ GetLineText(
	int lineIndex
)

Parameters

lineIndex
Type: System::Int32

The zero-based line index for which to retrieve the currently displayed text.

Return Value

Type: System::String^

A string containing a copy of the text currently visible on the specified line.

.NET Framework
Available since 3.0
Return to top
Show: