Share via


_DTE.ItemOperations Property

Gets the ItemOperations object.

Namespace:  EnvDTE
Assembly:  EnvDTE (in EnvDTE.dll)

Syntax

'Declaration
ReadOnly Property ItemOperations As ItemOperations
'Usage
Dim instance As _DTE 
Dim value As ItemOperations 

value = instance.ItemOperations
ItemOperations ItemOperations { get; }
property ItemOperations^ ItemOperations {
    ItemOperations^ get ();
}
function get ItemOperations () : ItemOperations

Property Value

Type: EnvDTE.ItemOperations
An ItemOperations object.

Remarks

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

Examples

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

.NET Framework Security

See Also

Reference

_DTE Interface

_DTE Members

EnvDTE Namespace