Table of Contents

Class CodeCompletionListBox

Namespace
Alternet.Editor.Wpf
Assembly
Alternet.Editor.Wpf.v10.dll

Represents a completion list box control. This class inherited from ListBox class and provides similar functionality for code completion requirements.

public class CodeCompletionListBox : ListBox, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient, IAddChild, IContainItemStorage, INotifyPropertyChanged
Inheritance
CodeCompletionListBox
Implements
Extension Methods

Constructors

CodeCompletionListBox()

Initializes a new instance of the CodeCompletionListBox class with default settings.

Fields

SelectedBackgroundProperty

Identifies the SelectedBackground dependency property.

SelectedBorderProperty

Identifies the SelectedBorder dependency property.

SelectedForegroundProperty

Identifies the SelectedForeground dependency property.

Properties

CodeCompletionBorderColor

Gets or sets CodeCompletionListBox border color.

Editor

Gets or sets TextEditor owning this CodeCompletionBox.

FirstVisibleItem

Gets or sets the index of the first visible item in the codecompletion window.

FocusMode

Specifies item preselection mode.

Provider

Represents the object that provides data for code completion.

SelectedBackground

Gets or sets a brush that describes the background color of the selected item.

SelectedBorder

Gets or sets a brush that describes the border background of the selected item.

SelectedForeground

Gets or sets a brush that describes the foreground color of the selected item.

SelectedIndex

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

VisibleItemCount

Gets the number of visible items.

Methods

CenterViewOn(int)

Centers the view on the item with the specified index.

ClearSelection()

Removes the selection.

HideTooltip()
OnApplyTemplate()

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

OnCodeCompletionBorderColorChanged()
OnPropertyChanged(string)
OnSelectionChanged(SelectionChangedEventArgs)

Responds to a list box selection change by raising a SelectionChanged event.

SelectIndex(int)

Selects the item with the specified index and scrolls it into view.

Events

PropertyChanged

Occurs when a property value changes.