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

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

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

Метод Описание
ImportSourceFile ( this components, string filePath ) : void
RemoveSafely ( this components, VBComponent component ) : void

Safely removes the specified VbComponent from the collection.

UserForms, Class modules, and Standard modules are completely removed from the project. Since Document type components can't be removed through the VBE, all code in its CodeModule are deleted instead.

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

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

public static ImportSourceFile ( this components, string filePath ) : void
components this
filePath string
Результат void

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

Safely removes the specified VbComponent from the collection.
UserForms, Class modules, and Standard modules are completely removed from the project. Since Document type components can't be removed through the VBE, all code in its CodeModule are deleted instead.
public static RemoveSafely ( this components, VBComponent component ) : void
components this
component VBComponent
Результат void