_DTE.ItemOperations _DTE.ItemOperations _DTE.ItemOperations Property


Gets the ItemOperations object.

[get: System.Runtime.InteropServices.DispId(233)]
public EnvDTE.ItemOperations ItemOperations { get; }
member this.ItemOperations : EnvDTE.ItemOperations
Public ReadOnly Property ItemOperations As ItemOperations
Property Value


Sub ItemOperationsExample()  
  Dim objTextDoc As TextDocument  
  Dim objEP As EditPoint  

  'Create a new text document.  
  Call DTE.ItemOperations.NewFile("General\Text File")  
  'Get a handle to the new document.  
  Set objTextDoc = DTE.ActiveDocument.Object("TextDocument")  
  Set objEP = objTextDoc.StartPoint.CreateEditPoint  
  'Create an EditPoint and add some text.  
  objEP.Insert "A test sentence."  
End Sub  


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

Applies to