C# 클래스 Rubberduck.VBEditor.Extensions.VBComponentExtensions

파일 보기 프로젝트 열기: retailcoder/Rubberduck

공개 메소드들

메소드 설명
ExportAsSourceFile ( this component, string directoryPath ) : string

Exports the component to the directoryPath. The file is name matches the component name and file extension is based on the component's type.

FileExtension ( this componentType ) : string

Returns the proper file extension for the Component Type.

Document classes should properly have a ".cls" file extension. However, because they cannot be removed and imported like other component types, we need to make a distinction.

비공개 메소드들

메소드 설명
ExportDocumentModule ( VBComponent component, string path ) : void
ExportToTempFile ( this component ) : string
ExportUserFormModule ( VBComponent component, string path ) : void

메소드 상세

ExportAsSourceFile() 공개 정적인 메소드

Exports the component to the directoryPath. The file is name matches the component name and file extension is based on the component's type.
public static ExportAsSourceFile ( this component, string directoryPath ) : string
component this The component to be exported to the file system.
directoryPath string Destination Path for the resulting source file.
리턴 string

FileExtension() 공개 정적인 메소드

Returns the proper file extension for the Component Type.
Document classes should properly have a ".cls" file extension. However, because they cannot be removed and imported like other component types, we need to make a distinction.
public static FileExtension ( this componentType ) : string
componentType this
리턴 string