SharpDevelop Community

Get your problems solved!
Welcome to SharpDevelop Community Sign in | Join | Help
in Search

AvalonEdit - how to get the words when input a dot ?

Last post 08-28-2017 3:24 PM by goldli. 0 replies.
Page 1 of 1 (1 items)
Sort Posts: Previous Next
  • 08-28-2017 3:24 PM

    • goldli
    • Not Ranked
    • Joined on 08-28-2017
    • Posts 1

    AvalonEdit - how to get the words when input a dot ?

    the  AvalonEdit example shows the code Completion, codes bellow

    void textEditor_TextArea_TextEntered(object sender, TextCompositionEventArgs e)
    {
        if (e.Text == ".") {
            // Open code completion after the user has pressed dot:
            completionWindow = new CompletionWindow(textEditor.TextArea);
            IList<ICompletionData> data = completionWindow.CompletionList.CompletionData;
            data.Add(new MyCompletionData("Item1"));
            data.Add(new MyCompletionData("Item2"));
            data.Add(new MyCompletionData("Item3"));
            completionWindow.Show();
            completionWindow.Closed += delegate {
                completionWindow = null;
            };
        }
    }
    
    
    
    and i want to know the words before the dot ,is there any idea?
Page 1 of 1 (1 items)
Powered by Community Server (Commercial Edition), by Telligent Systems
Don't contact us via this (fleischfalle@alphasierrapapa.com) email address.