This topic has not yet been rated - Rate this topic

DTE2.ItemOperations Property

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Gets the ItemOperations object.

Namespace:  EnvDTE80
Assembly:  EnvDTE80 (in EnvDTE80.dll)
ItemOperations ItemOperations { get; }

Property Value

Type: EnvDTE.ItemOperations
An ItemOperations object.

The ItemOperations object includes members that are specific to populating dialog boxes such as the Add Item, Open File, and New File dialogs.

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
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.