This documentation is archived and is not being maintained.

CreateEditPoint Method (General Extensibility)

Visual Studio .NET 2003

Creates and returns an EditPoint object at a specified location or, if no location is given, at the beginning of the document.

[Visual Basic .NET]
Public Function CreateEditPoint() As EditPoint
[Visual Basic 6]
Function CreateEditPoint() As EditPoint
HRESULT __stdcall CreateEditPoint(
   /* [out, retval] */ EditPoint** retVal
public EditPoint CreateEditPoint();
[JScript .NET]
public function CreateEditPoint() : EditPoint

Return Value

Returns an EditPoint object.


Creates and returns a new EditPoint object at the same physical location as the text point. If the object is a virtual point, then the resulting edit point has the same LineCharOffset value as the object.


The following code creates an edit point in an open text document:

Sub CreateEditPointExample()
  Dim objTD As TextDocument
  Dim objEP As EditPoint

  objTD = DTE.ActiveDocument.Object("TextDocument")
  objEP = objTD.StartPoint.CreateEditPoint
  objEP.Insert "Hello"
End Sub

See Also

Applies To: EditPoint Object | TextPoint Object | VirtualPoint Object