Share via


DTE2.ItemOperations プロパティ

ItemOperations オブジェクトを取得します。

名前空間:  EnvDTE80
アセンブリ:  EnvDTE80 (EnvDTE80.dll 内)

構文

'宣言
ReadOnly Property ItemOperations As ItemOperations
ItemOperations ItemOperations { get; }
property ItemOperations^ ItemOperations {
    ItemOperations^ get ();
}
abstract ItemOperations : ItemOperations with get
function get ItemOperations () : ItemOperations

プロパティ値

型 : 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

.NET Framework セキュリティ

  • 直前の呼び出し元に対する完全な信頼。このメンバーは、部分的に信頼されているコードから使用することはできません。詳細については、「部分信頼コードからのライブラリの使用」を参照してください。

参照

関連項目

DTE2 インターフェイス

EnvDTE80 名前空間