2 // SearchForVirtualItemEventArgs.cs
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:
12 // The above copyright notice and this permission notice shall be
13 // included in all copies or substantial portions of the Software.
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.
23 // Copyright (c) 2006 Novell, Inc.
26 // Jonathan Pobst (monkey@jpobst.com)
32 namespace System.Windows.Forms
34 public class SearchForVirtualItemEventArgs : EventArgs
36 private SearchDirectionHint direction;
37 private bool include_sub_items_in_search;
39 private bool is_prefix_search;
40 private bool is_text_search;
41 private int start_index;
42 private Point starting_point;
45 #region Public Constructors
46 public SearchForVirtualItemEventArgs (bool isTextSearch, bool isPrefixSearch,
47 bool includeSubItemsInSearch, string text, Point startingPoint,
48 SearchDirectionHint direction, int startIndex) : base ()
50 this.is_text_search = isTextSearch;
51 this.is_prefix_search = isPrefixSearch;
52 this.include_sub_items_in_search = includeSubItemsInSearch;
54 this.starting_point = startingPoint;
55 this.direction = direction;
56 this.start_index = startIndex;
59 #endregion // Public Constructors
61 #region Public Instance Properties
62 public SearchDirectionHint Direction {
63 get { return this.direction; }
66 public bool IncludeSubItemsInSearch {
67 get { return this.include_sub_items_in_search; }
71 get { return this.index; }
72 set { this.index = value; }
75 public bool IsPrefixSearch {
76 get { return this.is_prefix_search; }
79 public bool IsTextSearch {
80 get { return this.is_text_search; }
83 public int StartIndex {
84 get { return this.start_index; }
87 public Point StartingPoint {
88 get { return this.starting_point; }
92 get { return this.text; }
95 #endregion // Public Instance Properties