------ #### SuperDesign V3.0.2412.2001 - *.[新增]新增程序更新日志设置和自动发布功能。 - *.[修复]修复Post数据格式不正确时双击文本框会导致软件闪退的BUG。
78 lines
2.0 KiB
C#
78 lines
2.0 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Drawing;
|
|
using System.Windows.Forms;
|
|
|
|
namespace AutocompleteMenuNS
|
|
{
|
|
/// <summary>
|
|
/// Control for displaying menu items, hosted in AutocompleteMenu.
|
|
/// </summary>
|
|
public interface IAutocompleteListView
|
|
{
|
|
/// <summary>
|
|
/// Image list
|
|
/// </summary>
|
|
ImageList ImageList { get; set; }
|
|
|
|
string[] ColumnsTitle { get; set; }
|
|
int[] ColumnsWidth { get; set; }
|
|
|
|
/// <summary>
|
|
/// Index of current selected item
|
|
/// </summary>
|
|
int SelectedItemIndex { get; set; }
|
|
|
|
/// <summary>
|
|
/// Index of current selected item
|
|
/// </summary>
|
|
int HighlightedItemIndex { get; set; }
|
|
|
|
/// <summary>
|
|
/// List of visible elements
|
|
/// </summary>
|
|
IList<AutocompleteItem> VisibleItems { get;set;}
|
|
|
|
/// <summary>
|
|
/// Duration (ms) of tooltip showing
|
|
/// </summary>
|
|
int ToolTipDuration { get; set; }
|
|
|
|
/// <summary>
|
|
/// Occurs when user selected item for inserting into text
|
|
/// </summary>
|
|
event EventHandler ItemSelected;
|
|
|
|
/// <summary>
|
|
/// Occurs when current hovered item is changing
|
|
/// </summary>
|
|
event EventHandler<HoveredEventArgs> ItemHovered;
|
|
|
|
/// <summary>
|
|
/// Shows tooltip
|
|
/// </summary>
|
|
/// <param name="autocompleteItem"></param>
|
|
/// <param name="control"></param>
|
|
void ShowToolTip(AutocompleteItem autocompleteItem, Control control = null);
|
|
|
|
/// <summary>
|
|
/// Hides tooltip
|
|
/// </summary>
|
|
/// <param name="control"></param>
|
|
void HideToolTip(Control control);
|
|
|
|
/// <summary>
|
|
/// Returns rectangle of item
|
|
/// </summary>
|
|
Rectangle GetItemRectangle(int itemIndex);
|
|
|
|
/// <summary>
|
|
/// Colors
|
|
/// </summary>
|
|
Colors Colors { get; set; }
|
|
|
|
|
|
Control GetParentControl();
|
|
}
|
|
}
|