C# Class ICSharpCode.AvalonEdit.CodeCompletion.CompletionWindowBase

Base class for completion windows. Handles positioning the window at the caret.
Inheritance: System.Windows.Window
Show file Open project: gilgame/SEWorkbench Class Usage Examples

Private Properties

Property Type Description
AttachEvents void
CloseIfFocusLost void
CompletionWindowBase System
OnMouseUp void
RaiseEventPair bool
TextAreaDocumentChanged void
TextAreaLostFocus void
TextViewScrollOffsetChanged void
parentWindow_LocationChanged void
textArea_Document_Changing void

Public Methods

Method Description
CompletionWindowBase ( TextArea textArea ) : System

Creates a new CompletionWindowBase.

Protected Methods

Method Description
ActivateParentWindow ( ) : void

Activates the parent window.

DetachEvents ( ) : void

Detaches events from the text area.

OnClosed ( EventArgs e ) : void
OnDeactivated ( EventArgs e ) : void
OnKeyDown ( System.Windows.Input.KeyEventArgs e ) : void
OnRenderSizeChanged ( System.Windows.SizeChangedInfo sizeInfo ) : void
OnSourceInitialized ( EventArgs e ) : void
SetPosition ( TextViewPosition position ) : void

Positions the completion window at the specified position.

UpdatePosition ( ) : void

Updates the position of the CompletionWindow based on the parent TextView position and the screen working area. It ensures that the CompletionWindow is completely visible on the screen.

Private Methods

Method Description
AttachEvents ( ) : void
CloseIfFocusLost ( ) : void
CompletionWindowBase ( ) : System
OnMouseUp ( object sender, System.Windows.Input.MouseButtonEventArgs e ) : void
RaiseEventPair ( UIElement target, System.Windows.RoutedEvent previewEvent, System.Windows.RoutedEvent @event, RoutedEventArgs args ) : bool
TextAreaDocumentChanged ( object sender, EventArgs e ) : void
TextAreaLostFocus ( object sender, RoutedEventArgs e ) : void
TextViewScrollOffsetChanged ( object sender, EventArgs e ) : void
parentWindow_LocationChanged ( object sender, EventArgs e ) : void
textArea_Document_Changing ( object sender, ICSharpCode.AvalonEdit.Document.DocumentChangeEventArgs e ) : void

Method Details

ActivateParentWindow() protected method

Activates the parent window.
protected ActivateParentWindow ( ) : void
return void

CompletionWindowBase() public method

Creates a new CompletionWindowBase.
public CompletionWindowBase ( TextArea textArea ) : System
textArea ICSharpCode.AvalonEdit.Editing.TextArea
return System

DetachEvents() protected method

Detaches events from the text area.
protected DetachEvents ( ) : void
return void

OnClosed() protected method

protected OnClosed ( EventArgs e ) : void
e System.EventArgs
return void

OnDeactivated() protected method

protected OnDeactivated ( EventArgs e ) : void
e System.EventArgs
return void

OnKeyDown() protected method

protected OnKeyDown ( System.Windows.Input.KeyEventArgs e ) : void
e System.Windows.Input.KeyEventArgs
return void

OnRenderSizeChanged() protected method

protected OnRenderSizeChanged ( System.Windows.SizeChangedInfo sizeInfo ) : void
sizeInfo System.Windows.SizeChangedInfo
return void

OnSourceInitialized() protected method

protected OnSourceInitialized ( EventArgs e ) : void
e System.EventArgs
return void

SetPosition() protected method

Positions the completion window at the specified position.
protected SetPosition ( TextViewPosition position ) : void
position TextViewPosition
return void

UpdatePosition() protected method

Updates the position of the CompletionWindow based on the parent TextView position and the screen working area. It ensures that the CompletionWindow is completely visible on the screen.
protected UpdatePosition ( ) : void
return void