|
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; }
/// <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>
/// Returns rectangle of item
/// </summary>
Rectangle GetItemRectangle(int itemIndex);
/// <summary>
/// Colors
/// </summary>
Colors Colors { get; set; }
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
I am Pavеl Tоrgаshоv, and I live in Kyiv, Ukraine.
I've been developing software since 1998.
Main activities: processing of large volumes of data, statistics, computer vision and graphics.