Table of Contents

Class CodeCompletionWindow

Namespace
Alternet.Editor.CodeCompletion
Assembly
Alternet.Editor.v9.dll

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

public class CodeCompletionWindow : Form, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable, IContainerControl, ICodeCompletionWindow, IControl
Inheritance
CodeCompletionWindow
Implements
Derived

Remarks

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

Constructors

CodeCompletionWindow()

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

CodeCompletionWindow(Control)

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

Properties

AlphaImages

Gets or sets the AlphaImageList for code completion items.

AutoSize

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

CompletionFlags

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

CreateParams

Gets the required creation parameters when the control handle is created.

DefaultCodeCompletionFont
DisplayPos

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

DoNotFocusPopupControl

Gets or sets a value indicating whether popup control should not be focused.

EndPos

Specifies position within the text where CodeCompletionWindow is valid. StartPos

FocusControl

Returns child control that has an input focus.

Images

Gets or sets the ImageList for code completion items.

IsFocused

Indicates whether CodeCompletionWindow or it's child control has an input focus.

IsVisible

Indicates if window is visible.

OwnerControl

Represents a control owning this CodeCompletionWindow object.

PopupControl

Represents control contained in popup window. Usually CodeCompletionHint or CompletionListBox. CodeCompletionHint CompletionListBox

Provider

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

Showing
Sizeable

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

StartPos

Specifies position within the text where CodeCompletionWindow is valid. EndPos

Methods

CheckMouseLeave(object, EventArgs)
CheckMouseMove(object, MouseEventArgs)
CheckPositionValid()
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.

CodeEditDisposed()
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.

CreatePopupControl()
Dispose(bool)

Destroys the instance of the CodeCompletionWindow class.

DoClick(object, EventArgs)
DoDoubleClick(object, EventArgs)
DoHide()
DoLostFocus(object, EventArgs)
DoProcessKeyMessage(ref Message)
DoProcessKeyPreview(ref Message, bool)
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)
GetSyntaxEdit()
IsPopupControlFocused()
MouseOverControl(Point)
NeedCloseOnLostFocus()
OnAlphaImagesChanged()
OnAutoSizeChanged()
OnClosePopup(ClosingEventArgs)
OnCompletionFlagsChanged()
OnDisplayPosChanged()
OnEndPosChanged()
OnImagesChanged()
OnOwnerControlChanged()
OnProcessKeyPreview(ref Message)
OnShowPopup(ShowingEventArgs)
OnSizeableChanged()
OnStartPosChanged()
PerformSearch()

Performs searching operation.

Popup()

Displays popup window at the current mouse position.

PopupAt(Point)

Displays popup window at the specified screen position.

PopupAt(Point, ICodeCompletionProvider)

Displays popup window at the specified position.

PopupAt(int, int)

Displays popup window at the specified position.

PositionChanged(int, int, int, int)

Responds on changing position in the popup window.

ProcessKeyPreview(ref Message)

Previews a keyboard message.

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.

ResetSizeable()

Resets the Sizeable property to its default value.

SetProvider(ICodeCompletionProvider)
UpdateAutoSize()
WndProc(ref Message)

Processes Windows messages.

Events

ClosePopup

Occurs when the popup window is closed.

KeyPreviewEvent

Occurs when the popup window receives key message.

ShowPopup

Occurs when the popup window is displayed.