Table of Contents

Class LanguageService

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

Represents a base class for support language-specific code manipulation, used in the Alternet.FormDesigner control.

public class LanguageService
Inheritance
LanguageService
Derived

Constructors

LanguageService(Language)

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

Properties

Language

Gets or sets a supported language by this service.

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.

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.