Class CodeCompletionWindowBase
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.
- 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.
- 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 thisCodeCompletionWindowBase
object.
- 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.
- 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.
- Visible
Indicates if window is visible.
- Window
Returns itself as a Window control.
Methods
- 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, 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.
- EnsureVisible(ref Point)
Ensures that the popup window is visible in the screen working area, moving it if necessary.
- InsertColumn(int)
Inserts a new column to the specified position in the column collection.
- OnActivated(EventArgs)
Raises the Activated event.
- OnClosed(EventArgs)
Raises the Closed event.
- OnDeactivated(EventArgs)
Raises the Deactivated event.
- OnRenderSizeChanged(SizeChangedInfo)
Raises the SizeChanged event, using the specified information as part of the eventual event data.
- 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.
- 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 itsProvider
.
- ResetDropDownCount()
Resets the
DropDownCount
to its default value.
- ResetSizeable()
Resets the
Sizeable
to its default value.
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.