Table of Contents

Class VisualBasicLanguageService

Namespace
Alternet.FormDesigner.WinForms.Roslyn
Assembly
Alternet.FormDesigner.Roslyn.v10.dll

Represents a class for support Visual Basic code manipulation, used in the Alternet.FormDesigner control.

public class VisualBasicLanguageService : LanguageService
Inheritance
VisualBasicLanguageService

Constructors

VisualBasicLanguageService(Language)

Initializes a new instance of the VisualBasicLanguageService class with specified language.

Methods

CreateCodeProvider(IServiceProvider)

Creates an object that provides access to instances of code generator and code compiler.

CreateEventBindingService(IServiceContainer, IFormDesignerDataSource, Func<NavigateToUserMethodRequestedEventArgs, bool>)

Creates an additional service for registering event handlers for component events.

CreateParser(IServiceProvider, DesignerReferencedAssemblies, IEnumerable<DesignerAssemblyResources>, DesignerImportedNamespaces, IDesignedComponentAssemblyProvider)

Creates an object used to provide syntax analysis for the form designer code and generates a parsed representation.

GetAssemblyResourcesParameters(out string, out string)

Determines parameters of the assembly resources.

GetDesignedClassName(string)

Determines the name of the form designer class.

GetResourceFileName(string, string)

Determines a name of the resource file.

GetRootNamespaceFromProjectFile(string)

Determines root namespace for the given project.

Init()

Initializes this service and registers it in the service collection.

PatchSourceCode(string)

Performs post-processing of the source code.

PreprocessCodeDomBeforeSaving(CodeTypeDeclaration)

Provides a some preprocessing of source code before saving form's content.

SaveDifferencesInCode(IFormDesignerDataSource, IFormDesignerLoader, IFormDesignerControl)

Determines the changes in the form source code and saves them if necessary.

StripHeaderComment(string)

Removes the leading header comment.