DTE2.ItemOperations Property
Gets the ItemOperations object.
Namespace: EnvDTE80
Assembly: EnvDTE80 (in envdte80.dll)
Assembly: EnvDTE80 (in envdte80.dll)
Sub ItemOperationsExample() Dim objTextDoc As TextDocument Dim objEP As EditPoint ' Create a new text document. Call DTE2.ItemOperations.NewFile("General\Text File") 'Get a handle to the new document. Set objTextDoc = DTE2.ActiveDocument.Object("TextDocument") Set objEP = objTextDoc.StartPoint.CreateEditPoint 'Create an EditPoint and add some text. objEP.Insert "A test sentence." End Sub