Share via


_DTE.ItemOperations 属性

获取 ItemOperations 对象。

命名空间:  EnvDTE
程序集:  EnvDTE(在 EnvDTE.dll 中)

语法

声明
ReadOnly Property ItemOperations As ItemOperations
ItemOperations ItemOperations { get; }
property ItemOperations^ ItemOperations {
    ItemOperations^ get ();
}
abstract ItemOperations : ItemOperations with get
function get ItemOperations () : ItemOperations

属性值

类型:EnvDTE.ItemOperations
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

.NET Framework 安全性

请参阅

参考

_DTE 接口

EnvDTE 命名空间