Table of Contents

Class CodeUtils

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

Represents extended functionality to fill classes and methods lists related to the position inside the text document.

public class CodeUtils
Inheritance
CodeUtils

Methods

DrawFrameworkItem(ComboBox, DrawItemEventArgs)

Provides a custom drawing for a ComboBox item.

DrawItem(ComboBox, DrawItemEventArgs, ImageList)

Provides a custom drawing for a ComboBox item.

FillClasses(ComboBox, object, Point)

Fills given ComboBox with list of classes obtained from specified document at the given position.

FillFrameworks(ComboBox, IList<TargetFramework>)

Fills given ComboBox with list of target frameworks obtained from specified project.

FillMethods(ComboBox, object, Point, ComboBox)

Fills given ComboBox with list of methods obtained from specified document at the given position.

FormatText(object)

Formats content of specified syntax element accordingly to language rules of the document.

GetPosition(object, object, out Point)

Finds position in source code related to the specified syntax element.

GetSelectedFramework(ComboBox)

Gets selected framework.

GetSelectedPosition(ComboBox, object)

Finds position in source code related to the currently selected item in the ComboBox control.

NavigateClasses(ComboBox, object, Point)

Updates content of given class ComboBox accordingly to given position.

NavigateMethods(ComboBox, object, Point, ComboBox)

Updates content of given method ComboBox accordingly to given position.

SelectItem(ComboBox, object, out Point)

Finds position of the syntax element linked to the currently selected item in the ComboBox control.