Table of Contents

Class CodeUtils

Namespace
Alternet.Editor.IronPython
Assembly
Alternet.Editor.IronPython.v10.dll

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

public class CodeUtils
Inheritance
CodeUtils

Fields

ClassImage
ConstImage
DotImage
FieldImage
ImageDelta
ImageSize
InterfaceImage
MethodImage
NameSpaceImage
StructImage
UseAccessModifierImages

Methods

DrawItem(ComboBox, DrawItemEventArgs, ImageList)

Provides a custom drawing for a ComboBox item.

FillClasses(ComboBox, ISyntaxParser, Point)

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

FillMethods(ComboBox, ISyntaxParser, 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.

GetFormattedText(ISyntaxNode)

Formats content of specified SyntaxNode accordingly to language rules of the document.

GetNodeByPosition(ComboBox, Point)

Finds parent node of given SyntaxNode that is a class or structure node.

GetPosition(object, out Point)

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

GetSelectedPosition(ComboBox)

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

IsValidNode(int, out int)
NavigateClasses(ComboBox, ISyntaxParser, Point)

Updates content of given class ComboBox accordingly to given position.

NavigateMethods(ComboBox, ISyntaxParser, Point, ComboBox)

Updates content of given method ComboBox accordingly to given position.

SelectItem(ComboBox, out Point)

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