C# Class Rubberduck.VBEditor.Extensions.VBComponentsExtensions

Afficher le fichier Open project: retailcoder/Rubberduck

Méthodes publiques

Méthode Description
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.

Method Details

ImportSourceFile() public static méthode

public static ImportSourceFile ( this components, string filePath ) : void
components this
filePath string
Résultat void

RemoveSafely() public static méthode

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
Résultat void