Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
EditPoint

EditPoint Object

Visual Studio .NET 2003

Allows you to manipulate text as data in text buffers.

DTE

   Documents

      Document

         TextDocument

            EditPoint

[Visual Basic .NET]
Public Interface EditPoint
    Inherits IDispatch
[Visual Basic 6]
Class EditPoint
[C++]
interface EditPoint : IDispatch
[C#]
public interface EditPoint : IDispatch
[JScript .NET]
public interface EditPoint extends IDispatch

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 will fail if it affects any characters that are contained in a read-only block, or if the document itself is read-only.

Requirements

Namespace: EnvDTE

File: dte.tlb

Example

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

See Also

Properties, Events, and Methods | TextPoint Object | CreateEditPoint Method (General Extensibility) | EditPoint Example 1

Show:
© 2015 Microsoft