Table of Contents

Class CodeCompletionList

Namespace
Alternet.Editor.Wpf
Assembly
Alternet.Editor.Wpf.v9.dll

Represents a content container for CodeCompletionBox popup control.

public class CodeCompletionList : Control, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient, INotifyPropertyChanged
Inheritance
CodeCompletionList
Implements
Derived
Extension Methods

Constructors

CodeCompletionList(TextEditor)

Initializes a new instance of the CodeCompletionList class with a specified owner.

Fields

EmptyTemplateProperty

Gets a DependencyProperty bind EmptyTemplate property.

Properties

CurrentTheme

Gets or sets a dictionary containing theme-related resources for the code completion window, such as scrollbar background.

Editor

Represents a TextEditor control owning this CodeCompletionList object.

EmptyTemplate

Gets or sets an empty template.

Filter

Gets or sets filter string to filter CompletionListBox content.

FilterOptions
Filtered

Gets or sets a boolean value that indicates whether CompletionListBox should filter its content using Filer property.

FocusMode

Specifies item preselection mode.

Items

Gets the items of the CodeCompletionList.

ListBox

Gets the list box.

Priority

Gets or sets priority filter to filter CompletionListBox content.

Provider

Represents the object that provides data for code completion. ICodeCompletionProvider

ScrollViewer

Gets the scroll viewer used in this list box.

SelectedIndex

Gets or sets the index of the first item in the current selection or returns negative one (-1) if the selection is empty.

Sorted

Gets or sets a value indicating whether the items in the list are sorted alphabetically.

UseHtmlFormatting

Methods

BeginInit()

Starts the initialization process for this element.

CreateListBoxItemComparer()
EndInit()

Indicates that the initialization process for the element is complete.

FillListBox(IList<FilteredItemData>, bool)
GetAllItemsFilteredOutDisplayMode()
GetFinalWidth(double)
GetIndex()

Returns current index.

GetIndex(bool)

Returns current index.

GetIndex(int)

Returns current index.

GetListBoxItems(List<FilteredItemData>, bool)
HandleKey(KeyEventArgs)

Process key input.

IsAbbreviatedFilterMatch(string, out ItemFilterTextMatch)
IsContentEqual(IList<FilteredItemData>, IList)
IsFiltered(int, out ItemFilterTextMatch)
IsFiltered(string, int)
IsFiltered(string, int, out ItemFilterTextMatch)
IsFilteredPriority(int)
IsFilteredString(string, out ItemFilterTextMatch)
IsImageEqual(ICodeCompletionProvider, ICodeCompletionProvider)
IsSubstringFilterMatch(string, out ItemFilterTextMatch)
MeasureTextSize(string, FontFamily, FontStyle, FontWeight, FontStretch, double)

Measures specified text according to the font settings.

OnApplyTemplate()

When overridden in a derived class, is invoked whenever application code or internal processes call ApplyTemplate().

OnFilterChanged()
OnFilterOptionsChanged()
OnFilteredChanged()
OnKeyDown(KeyEventArgs)

Invoked when an unhandled System.Windows.Input.Keyboard.KeyDown attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event.

OnMouseDoubleClick(MouseButtonEventArgs)

Raises the MouseDoubleClick routed event.

OnPriorityChanged()
OnPropertyChanged(string)
ProviderChanged()
ResetContent()

Updates CompletionListBox content from its Provider.

ResetContent(int)

Updates CompletionListBox content from its Provider.

SelectItem(string)

Selects the best match, and filter the items.

UpdateControlSize()

Events

PropertyChanged

Occurs when a property value changes.

SelectionChanged

Occurs when the SelectedItem property changes.