C# Класс Rubberduck.VBEditor.Extensions.ProjectExtensions

Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Описание методов

ComponentNames() публичный статический Метод

public static ComponentNames ( this project ) : IEnumerable
project this
Результат IEnumerable

ExportSourceFiles() публичный статический Метод

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.
Результат void

ImportSourceFiles() публичный статический Метод

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.
Результат void

RemoveAllComponents() публичный статический Метод

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
Результат void