C# Class Rubberduck.VBEditor.Extensions.ProjectExtensions

Afficher le fichier Open project: retailcoder/Rubberduck

Méthodes publiques

Méthode Description
ComponentNames ( this project ) : IEnumerable
ExportSourceFiles ( this project, string directoryPath ) : void

Exports all code modules in the VbProject to a destination directory. Files are given the same name as their parent code Module name and file extensions are based on what type of code Module it is.

ImportSourceFiles ( this project, string filePath ) : void

Imports all source code files from target directory into project.

Only files with extensions "cls", "bas, "frm", and "doccls" are imported. It is the callers responsibility to remove any existing components prior to importing.

RemoveAllComponents ( this project ) : void

Removes All VbComponents from the VbProject.

Document type Components cannot be physically removed from a project through the VBE. Instead, the code will simply be deleted from the code Module.

Method Details

ComponentNames() public static méthode

public static ComponentNames ( this project ) : IEnumerable
project this
Résultat IEnumerable

ExportSourceFiles() public static méthode

Exports all code modules in the VbProject to a destination directory. Files are given the same name as their parent code Module name and file extensions are based on what type of code Module it is.
public static ExportSourceFiles ( this project, string directoryPath ) : void
project this The to be exported to source files.
directoryPath string The destination directory path.
Résultat void

ImportSourceFiles() public static méthode

Imports all source code files from target directory into project.
Only files with extensions "cls", "bas, "frm", and "doccls" are imported. It is the callers responsibility to remove any existing components prior to importing.
public static ImportSourceFiles ( this project, string filePath ) : void
project this
filePath string Directory path containing the source files.
Résultat void

RemoveAllComponents() public static méthode

Removes All VbComponents from the VbProject.
Document type Components cannot be physically removed from a project through the VBE. Instead, the code will simply be deleted from the code Module.
public static RemoveAllComponents ( this project ) : void
project this
Résultat void