ARCed.Scripting.AutoCompleteForm.AddToAutocomplete C# (CSharp) Method

AddToAutocomplete() public method

public AddToAutocomplete ( string text ) : void
text string
return void
        public void AddToAutocomplete(string text)
        {
            string[] words = text.Split(' ', '\n', '\t', '.', '@', '$');
            this.listBoxWords.BeginUpdate();
            string currentWord;
            foreach (string word in words)
            {
                currentWord = word.Trim();
                if (currentWord == "" || currentWord.Length < 2) continue;
                if (!this._wordList.Contains(currentWord))
                    this._wordList.Add(currentWord);
            }
            this.listBoxWords.EndUpdate();
        }