ItemOperations.NewFile Method
Creates a file as though you invoked a New File command in the integrated development environment (IDE).
Namespace: EnvDTE
Assembly: EnvDTE (in envdte.dll)
Assembly: EnvDTE (in envdte.dll)
Window NewFile ( [OptionalAttribute] [InAttribute] string Item, [OptionalAttribute] [InAttribute] string Name, [OptionalAttribute] [InAttribute] string ViewKind )
Window NewFile ( /** @attribute InAttribute() */ /** @attribute OptionalAttribute() */ String Item, /** @attribute InAttribute() */ /** @attribute OptionalAttribute() */ String Name, /** @attribute InAttribute() */ /** @attribute OptionalAttribute() */ String ViewKind )
Parameters
- Item
Required. The virtual path to the item based on the tree nodes from the left pane of the dialog box and the item name from the right pane.
- Name
Optional. The name you type in the Default Name box in the dialog box. This name also becomes the suggested Save As name when you save the document.
- ViewKind
Optional. A ConstantsvsViewKind* constant specifying the type of view in which to create the file.