C# Class Rubberduck.VBEditor.Extensions.VBComponentsExtensions

Mostra file Open project: retailcoder/Rubberduck

Public Methods

Method 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 method

public static ImportSourceFile ( this components, string filePath ) : void
components this
filePath string
return void

RemoveSafely() public static method

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
return void