Table of Contents

Class PythonLanguageService

Namespace
Alternet.FormDesigner.Python
Assembly
Alternet.FormDesigner.Python.v9.dll

Represents various methods for Python language service for Form Designer.

public class PythonLanguageService : LanguageService
Inheritance
PythonLanguageService

Constructors

PythonLanguageService(Language)

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

Methods

CreateCodeProvider(IServiceProvider)

Creates a code provider for the Python language.

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

Creates an event binding service for Python language.

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

Creates a new instance of the Alternet.FormDesigner.Python.PythonParser with specified parameters.

GetAssemblyResourcesParameters(out string, out string)

Retrieves default resources directory name and project file extension for the Python project.

GetDesignedClassName(string)

Retrieves form class name from the content of specified file.

Init()

Initializes a new Alternet.FormDesigner.Python.PythonLanguageService object for the Python language and adds it to the language services collection.

PreprocessCodeDomBeforeSaving(CodeTypeDeclaration)

Preprocesses CodeDom representation of the form before saving its content.

SaveDifferencesInCode(IFormDesignerDataSource, IFormDesignerLoader, IFormDesignerControl)

Saves changes from the Form Designer to the Python code.