_DTE.ItemOperations 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取 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 对象。
- 属性
示例
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
注解
ItemOperations对象包括特定于填充对话框的成员,如 "添加项"、"打开文件" 和 "新建文件" 对话框。