// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt) // This code is distributed under the GNU LGPL (for details please see \doc\license.txt) using System; using System.Windows.Media; using System.Windows.Media.Imaging; using Tango.Scripting.Editors.Document; using Tango.Scripting.Editors.Editing; namespace Tango.Scripting.Editors.CodeCompletion { /// /// Describes an entry in the . /// public interface ICompletionData { /// /// Gets the image. /// BitmapSource Image { get; } /// /// Gets the text. This property is used to filter the list of visible elements. /// string Text { get; } /// /// Gets the description. /// object Description { get; set; } /// /// Gets the priority. This property is used in the selection logic. You can use it to prefer selecting those items /// which the user is accessing most frequently. /// double Priority { get; set; } /// /// Perform the completion. /// /// The text area on which completion is performed. /// The text segment that was used by the completion window if /// the user types (segment between CompletionWindow.StartOffset and CompletionWindow.EndOffset). /// The EventArgs used for the insertion request. /// These can be TextCompositionEventArgs, KeyEventArgs, MouseEventArgs, depending on how /// the insertion was triggered. void Complete(ScriptEditor editor); } }