EditPoint2 Interface
Allows you to manipulate text as data in text buffers.
Namespace: EnvDTE80
Assembly: EnvDTE80 (in EnvDTE80.dll)
Syntax
'Declaration
<GuidAttribute("136AFA9F-F243-4ABB-A8F8-4C2D26C47163")> _
Public Interface EditPoint2 _
Inherits EditPoint
'Usage
Dim instance As EditPoint2
[GuidAttribute("136AFA9F-F243-4ABB-A8F8-4C2D26C47163")]
public interface EditPoint2 : EditPoint
[GuidAttribute(L"136AFA9F-F243-4ABB-A8F8-4C2D26C47163")]
public interface class EditPoint2 : EditPoint
public interface EditPoint2 extends EditPoint
Remarks
EditPoint2 objects are similar to TextSelection objects, except that they operate on data in the text buffer rather than on text displayed in a code editor. The difference is that text in the buffer is not affected by global editor states, such as word wrapping and virtual spaces.
Any operation that attempts to modify a text document fails if it affects any characters that are contained in a read-only block, or if the document itself is read-only.
Examples
Sub EditPointExample()
'Before running this example, open a text document.
Dim objTD As TextDocument
Dim objEP As EditPoint
objTD = DTE.ActiveDocument.Object("TextDocument")
objEP = objTD.StartPoint.CreateEditPoint
objEP.Insert "Hello"
End Sub