DTE2.ItemOperations Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the ItemOperations object.
public:
property EnvDTE::ItemOperations ^ ItemOperations { EnvDTE::ItemOperations ^ get(); };
public:
property EnvDTE::ItemOperations ^ ItemOperations { EnvDTE::ItemOperations ^ get(); };
[System.Runtime.InteropServices.DispId(233)]
public EnvDTE.ItemOperations ItemOperations { [System.Runtime.InteropServices.DispId(233)] get; }
[<System.Runtime.InteropServices.DispId(233)>]
[<get: System.Runtime.InteropServices.DispId(233)>]
member this.ItemOperations : EnvDTE.ItemOperations
Public ReadOnly Property ItemOperations As ItemOperations
Property Value
An ItemOperations object.
Implements
- Attributes
Examples
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
Remarks
The ItemOperations object includes members that are specific to populating dialog boxes such as the Add Item, Open File, and New File dialogs.