Class CodeCompletionList
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 thisCodeCompletionList
object.
- EmptyTemplate
Gets or sets an empty template.
- Filter
Gets or sets filter string to filter
CompletionListBox
content.
- Filtered
Gets or sets a boolean value that indicates whether
CompletionListBox
should filter its content usingFiler
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.
Methods
- BeginInit()
Starts the initialization process for this element.
- EndInit()
Indicates that the initialization process for the element is complete.
- GetIndex()
Returns current index.
- GetIndex(bool)
Returns current index.
- GetIndex(int)
Returns current index.
- HandleKey(KeyEventArgs)
Process key input.
- 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().
- 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.
- 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.
Events
- PropertyChanged
Occurs when a property value changes.
- SelectionChanged
Occurs when the SelectedItem property changes.