-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathEventArgs.cs
53 lines (45 loc) · 1.47 KB
/
EventArgs.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace AutocompleteMenuNS
{
public class SelectingEventArgs : EventArgs
{
public AutocompleteItem Item { get; internal set; }
public bool Cancel { get; set; }
public int SelectedIndex { get; set; }
public bool Handled { get; set; }
}
public class SelectedEventArgs : EventArgs
{
public AutocompleteItem Item { get; internal set; }
public Control Control { get; set; }
}
public class HoveredEventArgs : EventArgs
{
public AutocompleteItem Item { get; internal set; }
}
public class PaintItemEventArgs : PaintEventArgs
{
public RectangleF TextRect { get; internal set; }
public StringFormat StringFormat { get; internal set; }
public Font Font { get; internal set; }
public bool IsSelected { get; internal set; }
public bool IsHovered { get; internal set; }
public Colors Colors { get; internal set; }
public PaintItemEventArgs(Graphics graphics, Rectangle clipRect):base(graphics, clipRect)
{
}
}
public class WrapperNeededEventArgs : EventArgs
{
public Control TargetControl { get; private set; }
public ITextBoxWrapper Wrapper { get; set; }
public WrapperNeededEventArgs(Control targetControl)
{
this.TargetControl = targetControl;
}
}
}