Table of Contents

Class CodeCompletionProvider

Namespace
Alternet.Syntax.CodeCompletion
Assembly
Alternet.Syntax.v9.dll

Represents properties and methods to provide data related to Code Completion popup listbox and popup hint controls.

public class CodeCompletionProvider : List<ICodeCompletionProviderItem>, IList, ICollection, IReadOnlyList<ICodeCompletionProviderItem>, IReadOnlyCollection<ICodeCompletionProviderItem>, ICodeCompletionProvider, IList<ICodeCompletionProviderItem>, ICollection<ICodeCompletionProviderItem>, IEnumerable<ICodeCompletionProviderItem>, IEnumerable, IExport, IImport
Inheritance
CodeCompletionProvider
Implements
Derived
Extension Methods

Properties

AlphaImages

Gets or sets the AlphaImageList for code completion items.

ColumnCount

Returns number of the columns.

Descriptions

Provides an indexed access to the description of each column.

EditField

Gets or sets a value indicating editable field of the code completion provider.

EditPath

Gets or sets a value indicating path to the nested code completion provider.

FocusMode

Specifies mode where pre-selected item in code completion listbox is just focused, but not selected.

FormatDisplayText

Gets a boolean value indicating that rich text formatting should be applied to display text.

ImageIndexes

Provides an indexed access to the image index of each column.

Images

Gets or sets the ImageList for code completion items.

ImagesHighDpi

Gets or sets the ImageList for code completion items for high DPI.

InvokeChar

Specifies a character that triggered code completion invocation

NameColumnIndex

Gets an index of the column containing name.

NeedSort

Specifies if provider content needs to be sorted.

SelIndex

Represents the index specifying the currently selected item of the popup control.

SelectedItem

When implemented by a class, represents currently selected item of the popup control.

SerializationInfo

Gets or sets an xml representation of this CodeCompletionProvider object.

ShowDescriptions

Gets or sets a boolean value that indicates whether provider should display Description part in a form of tooltip near the popup control.

Strings

Provides an indexed access to the text of default column.

UseHtmlFormatting

Gets or sets a boolean value indicating whether html formatting tags may appear in the text.

UseIndent

Gets or sets a value indicating whether the multi-line text should be indented when inserting to the edit control.

Methods

ColumnSpace(int)

Indicates whether after specified column SPACE is required.

ColumnVisible(int)

Indicates whether specified column is visible.

GetColumnText(int, int)

Returns text from given item in the specified column.

GetDescription(int)

Returns a content of the column, named 'Description', of the specified item from the collection.

GetDisplayText(int)

Returns string representing the display text of the item.

GetFullDisplayText(int)

Returns string representing full display text of the item.

GetImage(int)

Returns number of image that is displayed for item given by index.

GetImageIndex(int)

Returns number of image that is displayed for item given by index.

GetInsertText(int)

Returns string to be inserted.

GetName(int)

Returns string representing name of the item.

GetParent()

Returns code completion provider owning this ICodeCompletionProvider instance.

GetPriority(int)

Returns priority of the item.

GetText(int)

Returns string representing default column.

GetXmlType()
IndexOfName(string, bool)

Returns index of the item within collection by it's name.

LoadFile(string)

Loads the contents of the specified file into the snippet.

LoadFile(string, Encoding)

Loads the contents of the specified file into the snippet.

LoadStream(Stream)

Loads the contents of the given stream into the snippet.

LoadStream(Stream, Encoding)

Loads the contents of the given stream into the snippet.

LoadStream(TextReader)

Loads the contents of the specified stream into the snippet.

OnAlphaImagesChanged()
OnClosePopup(object, ClosingEventArgs)

Raises ClosePopup event.

OnEditFieldChanged()
OnImagesChanged()
OnImagesHighDpiChanged()
OnSelIndexChanged()
OnShowDescriptionsChanged()
OnShowPopup(object, ShowingEventArgs)

Raises ShowPopup event.

OnUseHtmlFormattingChanged()
OnUseIndentChanged()
SaveFile(string)

Saves content of the snippet to the specific file.

SaveFile(string, Encoding)

Saves content of the snippet to the specific file.

SaveStream(Stream)

Saves content of the snippet to the specified stream.

SaveStream(Stream, Encoding)

Saves content of the snippet to the specified stream.

SaveStream(TextWriter)

Saves content of the snippet to the specified stream.

Events

ClosePopup

Occurs when popup control is closed.

ShowPopup

Occurs when popup control is displayed.