Table of Contents

Class CodeCompletionHint

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

Represents class that implements ICodeCompletionHint interface. This object to represent a popup window in a form of tooltip.

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

Constructors

CodeCompletionHint(Control)

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

Properties

AutoHide

Gets or sets a value indicating whether CodeCompletionHint should be closed after some period of time. AutoHidePause

AutoHidePause

Gets or sets a value that specifies delay, in milliseconds, between displaying and hiding popup hint. AutoHide

CreateParams

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

CustomPainter

Specifies a custom painter that provides control's drawing.

DisableColorPaint

Gets or sets a value indicating whether hint control uses colors to paint its content.

DisableSyntaxPaint

Gets or sets a value indicating whether hint control uses lexical colors/styles to paint its content.

HideTimer
Hint
Lexer

Gets or sets an object that can make lexical analysis for the hint control content.

Painter

Gets or sets an object that can make lexical analysis for the hint control content.

Methods

CheckPositionValid()
CreatePopupControl()
Dispose(bool)

Destroys the instance of the CodeCompletionWindow class.

DoClick(object, EventArgs)
DoHide()
DoMouseWheel(object, MouseEventArgs)
DoShow(Point)
DoUpdateSize(object, EventArgs)
DrawLine(int, Point, Rectangle)

Draws specific line in of the hint control to the graphic surface.

DrawLine(int, string, StringItemInfo[], Point, Rectangle)

Draws line given by its index at the specified position.

EqualStyles(StringItemInfo, StringItemInfo, bool)

Indicates whether given styles are equal.

GetFontColor(Color, TextStyle)

Retrieves font color corresponding to given state.

GetFontStyle(FontStyle, TextStyle)

Retrieves font style corresponding to given state.

GetLexStyle(StringItemInfo, ref TextStyle)

Retrieves lex state corresponding to given parser style.

GetSelectedIndex(bool)
MeasureLine(int, int, int)

Measures part of the string given by its index.

MeasureLine(int, int, int, int, out int, bool)

Measures part of the string given by its index.

MeasureLine(string, StringItemInfo[], int, int)

Measures part of the given string.

MeasureLine(string, StringItemInfo[], int, int, int, out int, bool)

Measures part of the given string.

OnAutoHideChanged()
OnBackColorChanged()
OnCustomDraw(Rectangle, DrawStage, DrawState, IDrawInfo)

Calls Hint.SyntaxPaint.OnCustomDraw method that raises CustomDraw event.

OnDisableColorPaintChanged()
OnDisableSyntaxPaintChanged()
OnHideHint(object, EventArgs)
OnHyperTextClick()
OnIntervalChanged()
OnLexerChanged()
OnShowPopup(ShowingEventArgs)
OnStartPosChanged()
PaintSyntax(int, int, Point, Rectangle, Point, bool)

Paints a specified part of the hint control.

PositionChanged(bool)
ProcessKeyPreview(ref Message)

Previews a keyboard message.

Reposition()
ResetAutoHide()

Resets the AutoHide to its default value.

ResetAutoHidePause()

Resets the AutoHidePause to its default value.

ResetContent()

Updates CodeCompletionHint content from its Provider.

ResetDisableColorPaint()

Resets the DisableColorPaint to its default value.

ResetDisableSyntaxPaint()

Resets the DisableSyntaxPaint to its default value.

SetProvider(ICodeCompletionProvider)
UpdateProviderContent(ICodeCompletionProvider, ICodeCompletionProvider)
UpdateProviderParamIndex(ICodeCompletionProvider)

Events

CustomDraw

Occurs when hint draws its content.

HyperTextClick

Occurs when hypertext is clicked.