**** Merged from MCS ****
[mono-project.git] / mcs / class / System.Windows.Forms / WINELib / QueryAccessibilityHelpEventArgs.cs
blob9a8d13b570cbea5f53a264ec797367881e6fc8ec
1 //
2 // System.Windows.Forms.QueryAccessibilityHelpEventArgs.cs
3 //
4 // Author:
5 // stubbed out by Daniel Carrera (dcarrera@math.toronto.edu)
6 // Partially completed by Dennis Hayes (dennish@raytek.com)
7 // Gianandrea Terzi (gterzi@lario.com)
8 //
9 // (C) 2002 Ximian, Inc
12 using System.Runtime.InteropServices;
14 namespace System.Windows.Forms {
16 // <summary>
17 // This is only a template. Nothing is implemented yet.
19 // </summary>
21 public class QueryAccessibilityHelpEventArgs : EventArgs {
23 #region Fields
25 string helpnamespace;
26 string helpstring;
27 string helpkeyword;
29 #endregion
31 // --- Constructor
33 public QueryAccessibilityHelpEventArgs()
35 this.helpkeyword = "";
36 this.helpnamespace = "";
37 this.helpstring = "";
39 public QueryAccessibilityHelpEventArgs(string helpNamespace, string helpString, string helpKeyword) {
40 this.helpkeyword = helpKeyword;
41 this.helpnamespace = helpNamespace;
42 this.helpstring =helpString;
46 #region Public Properties
47 [ComVisible(true)]
48 public string HelpKeyword {
49 get {
50 return helpkeyword;
52 set {
53 helpkeyword = value;
56 [ComVisible(true)]
57 public string HelpNamespace {
58 get {
59 return helpnamespace;
61 set {
62 helpnamespace = value;
65 [ComVisible(true)]
66 public string HelpString {
67 get {
68 return helpstring;
70 set {
71 helpstring = value;
74 #endregion
76 #region Public Methods
78 /// <summary>
79 /// Equality Operator
80 /// </summary>
81 ///
82 /// <remarks>
83 /// Compares two QueryAccessibilityHelpEventArgs objects.
84 /// The return value is based on the equivalence of
85 /// helpkeyword, helpnamespace and helpstring Property
86 /// of the two QueryAccessibilityHelpEventArgs.
87 /// </remarks>
88 public static bool operator == (QueryAccessibilityHelpEventArgs QueryAccessibilityHelpEventArgsA, QueryAccessibilityHelpEventArgs QueryAccessibilityHelpEventArgsB)
90 return ((QueryAccessibilityHelpEventArgsA.HelpKeyword == QueryAccessibilityHelpEventArgsB.HelpKeyword) && (QueryAccessibilityHelpEventArgsA.HelpNamespace == QueryAccessibilityHelpEventArgsB.HelpNamespace) && (QueryAccessibilityHelpEventArgsA.HelpString == QueryAccessibilityHelpEventArgsB.HelpString));
93 /// <summary>
94 /// Inequality Operator
95 /// </summary>
96 ///
97 /// <remarks>
98 /// Compares two QueryAccessibilityHelpEventArgs objects.
99 /// The return value is based on the equivalence of
100 /// helpkeyword, helpnamespace and helpstring Property
101 /// of the two QueryAccessibilityHelpEventArgs.
102 /// </remarks>
103 public static bool operator != (QueryAccessibilityHelpEventArgs QueryAccessibilityHelpEventArgsA, QueryAccessibilityHelpEventArgs QueryAccessibilityHelpEventArgsB)
105 return ((QueryAccessibilityHelpEventArgsA.HelpKeyword != QueryAccessibilityHelpEventArgsB.HelpKeyword) || (QueryAccessibilityHelpEventArgsA.HelpNamespace != QueryAccessibilityHelpEventArgsB.HelpNamespace) || (QueryAccessibilityHelpEventArgsA.HelpString != QueryAccessibilityHelpEventArgsB.HelpString));
109 /// <summary>
110 /// Equals Method
111 /// </summary>
113 /// <remarks>
114 /// Checks equivalence of this
115 /// QueryAccessibilityHelpEventArgs and another
116 /// object.
117 /// </remarks>
118 public override bool Equals (object obj)
120 if (!(obj is QueryAccessibilityHelpEventArgs))return false;
121 return (this == (QueryAccessibilityHelpEventArgs) obj);
124 /// <summary>
125 /// GetHashCode Method
126 /// </summary>
128 /// <remarks>
129 /// Calculates a hashing value.
130 /// </remarks>
131 [MonoTODO]
132 public override int GetHashCode ()
134 //FIXME: add class specific stuff;
135 return base.GetHashCode();
138 /// <summary>
139 /// ToString Method
140 /// </summary>
142 /// <remarks>
143 /// Formats the object as a string.
144 /// </remarks>
145 [MonoTODO]
146 public override string ToString ()
148 //FIXME: add class specific stuff;
149 return base.ToString();
153 #endregion