PowerTCP Emulation for .NET
Start Property
Example 




Gets or sets the starting cell of the characters currently selected.
Syntax
Public Property Start As Point
Dim instance As Selection
Dim value As Point
 
instance.Start = value
 
value = instance.Start
public Point Start {get; set;}
public: __property Point get_Start();
public: __property void set_Start( 
   Point value
);
public:
property Point Start {
   Point get();
   void set (    Point value);
}

Property Value

A Point specifying the first character selected. The default value is (-1, -1) (no selection).
Remarks

This property can index into the scrollback buffer, so if Vt.BufferRows is 72, the Point (0, 72) would be used to specify the first column in the first row of the screen buffer.

Example
The following example demonstrates how to print the display.
private string printScreen(bool useSelectedText)
{
	//Select display window to print and return
	vt1.Selection.Start = new Point(vt1.BufferRows, 0);
	vt1.Selection.End = new Point(vt1.BufferRows + vt1.Rows, vt1.Columns);

	//No difference in this case (when the entire display is selected)
	if (useSelectedText)
		vt1.Selection.Print();
	else
		vt1.PrintScreen();

	return vt1.Selection.Text;
}
Private Function printScreen(ByVal useSelectedText As Boolean) As String
	'Select display window to print and return
	vt1.Selection.Start = New Point(vt1.BufferRows, 0)
	vt1.Selection.End = New Point(vt1.BufferRows + vt1.Rows, vt1.Columns)

	'No difference in this case (when the entire display is selected)
	If useSelectedText Then
		vt1.Selection.Print()
	Else
		vt1.PrintScreen()
	End If

	Return vt1.Selection.Text
End Function
See Also

Reference

Selection Class
Selection Members


PowerTCP Emulation for .NET Documentation Version 4.7
© 2018 Dart Communications. All Rights Reserved.
Send comments on this topic