* XplatUIX11.cs: Removed unused hwnd var in SetBorderStyle.
[mono.git] / mcs / class / Managed.Windows.Forms / System.Windows.Forms / SearchForVirtualItemEventArgs.cs
1 //
2 // SearchForVirtualItemEventArgs.cs
3 //
4 // Permission is hereby granted, free of charge, to any person obtaining
5 // a copy of this software and associated documentation files (the
6 // "Software"), to deal in the Software without restriction, including
7 // without limitation the rights to use, copy, modify, merge, publish,
8 // distribute, sublicense, and/or sell copies of the Software, and to
9 // permit persons to whom the Software is furnished to do so, subject to
10 // the following conditions:
11 // 
12 // The above copyright notice and this permission notice shall be
13 // included in all copies or substantial portions of the Software.
14 // 
15 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
16 // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
17 // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
18 // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
19 // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
20 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
21 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22 //
23 // Copyright (c) 2006 Novell, Inc.
24 //
25 // Authors:
26 //      Jonathan Pobst (monkey@jpobst.com)
27 //
28
29 #if NET_2_0
30 using System.Drawing;
31
32 namespace System.Windows.Forms
33 {
34         public class SearchForVirtualItemEventArgs : EventArgs
35         {
36                 private SearchDirectionHint direction;
37                 private bool include_sub_items_in_search;
38                 private int index;
39                 private bool is_prefix_search;
40                 private bool is_text_search;
41                 private int start_index;
42                 private Point starting_point;
43                 private string text;
44
45                 #region Public Constructors
46                 public SearchForVirtualItemEventArgs (bool isTextSearch, bool isPrefixSearch,
47                         bool includeSubItemsInSearch, string text, Point startingPoint, 
48                         SearchDirectionHint direction, int startIndex) : base ()
49                 {
50                         this.is_text_search = isTextSearch;
51                         this.is_prefix_search = isPrefixSearch;
52                         this.include_sub_items_in_search = includeSubItemsInSearch;
53                         this.text = text;
54                         this.starting_point = startingPoint;
55                         this.direction = direction;
56                         this.start_index = startIndex;
57                         this.index = -1;
58                 }
59                 #endregion      // Public Constructors
60
61                 #region Public Instance Properties
62                 public SearchDirectionHint Direction {
63                         get { return this.direction; }
64                 }
65
66                 public bool IncludeSubItemsInSearch {
67                         get { return this.include_sub_items_in_search; }
68                 }
69                 
70                 public int Index {
71                         get { return this.index; }
72                         set { this.index = value; }
73                 }
74                 
75                 public bool IsPrefixSearch {
76                         get { return this.is_prefix_search; }
77                 }
78                 
79                 public bool IsTextSearch {
80                         get { return this.is_text_search; }
81                 }
82                 
83                 public int StartIndex {
84                         get { return this.start_index; }
85                 }
86                 
87                 public Point StartingPoint {
88                         get { return this.starting_point; }
89                 }
90                 
91                 public string Text {
92                         get { return this.text; }
93                 }
94                         
95                 #endregion      // Public Instance Properties
96         }
97 }
98 #endif