C# Class ACPAddIn.AutoCompleteForm

This class handle the presentation layer for presenting the Suggestion list in a cusotmized window form to user. It provides methods such as to navigate the page, hide the suggestion box and text wrapping for each entry. Author: Loke Yan Hao
Inheritance: System.Windows.Forms.Form
Afficher le fichier Open project: autocompaste/AutoComPaste Class Usage Examples

Méthodes publiques

Méthode Description
AutoCompleteForm ( ) : System
Hide ( ) : void
getActualWidth ( ) : int
getDisplaySuggestionCount ( ) : int
getNumOfPage ( ) : int
getPageIndex ( ) : int
getSourceNameWrapping ( String sourceName, Font font ) : String
getSuggestionWrapping ( String suggestion, Font font, bool entityMode ) : String
nextSuggestionPage ( ) : void
populateForm ( List suggestions ) : void
previousSuggestionPage ( ) : void
quickPaste ( int i ) : void
selectFirstIndex ( ) : void
showForm ( IWin32Window owner ) : void
updateConfiguration ( ) : void

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

Private Methods

Méthode Description
InitializeComponent ( ) : void

Required method for Designer support - do not modify the contents of this method with the code editor.

ListBox1_DrawItem ( object sender, DrawItemEventArgs e ) : void
ListBox1_SelectedIndexChanged ( object sender, System e ) : void
ListBox_initWidth ( ListBox listBox ) : void
closeBut_MouseClick ( object sender, MouseEventArgs e ) : void
closeBut_MouseHover ( object sender, EventArgs e ) : void
closeBut_MouseLeave ( object sender, EventArgs e ) : void
generateSubstring ( String words, ArrayList wordIndexes ) : String
getRenderTextHeight ( String text, Control control, Font font ) : int
getRenderTextWidth ( String text, Control control, Font font ) : int
listBox1_KeyDown ( object sender, KeyEventArgs e ) : void
listBox1_KeyPress ( object sender, KeyPressEventArgs e ) : void
listBox1_MouseDoubleClick ( object sender, MouseEventArgs e ) : void
nextBut_MouseClick ( object sender, MouseEventArgs e ) : void
nextBut_MouseHover ( object sender, EventArgs e ) : void
nextBut_MouseLeave ( object sender, EventArgs e ) : void
previousBut_MouseClick ( object sender, MouseEventArgs e ) : void
previousBut_MouseHover ( object sender, EventArgs e ) : void
previousBut_MouseLeave ( object sender, EventArgs e ) : void
updateNextPreviousButton ( ) : void
updateSuggestionPageDisplay ( ) : void

Method Details

AutoCompleteForm() public méthode

public AutoCompleteForm ( ) : System
Résultat System

Dispose() protected méthode

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
Résultat void

Hide() public méthode

public Hide ( ) : void
Résultat void

getActualWidth() public méthode

public getActualWidth ( ) : int
Résultat int

getDisplaySuggestionCount() public méthode

public getDisplaySuggestionCount ( ) : int
Résultat int

getNumOfPage() public méthode

public getNumOfPage ( ) : int
Résultat int

getPageIndex() public méthode

public getPageIndex ( ) : int
Résultat int

getSourceNameWrapping() public méthode

public getSourceNameWrapping ( String sourceName, Font font ) : String
sourceName String
font System.Drawing.Font
Résultat String

getSuggestionWrapping() public méthode

public getSuggestionWrapping ( String suggestion, Font font, bool entityMode ) : String
suggestion String
font System.Drawing.Font
entityMode bool
Résultat String

nextSuggestionPage() public méthode

public nextSuggestionPage ( ) : void
Résultat void

populateForm() public méthode

public populateForm ( List suggestions ) : void
suggestions List
Résultat void

previousSuggestionPage() public méthode

public previousSuggestionPage ( ) : void
Résultat void

quickPaste() public méthode

public quickPaste ( int i ) : void
i int
Résultat void

selectFirstIndex() public méthode

public selectFirstIndex ( ) : void
Résultat void

showForm() public méthode

public showForm ( IWin32Window owner ) : void
owner IWin32Window
Résultat void

updateConfiguration() public méthode

public updateConfiguration ( ) : void
Résultat void