Table of Contents

Class CodeEditExtensions

Namespace
Alternet.Editor.Roslyn
Assembly
Alternet.Editor.Roslyn.v10.dll

Contains extended functionality for multi-line text edit control.

public static class CodeEditExtensions
Inheritance
CodeEditExtensions

Methods

CloseProject(string, string)

Unregisters the project for the code analysis APIs.

DetectTargetFrameworkFromReferences(string[])

Tries to detect to which framework given references belong.

DetectTechnologyEnvironmentFromReferences(TargetFramework, string[])

Tries to detect to which environment given references belong.

Document(IScriptEdit)

Gets a source code document related to the IScriptEdit.

GetProject(DotNetProject)

Gets project for the code analysis APIs.

InitSyntax()

Initialized the IScriptEdit syntax.

InitSyntax(IScriptEdit)

Initialized the IScriptEdit syntax.

OpenProject(DotNetProject, string[])

Registers project for the code analysis APIs.

OpenProject(string, string, string)

Registers project for the code analysis APIs.

RefreshProject(DotNetProject, string[])

Refreshes the project for the code analysis APIs.

RegisterAssemblies(IScriptEdit, string[])

Register assemblies in the project.

RegisterAssemblies(string, string[], TechnologyEnvironment?, bool, string, TargetFramework)

Replaces assemblies in the project with new ones.

RegisterAssembly(IScriptEdit, string)

Register assembly in the project.

RegisterCode(IScriptEdit, string, string)

Register all types declared in the given source files so they can be accessible for code analysis.

RegisterCode(string, string, string, string)

Register all types declared in the given source file so they can be accessible for code analysis.

RegisterCode(string, string[], string)

Register all types declared in the given source files so they can be accessible for code analysis.

RegisterDefaultAssemblies(IScriptEdit, TechnologyEnvironment, bool)

Registers default assemblies in the project.

RegisterNamespaces(IScriptEdit, string[], string)

Registers global namespaces.

RegisterNamespaces(string, string[], string, string)

Registers global namespaces.

RegisterProjectReferences(string, string[], string)

Adds project references to the project.

ReplaceCodeFile(string, string, string, string)

Updates code completion with changes in the source file.

Rescan(IScriptEdit)

Reparses the entire text editor's content.

SetConditionals(string, string, string[])

Sets project's conditional symbols.

SetFileNameAndProject(IScriptEdit, string, string)

Updates name of the file and project and reparses editor's text.

SetProjectOptions(string, string, string[])

Sets project's conditional symbols.

UnregisterAssemblies(IScriptEdit, string[])

Unregisters assemblies from the project.

UnregisterAssemblies(string, TechnologyEnvironment, string)

Resets project assemblies to the default (most frequently used) collection.

UnregisterAssembly(IScriptEdit, string)

Unregisters assembly from the project.

UnregisterCode(IScriptEdit, string)

Removes types declared in given source files from being accessible code completion.

UnregisterCode(string, string[], string)

Removes types declared in given source files from being accessible code completion.

UnregisterProjectReferences(string, string)

Unregisters references from the project.

UnregisterProjectReferences(string, string[], string)

Removes given references from the project.

Events

ReferenceResolve

Occurs when an assembly reference is resolved.