/
n-dimens
/
pascalabcnet
Обзор
Документация
Войти
/
n-dimens
/
pascalabcnet
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
ICSharpCode.TextEditorLinux/Src/Gui/CompletionWindow/ICompletionDataProvider.cs
62 строки
2 KB
Mikhalkovich Stanislav
Для Linux-версии исправлен DockContent, редактор (показ всплывающего окна)
30 июн 2022, 09:47
30 июн 2022, 09:47
3072383
Код
Авторство
О чём код?
// <file> // <copyright see="prj:///doc/copyright.txt"/> // <license see="prj:///doc/license.txt"/> // <owner name="Mike Krüger" email="mike@icsharpcode.net"/> // <version>$Revision: 2074 $</version> // </file> using System; using System.Windows.Forms; namespace ICSharpCode.TextEditor.Gui.CompletionWindow { public interface ICompletionDataProvider { ImageList ImageList { get; } string PreSelection { get; } /// <summary> /// Gets the index of the element in the list that is chosen by default. /// </summary> int DefaultIndex { get; } /// <summary> /// Processes a keypress. Returns the action to be run with the key. /// </summary> CompletionDataProviderKeyResult ProcessKey(char key); /// <summary> /// Executes the insertion. The provider should set the caret position and then /// call data.InsertAction. /// </summary> bool InsertAction(ICompletionData data, TextArea textArea, int insertionOffset, char key); /// <summary> /// Generates the completion data. This method is called by the text editor control. /// </summary> ICompletionData[] GenerateCompletionData(string fileName, TextArea textArea, char charTyped); } public enum CompletionDataProviderKeyResult { /// <summary> /// Normal key, used to choose an entry from the completion list /// </summary> NormalKey, /// <summary> /// This key triggers insertion of the completed expression /// </summary> InsertionKey, /// <summary> /// Increment both start and end offset of completion region when inserting this /// key. Can be used to insert whitespace (or other characters) in front of the expression /// while the completion window is open. /// </summary> BeforeStartKey } }