TextPoint.CreateEditPoint TextPoint.CreateEditPoint TextPoint.CreateEditPoint TextPoint.CreateEditPoint TextPoint.CreateEditPoint TextPoint.CreateEditPoint Method

Definition

Creates and returns an EditPoint object at the location of the calling object.

public:
 EnvDTE::EditPoint ^ CreateEditPoint();
public:
 EnvDTE::EditPoint ^ CreateEditPoint();
EnvDTE::EditPoint CreateEditPoint();
[System.Runtime.InteropServices.DispId(34)]
public EnvDTE.EditPoint CreateEditPoint ();
abstract member CreateEditPoint : unit -> EnvDTE.EditPoint
Public Function CreateEditPoint () As EditPoint
Returns

Examples

Sub CreateEditPointExample(ByVal dte As DTE2)  

    ' Before running this example, open a text document.  

    ' Append "Hello!" to the active document.  
    Dim textDoc As TextDocument = _  
        CType(dte.ActiveDocument.Object("TextDocument"), TextDocument)  
    textDoc.EndPoint.CreateEditPoint().Insert("Hello!")  

End Sub  
public void CreateEditPointExample(DTE2 dte)  
{  
    // Before running this example, open a text document.  

    // Append "Hello!" to the active document.  
    TextDocument textDoc =   
        (TextDocument)dte.ActiveDocument.Object("TextDocument");  
    textDoc.EndPoint.CreateEditPoint().Insert("Hello!");  
}  

Remarks

CreateEditPoint creates and returns a new EditPoint object at the same physical location as the calling object. If the calling object is a VirtualPoint, then the resulting EditPoint has the same LineCharOffset value as the VirtualPoint.

Applies to