2 // System.Windows.Forms.QueryAccessibilityHelpEventArgs.cs
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)
9 // (C) 2002 Ximian, Inc
12 using System
.Runtime
.InteropServices
;
14 namespace System
.Windows
.Forms
{
17 // This is only a template. Nothing is implemented yet.
21 public class QueryAccessibilityHelpEventArgs
: EventArgs
{
33 public QueryAccessibilityHelpEventArgs()
35 this.helpkeyword
= "";
36 this.helpnamespace
= "";
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
48 public string HelpKeyword
{
57 public string HelpNamespace
{
62 helpnamespace
= value;
66 public string HelpString
{
76 #region Public Methods
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.
88 public static bool operator == (QueryAccessibilityHelpEventArgs QueryAccessibilityHelpEventArgsA
, QueryAccessibilityHelpEventArgs QueryAccessibilityHelpEventArgsB
)
90 return ((QueryAccessibilityHelpEventArgsA
.HelpKeyword
== QueryAccessibilityHelpEventArgsB
.HelpKeyword
) && (QueryAccessibilityHelpEventArgsA
.HelpNamespace
== QueryAccessibilityHelpEventArgsB
.HelpNamespace
) && (QueryAccessibilityHelpEventArgsA
.HelpString
== QueryAccessibilityHelpEventArgsB
.HelpString
));
94 /// Inequality Operator
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.
103 public static bool operator != (QueryAccessibilityHelpEventArgs QueryAccessibilityHelpEventArgsA
, QueryAccessibilityHelpEventArgs QueryAccessibilityHelpEventArgsB
)
105 return ((QueryAccessibilityHelpEventArgsA
.HelpKeyword
!= QueryAccessibilityHelpEventArgsB
.HelpKeyword
) || (QueryAccessibilityHelpEventArgsA
.HelpNamespace
!= QueryAccessibilityHelpEventArgsB
.HelpNamespace
) || (QueryAccessibilityHelpEventArgsA
.HelpString
!= QueryAccessibilityHelpEventArgsB
.HelpString
));
114 /// Checks equivalence of this
115 /// QueryAccessibilityHelpEventArgs and another
118 public override bool Equals (object obj
)
120 if (!(obj
is QueryAccessibilityHelpEventArgs
))return false;
121 return (this == (QueryAccessibilityHelpEventArgs
) obj
);
125 /// GetHashCode Method
129 /// Calculates a hashing value.
132 public override int GetHashCode ()
134 //FIXME: add class specific stuff;
135 return base.GetHashCode();
143 /// Formats the object as a string.
146 public override string ToString ()
148 //FIXME: add class specific stuff;
149 return base.ToString();