Skip to content

Instantly share code, notes, and snippets.

@migueldeicaza
Created November 29, 2008 20:16
Show Gist options
  • Save migueldeicaza/30301 to your computer and use it in GitHub Desktop.
Save migueldeicaza/30301 to your computer and use it in GitHub Desktop.
public class LineEditor {
public delegate string [] AutoCompleteHandler (string text, int pos);
/// <summary>
/// Invoked when the user requests auto-completion using the tab character
/// </summary>
/// <remarks>
/// The result is null for no values found, an array with a single
/// string, in that case the string should be the text to be inserted
/// for example if the word at pos is "T", the result for a completion
/// of "ToString" should be "oString", not "ToString".
///
/// When there are multiple results, the result should be the full
/// text
/// </remarks>
public AutoCompleteHandler AutoCompleteEvent;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment