Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Allows you to manipulate text as data in text buffers.
Namespace: EnvDTE
Assembly: EnvDTE (in EnvDTE.dll)
Syntax
'Declaration
<GuidAttribute("C1FFE800-028B-4475-A907-14F51F19BB7D")> _
Public Interface EditPoint _
Inherits TextPoint
'Usage
Dim instance As EditPoint
[GuidAttribute("C1FFE800-028B-4475-A907-14F51F19BB7D")]
public interface EditPoint : TextPoint
[GuidAttribute(L"C1FFE800-028B-4475-A907-14F51F19BB7D")]
public interface class EditPoint : TextPoint
public interface EditPoint extends TextPoint
Remarks
EditPoint 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