Table of Contents

Class CodeCompletionWindowBase

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

Represents a base class for popup controls such as CodeCompletionBox and CodeCompletionHint.

public class CodeCompletionWindowBase : Window, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient, IAddChild, ICodeCompletionWindow
Inheritance
CodeCompletionWindowBase
Implements
Derived
Extension Methods

Remarks

Do not create instances of this class, use derived classes instead.

Constructors

CodeCompletionWindowBase(Control)

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

Properties

AutoSize

Gets or sets a value indicating whether a popup window is automatically resized to fit its contents.

CanCloseNow

Indicates if popup window can be closed.

CloseOnFocusLost
Columns

Represents collection of ICodeCompletionColumn objects displayed by Code Completion List.

CompletionFlags

Gets or sets collection of attributes that specifies behavior of the popup window.

DefaultCodeCompletionFontFamily
DefaultCodeCompletionFontSize
DefaultCodeCompletionFontStretch
DefaultCodeCompletionFontStyle
DefaultCodeCompletionFontWeight
DisplayPos

Specifies position within the text (as index of line and character) where ICodeCompletionWindow is displayed.

DropDownCount

Gets or sets a value that specifies maximum visible amount of the ListBox items within the control.

Editor

Represents a TextEditor control owning this CodeCompletionWindowBase object.

EndPos

Specifies ending position within the text where CodeCompletionWindow is valid. StartPos

Images

Gets or sets the ImageList for code completion items.

IsOpen

Gets or set open state of the popup window.

Location

Gets or sets the System.Windows.Point that represents the upper-left corner of the popup window.

OwnerControl

Represents a control owning this CodeCompletionWindowBase object.

PopupOwner
Provider

Gets or sets the object that contains data related to the popup window.

Size

Returns size of the window.

Sizeable

Gets or sets a value indicating whether the border of the popup window is sizable.

StartPos

Specifies beginning position within the text where CodeCompletionWindow is valid. EndPos

Visible

Indicates if window is visible.

Window

Returns itself as a Window control.

Methods

ActivateParentWindow()
AddColumn()

Adds a new column to the CodeCompletionBox column collection.

ClearColumns()

Removes all columns from the CodeCompletionBox column collection.

Close(bool)

Closes the popup window.

Close(bool, bool)

Closes the popup window.

Close(bool, bool, char)
Close(bool, char)

Closes the popup window.

CloseDelayed(bool)

Closes the popup window with delay.

ContainsControl(Control)

Retrieves a value indicating whether the popup window contains the specified control.

ContainsMouseCursor(int)

Determines whether control contains mouse position, with specified therehold.

DetachEvents()
DoHide()
DoMouseDown(object, MouseButtonEventArgs)
DoMouseUp(object, MouseButtonEventArgs)
DoShow(Point)
DoShow(Point, ICodeCompletionProvider)
EnsureVisible(ref Point)

Ensures that the popup window is visible in the screen working area, moving it if necessary.

GetSelectedIndex(bool)
GetSelectedItem(bool)
GetWindowLong(IntPtr, int)
InsertColumn(int)

Inserts a new column to the specified position in the column collection.

OnActivated(EventArgs)

Raises the Activated event.

OnClosePopup(ClosingEventArgs)
OnClosed(EventArgs)

Raises the Closed event.

OnDeactivated(EventArgs)

Raises the Deactivated event.

OnDropDownCountChanged()
OnRenderSizeChanged(SizeChangedInfo)

Raises the SizeChanged event, using the specified information as part of the eventual event data.

OnShowPopup(ShowingEventArgs)
OnSourceInitialized(EventArgs)

Raises the SourceInitialized event.

PerformSearch()

Performs searching operation.

Popup()

Displays popup window at the current mouse position.

PopupAt(double, double)

Displays popup window at the specified position.

PopupAt(Point)

Displays popup window at the specified position.

PopupAt(Point, ICodeCompletionProvider)

Displays popup window at the specified position.

PositionChanged(int, int, int, int)

Responds on changing position in the popup window.

RaiseEventPair(UIElement, RoutedEvent, RoutedEvent, RoutedEventArgs)
RemoveColumnAt(int)

Removes the column at the specified index of the column collection.

ResetAutoSize()

Resets the AutoSize property to its default value.

ResetCodeCompletionFlags()

Resets the CompletionFlags property to its default value.

ResetContent()

Updates CodeCompletionWindow content from its Provider.

ResetDropDownCount()

Resets the DropDownCount to its default value.

ResetSizeable()

Resets the Sizeable to its default value.

SetProvider(ICodeCompletionProvider)
SetWindowLong(IntPtr, int, int)
UpdatePosition()

Events

ClosePopup

Occurs when the popup window is closed.

Disposed

Occurs when the popup window is disposed.

HelpRequested

Occurs when user requests help for a control.

HwndSourceInitialized

Occurs when the popup window source initialized.

KeyPreviewEvent

Occurs when the popup window receives key message.

ShowPopup

Occurs when the popup window is displayed.