Table of Contents

Class CompletionButton

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

Represents a button-like control used to display code completion in a form of drop-down menu.

public class CompletionButton : UserControl, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable, IContainerControl, ICompletionButton, IControl
Inheritance
CompletionButton
Implements

Constructors

CompletionButton(ICodeCompletionButton)

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

Properties

ArrowColor

Gets or sets a background color used to paint ICompletionButton arrow.

Image

Gets or sets a bulb image displayed in this control.

Menu

Gets or sets a ContextMenuStrip associated with this control.

Provider

Represents the object that provides data for code completion. ICodeCompletionProvider

Methods

AddMenuItem(ToolStripItemCollection, ICodeCompletionProviderNamedItem)
DoItemClick(object, EventArgs)
DropDown()

Display drop down menu.

GetSelectedItem(bool)

Returns currently selected item.

OnMouseDown(MouseEventArgs)

Raises the MouseDown event.

OnPaint(PaintEventArgs)

Raises the Paint event.

ProviderChanged()
ResetContent()

Updates CompletionButton content from its Provider.