DTE2.ItemOperations 属性

定义

获取 ItemOperations 对象。

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

属性值

ItemOperations

一个 ItemOperations 对象。

实现

属性

示例

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  

注解

ItemOperations对象包括特定于填充对话框的成员,如 "添加项"、"打开文件" 和 "新建文件" 对话框。

适用于