C# Class AutocompleteMenuNS.AutocompleteMenu

Inheritance: System.ComponentModel.Component, IExtenderProvider
Mostrar archivo Open project: samarjeet27/ynoteclassic Class Usage Examples

Private Properties

Property Type Description
ApplyAutocomplete void
BuildAutocompleteList void
CreateWrapper ITextBoxWrapper
FindWrapper ITextBoxWrapper
GetFragment Range
IExtenderProvider bool
ListView_ItemHovered void
ListView_ItemSelected void
OnOpening void
OnSelecting void
OnSelecting void
ResetTimer void
ResetTimer void
ShowAutocomplete void
ShowMenu void
SubscribeForm void
UnsubscribeForm void
control_KeyDown void
control_LostFocus void
control_MouseDown void
control_Scroll void
form_FormClosing void
form_LocationChanged void
timer_Tick void

Public Methods

Method Description
AddItem ( AutocompleteItem item ) : void
AddItem ( string item ) : void
AutocompleteMenu ( ) : System
Close ( ) : void
GetAutocompleteMenu ( Control control ) : AutocompleteMenu
GetItemRectangle ( int itemIndex ) : Rectangle

Returns rectangle of item

OnHovered ( HoveredEventArgs e ) : void
OnSelected ( SelectedEventArgs args ) : void
ProcessKey ( char c, Keys keyModifiers ) : bool
SelectNext ( int shift ) : void
SetAutocompleteItems ( IEnumerable items ) : void
SetAutocompleteItems ( IEnumerable items ) : void
SetAutocompleteMenu ( Control control, AutocompleteMenu menu ) : void
Show ( Control control, bool forced ) : void

Shows popup menu immediately

Update ( ) : void

Updates size of the menu

Protected Methods

Method Description
Dispose ( bool disposing ) : void
OnWrapperNeeded ( WrapperNeededEventArgs args ) : void

Private Methods

Method Description
ApplyAutocomplete ( AutocompleteItem item, Range fragment ) : void
BuildAutocompleteList ( bool forced ) : void
CreateWrapper ( Control control ) : ITextBoxWrapper
FindWrapper ( Control sender ) : ITextBoxWrapper
GetFragment ( string searchPattern ) : Range
IExtenderProvider ( object extendee ) : bool
ListView_ItemHovered ( object sender, HoveredEventArgs e ) : void
ListView_ItemSelected ( object sender, EventArgs e ) : void
OnOpening ( CancelEventArgs args ) : void
OnSelecting ( ) : void
OnSelecting ( SelectingEventArgs args ) : void
ResetTimer ( ) : void
ResetTimer ( int interval ) : void
ShowAutocomplete ( bool forced ) : void
ShowMenu ( ) : void
SubscribeForm ( ITextBoxWrapper wrapper ) : void
UnsubscribeForm ( ITextBoxWrapper wrapper ) : void
control_KeyDown ( object sender, KeyEventArgs e ) : void
control_LostFocus ( object sender, EventArgs e ) : void
control_MouseDown ( object sender, MouseEventArgs e ) : void
control_Scroll ( object sender, ScrollEventArgs e ) : void
form_FormClosing ( object sender, FormClosingEventArgs e ) : void
form_LocationChanged ( object sender, EventArgs e ) : void
timer_Tick ( object sender, EventArgs e ) : void

Method Details

AddItem() public method

public AddItem ( AutocompleteItem item ) : void
item AutocompleteItem
return void

AddItem() public method

public AddItem ( string item ) : void
item string
return void

AutocompleteMenu() public method

public AutocompleteMenu ( ) : System
return System

Close() public method

public Close ( ) : void
return void

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

GetAutocompleteMenu() public method

public GetAutocompleteMenu ( Control control ) : AutocompleteMenu
control System.Windows.Forms.Control
return AutocompleteMenu

GetItemRectangle() public method

Returns rectangle of item
public GetItemRectangle ( int itemIndex ) : Rectangle
itemIndex int
return System.Drawing.Rectangle

OnHovered() public method

public OnHovered ( HoveredEventArgs e ) : void
e HoveredEventArgs
return void

OnSelected() public method

public OnSelected ( SelectedEventArgs args ) : void
args SelectedEventArgs
return void

OnWrapperNeeded() protected method

protected OnWrapperNeeded ( WrapperNeededEventArgs args ) : void
args WrapperNeededEventArgs
return void

ProcessKey() public method

public ProcessKey ( char c, Keys keyModifiers ) : bool
c char
keyModifiers Keys
return bool

SelectNext() public method

public SelectNext ( int shift ) : void
shift int
return void

SetAutocompleteItems() public method

public SetAutocompleteItems ( IEnumerable items ) : void
items IEnumerable
return void

SetAutocompleteItems() public method

public SetAutocompleteItems ( IEnumerable items ) : void
items IEnumerable
return void

SetAutocompleteMenu() public method

public SetAutocompleteMenu ( Control control, AutocompleteMenu menu ) : void
control System.Windows.Forms.Control
menu AutocompleteMenu
return void

Show() public method

Shows popup menu immediately
public Show ( Control control, bool forced ) : void
control System.Windows.Forms.Control
forced bool If True - MinFragmentLength will be ignored
return void

Update() public method

Updates size of the menu
public Update ( ) : void
return void