Export (0) Print
Expand All
Cut
Run
Expand Minimize

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
[C++]
HRESULT __stdcall CreateEditPoint(
   /* [out, retval] */ EditPoint** retVal
);
[C#]
public EditPoint CreateEditPoint();
[JScript .NET]
public function CreateEditPoint() : EditPoint

Return Value

Returns an EditPoint object.

Remarks

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.

Example

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

Show:
© 2015 Microsoft