Table of Contents

Class CompletionHint

Namespace
Alternet.Editor.CodeCompletion
Assembly
Alternet.Editor.v10.dll

Represents a tooltip-like control used in a code completion.

public class CompletionHint : Control, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable
Inheritance
CompletionHint
Implements

Constructors

CompletionHint()

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

CompletionHint(ICodeCompletionHint)

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

Properties

AlphaImages

Represents an image list associated with this CompletionHint.

ArrowColor

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

ForeColor

Gets or sets the foreground color for the control.

ForegroundColor

Gets or sets the foreground color for the control.

HintSize

Returns a size of the hint control.

Images

Represents an image list associated with this CompletionHint.

MaxHintWindowWidth
NeedArrows

Indicates whether hint control have to paint up/down arrows.

Provider

Gets or sets an object that contains data related to this CompletionHint.

SelectedIndex

Gets or sets the index specifying the currently selected hint item.

StartPos

Gets or sets start position of the hint in text coordinates.

SyntaxPaint

Represents ISyntaxPaint interface used to draw control's content.

Methods

ChangeSelection(bool)

Increments or decrementsSelectedIndex property.

CreateSyntaxPaint(IPainter)
CreateSyntaxPaint(IPainter)
CustomCalcSize(ref SizeD)
CustomCalcSize(ref Size)
CustomPaint(PaintEventArgs)
CustomPaint(PaintEventArgs)
Dispose(bool)

Destroys the instance of the CompletionHint class.

GetColumnSeparator()
IsInputKey(Keys)

Determines whether the specified key is a regular input key or a special key that requires preprocessing.

IsInputKey(Keys)

Determines whether the specified key is a regular input key or a special key that requires preprocessing.

IsOnHyperText(double, double)
IsOnHyperText(int, int)

Indicates whether the text fragment at given coordinates contains hypertext.

OnFontChanged(EventArgs)

Raises the FontChanged event.

OnMouseDown(MouseEventArgs)

Called when the mouse button was pressed.

OnMouseDown(MouseEventArgs)

Raises the MouseDown event.

OnMouseMove(MouseEventArgs)

Called when the mouse is moved.

OnPaint(PaintEventArgs)

Called when the control is redrawn. See Paint for details.

OnPaint(PaintEventArgs)

Raises the Paint event.

OnSelectedIndexChanged()
ProviderChanged()
ResetContent()

Updates CompletionHint content from its Provider.

StringChanged()
UpdateControlSize()
UpdateHint()

Updates content, position and size of the hint window.

WndProc(ref Message)

Processes Windows messages.

Events

SelectedIndexChanged

Occurs when the selected index of the hint control changes.

UpdateSize

Occurs when size of the hint control is changed.