Gets or sets the ending cell of the characters currently selected.              
             
             
            
Syntax
| Visual Basic (Declaration) |   | 
|---|
Public Property End As Point  | 
 
| Visual Basic (Usage) |  Copy Code | 
|---|
Dim instance As Selection
Dim value As Point
 
instance.End = value
 
value = instance.End  | 
 
| C# |   | 
|---|
public Point End {get; set;} | 
 
| Managed Extensions for C++ |   | 
|---|
public: __property Point get_End();
public: __property void set_End( 
   Point value
);  | 
 
| C++/CLI |   | 
|---|
public:
property Point End {
   Point get();
   void set (    Point value);
} | 
 
             
             
            Property Value
              A Point specifying the last character selected. The default value is (-1, -1) (no selection).              
  
             
             
            
Example
        The following example demonstrates how to print the display.         
             
| C# |  Copy Code | 
|---|
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;
} | 
 
| Visual Basic |  Copy Code | 
|---|
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  | 
 
  
            
            Remarks
            
Requirements
Target Platforms: Microsoft .NET Framework 2.0
 
            
            
See Also