AGS.Editor.ScintillaWrapper.SetKeyWords C# (CSharp) Метод

SetKeyWords() публичный Метод

public SetKeyWords ( string keyWords ) : void
keyWords string
Результат void
        public void SetKeyWords(string keyWords)
        {
            this.scintillaControl1.SetKeyWords(keyWords);
            SetAutoCompleteKeyWords(keyWords);
        }

Usage Example

Пример #1
0
 public IScriptEditorControl CreateScriptEditor(Point position, Size size)
 {
     if (!_messageLoopStarted)
     {
         // This is because the splash screen uses a different message loop,
         // the scintilla control gets reset when the new message loop starts
         // if it has already been created.
         throw new AGSEditorException("A script editor cannot be created from within a component constructor because the GUI system is not yet initialized. You should do a just-in-time creation of your ContentPane rather than creating it at component construction.");
     }
     ScintillaWrapper scintilla = new ScintillaWrapper();
     scintilla.Location = position;
     scintilla.Size = size;
     scintilla.SetKeyWords(Constants.SCRIPT_KEY_WORDS);
     scintilla.SetFillupKeys(Constants.AUTOCOMPLETE_ACCEPT_KEYS);
     scintilla.AutoCompleteEnabled = true;
     scintilla.AutoSpaceAfterComma = true;
     scintilla.CallTipsEnabled = true;
     return scintilla;
 }
ScintillaWrapper