AxHost.cs 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830
  1. // Permission is hereby granted, free of charge, to any person obtaining
  2. // a copy of this software and associated documentation files (the
  3. // "Software"), to deal in the Software without restriction, including
  4. // without limitation the rights to use, copy, modify, merge, publish,
  5. // distribute, sublicense, and/or sell copies of the Software, and to
  6. // permit persons to whom the Software is furnished to do so, subject to
  7. // the following conditions:
  8. //
  9. // The above copyright notice and this permission notice shall be
  10. // included in all copies or substantial portions of the Software.
  11. //
  12. // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  13. // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  14. // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  15. // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
  16. // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
  17. // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
  18. // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  19. //
  20. // Copyright (c) 2005 Novell, Inc. (http://www.novell.com)
  21. //
  22. // Authors:
  23. // Peter Bartok <[email protected]>
  24. //
  25. //
  26. // NOT COMPLETE
  27. using System;
  28. using System.ComponentModel;
  29. using System.Drawing;
  30. using System.IO;
  31. using System.Runtime.InteropServices;
  32. using System.Runtime.Serialization;
  33. namespace System.Windows.Forms {
  34. [MonoTODO("Possibly implement this for Win32; find a way for Linux and Mac")]
  35. [DefaultEvent("Enter")]
  36. [Designer("System.Windows.Forms.Design.AxHostDesigner, " + Consts.AssemblySystem_Design, "System.ComponentModel.Design.IDesigner")]
  37. [DesignTimeVisible(false)]
  38. [ToolboxItem(false)]
  39. public abstract class AxHost : Control, ISupportInitialize, ICustomTypeDescriptor {
  40. #region AxHost Subclasses
  41. #region AxHost.ActiveXInvokeKind Enum
  42. public enum ActiveXInvokeKind {
  43. MethodInvoke = 0,
  44. PropertyGet = 1,
  45. PropertySet = 2
  46. }
  47. #endregion // AxHost.ActiveXInvokeKind Enum
  48. #region AxHost.AxComponentEditor Class
  49. public class AxComponentEditor : System.Windows.Forms.Design.WindowsFormsComponentEditor {
  50. public AxComponentEditor() {
  51. throw new NotImplementedException("COM/ActiveX support is not implemented");
  52. }
  53. public override bool EditComponent(ITypeDescriptorContext context, object obj, IWin32Window parent) {
  54. throw new NotImplementedException("COM/ActiveX support is not implemented");
  55. }
  56. }
  57. #endregion // AxHost.AxComponentEditor Class
  58. #region AxHost.ClsidAttribute
  59. [AttributeUsage(AttributeTargets.Class,Inherited=false)]
  60. public sealed class ClsidAttribute : Attribute {
  61. string clsid;
  62. public ClsidAttribute (string clsid) {
  63. this.clsid = clsid;
  64. }
  65. public string Value {
  66. get {
  67. return clsid;
  68. }
  69. }
  70. }
  71. #endregion AxHost.ClsidAttribute
  72. #region AxHost.ConnectionPointCookie
  73. [ComVisible(false)]
  74. public class ConnectionPointCookie {
  75. public ConnectionPointCookie(object source, object sink, Type eventInterface) {
  76. throw new NotImplementedException("COM/ActiveX support is not implemented");
  77. }
  78. public void Disconnect() {
  79. throw new NotImplementedException("COM/ActiveX support is not implemented");
  80. }
  81. ~ConnectionPointCookie() {
  82. throw new NotImplementedException("COM/ActiveX support is not implemented");
  83. }
  84. }
  85. #endregion // AxHost.ConnectionPointCookie
  86. #region AxHost.InvalidActiveXStateException Class
  87. public class InvalidActiveXStateException : Exception {
  88. public InvalidActiveXStateException(string name, ActiveXInvokeKind kind) {
  89. throw new NotImplementedException("COM/ActiveX support is not implemented");
  90. }
  91. public override string ToString() {
  92. throw new NotImplementedException("COM/ActiveX support is not implemented");
  93. }
  94. }
  95. #endregion // AxHost.InvalidActiveXStateException Class
  96. #region AxHost.State Class
  97. [Serializable]
  98. [TypeConverter("System.ComponentModel.TypeConverter, " + Consts.AssemblySystem)]
  99. public class State : ISerializable {
  100. public State(Stream ms, int storageType, bool manualUpdate, string licKey) {
  101. //throw new NotImplementedException("COM/ActiveX support is not implemented");
  102. }
  103. private State(SerializationInfo info, StreamingContext context) {
  104. }
  105. void ISerializable.GetObjectData(SerializationInfo si,StreamingContext context) {
  106. //throw new NotImplementedException("COM/ActiveX support is not implemented");
  107. }
  108. }
  109. #endregion // AxHost.State Class
  110. #region AxHost.TypeLibraryTimeStampAttribute Class
  111. [AttributeUsage(AttributeTargets.Assembly, Inherited=false)]
  112. public sealed class TypeLibraryTimeStampAttribute : Attribute {
  113. public TypeLibraryTimeStampAttribute(string timestamp) {
  114. throw new NotImplementedException("COM/ActiveX support is not implemented");
  115. }
  116. public DateTime Value {
  117. get {
  118. throw new NotImplementedException("COM/ActiveX support is not implemented");
  119. }
  120. }
  121. }
  122. #endregion // AxHost.TypeLibraryTimeStampAttribute Class
  123. #region AxHost.StateConverter Class
  124. public class StateConverter : System.ComponentModel.TypeConverter {
  125. public StateConverter() {
  126. throw new NotImplementedException("COM/ActiveX support is not implemented");
  127. }
  128. public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) {
  129. throw new NotImplementedException("COM/ActiveX support is not implemented");
  130. }
  131. public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) {
  132. throw new NotImplementedException("COM/ActiveX support is not implemented");
  133. }
  134. public override object ConvertFrom(ITypeDescriptorContext context, System.Globalization.CultureInfo culture, object value) {
  135. throw new NotImplementedException("COM/ActiveX support is not implemented");
  136. }
  137. public override object ConvertTo(ITypeDescriptorContext context, System.Globalization.CultureInfo culture, object value, Type destinationType) {
  138. throw new NotImplementedException("COM/ActiveX support is not implemented");
  139. }
  140. }
  141. #endregion // AxHost.StateConverter Class
  142. #endregion // AxHost Subclasses
  143. string text;
  144. #region Protected Constructors
  145. protected AxHost(string clsid) {
  146. text = "";
  147. throw new NotImplementedException("COM/ActiveX support is not implemented");
  148. }
  149. protected AxHost(string clsid, int flags) {
  150. throw new NotImplementedException("COM/ActiveX support is not implemented");
  151. }
  152. #endregion // Public Instance Properties
  153. #region Public Instance Properties
  154. [Browsable(false)]
  155. [EditorBrowsable(EditorBrowsableState.Never)]
  156. public override Color BackColor {
  157. get {
  158. throw new NotImplementedException("COM/ActiveX support is not implemented");
  159. }
  160. set {
  161. throw new NotImplementedException("COM/ActiveX support is not implemented");
  162. }
  163. }
  164. [Browsable(false)]
  165. [EditorBrowsable(EditorBrowsableState.Never)]
  166. public override Image BackgroundImage {
  167. get {
  168. throw new NotImplementedException("COM/ActiveX support is not implemented");
  169. }
  170. set {
  171. throw new NotImplementedException("COM/ActiveX support is not implemented");
  172. }
  173. }
  174. [Browsable(false)]
  175. [EditorBrowsable(EditorBrowsableState.Advanced)]
  176. public ContainerControl ContainingControl {
  177. get {
  178. throw new NotImplementedException("COM/ActiveX support is not implemented");
  179. }
  180. set {
  181. throw new NotImplementedException("COM/ActiveX support is not implemented");
  182. }
  183. }
  184. [Browsable(false)]
  185. [EditorBrowsable(EditorBrowsableState.Never)]
  186. public override ContextMenu ContextMenu {
  187. get {
  188. throw new NotImplementedException("COM/ActiveX support is not implemented");
  189. }
  190. set {
  191. throw new NotImplementedException("COM/ActiveX support is not implemented");
  192. }
  193. }
  194. [Browsable(false)]
  195. [EditorBrowsable(EditorBrowsableState.Never)]
  196. public override Cursor Cursor {
  197. get {
  198. throw new NotImplementedException("COM/ActiveX support is not implemented");
  199. }
  200. set {
  201. throw new NotImplementedException("COM/ActiveX support is not implemented");
  202. }
  203. }
  204. [Browsable(false)]
  205. [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
  206. [EditorBrowsable(EditorBrowsableState.Advanced)]
  207. public bool EditMode {
  208. get {
  209. throw new NotImplementedException("COM/ActiveX support is not implemented");
  210. }
  211. }
  212. [Browsable(false)]
  213. [EditorBrowsable(EditorBrowsableState.Never)]
  214. public new virtual bool Enabled {
  215. get {
  216. throw new NotImplementedException("COM/ActiveX support is not implemented");
  217. }
  218. set {
  219. throw new NotImplementedException("COM/ActiveX support is not implemented");
  220. }
  221. }
  222. [Browsable(false)]
  223. [EditorBrowsable(EditorBrowsableState.Never)]
  224. public override Font Font {
  225. get {
  226. throw new NotImplementedException("COM/ActiveX support is not implemented");
  227. }
  228. set {
  229. throw new NotImplementedException("COM/ActiveX support is not implemented");
  230. }
  231. }
  232. [Browsable(false)]
  233. [EditorBrowsable(EditorBrowsableState.Never)]
  234. public override Color ForeColor {
  235. get {
  236. throw new NotImplementedException("COM/ActiveX support is not implemented");
  237. }
  238. set {
  239. throw new NotImplementedException("COM/ActiveX support is not implemented");
  240. }
  241. }
  242. [Browsable(false)]
  243. [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
  244. [EditorBrowsable(EditorBrowsableState.Advanced)]
  245. public bool HasAboutBox {
  246. get {
  247. throw new NotImplementedException("COM/ActiveX support is not implemented");
  248. }
  249. }
  250. [Browsable(false)]
  251. [DefaultValue(null)]
  252. [EditorBrowsable(EditorBrowsableState.Advanced)]
  253. [RefreshProperties(RefreshProperties.All)]
  254. public AxHost.State OcxState {
  255. get {
  256. throw new NotImplementedException("COM/ActiveX support is not implemented");
  257. }
  258. set {
  259. throw new NotImplementedException("COM/ActiveX support is not implemented");
  260. }
  261. }
  262. [Browsable(false)]
  263. [EditorBrowsable(EditorBrowsableState.Never)]
  264. [Localizable(true)]
  265. public new virtual bool RightToLeft {
  266. get {
  267. throw new NotImplementedException("COM/ActiveX support is not implemented");
  268. }
  269. set {
  270. throw new NotImplementedException("COM/ActiveX support is not implemented");
  271. }
  272. }
  273. public override ISite Site {
  274. set {
  275. throw new NotImplementedException("COM/ActiveX support is not implemented");
  276. }
  277. }
  278. [Browsable(false)]
  279. [EditorBrowsable(EditorBrowsableState.Never)]
  280. public override string Text {
  281. get {
  282. return text;
  283. }
  284. set {
  285. text = value;
  286. }
  287. }
  288. #endregion // Protected Constructors
  289. #region Protected Instance Properties
  290. protected override CreateParams CreateParams {
  291. get {
  292. throw new NotImplementedException("COM/ActiveX support is not implemented");
  293. }
  294. }
  295. protected override Size DefaultSize {
  296. get {
  297. return new Size (75, 23);
  298. }
  299. }
  300. #endregion // Protected Instance Properties
  301. #region Protected Static Methods
  302. [CLSCompliant(false)]
  303. [EditorBrowsable(EditorBrowsableState.Advanced)]
  304. protected static Color GetColorFromOleColor(uint color){
  305. throw new NotImplementedException("COM/ActiveX support is not implemented");
  306. }
  307. [EditorBrowsable(EditorBrowsableState.Advanced)]
  308. protected static Font GetFontFromIFont(object font){
  309. throw new NotImplementedException("COM/ActiveX support is not implemented");
  310. }
  311. [EditorBrowsable(EditorBrowsableState.Advanced)]
  312. protected static Font GetFontFromIFontDisp(object font){
  313. throw new NotImplementedException("COM/ActiveX support is not implemented");
  314. }
  315. [EditorBrowsable(EditorBrowsableState.Advanced)]
  316. protected static object GetIFontDispFromFont(Font font){
  317. throw new NotImplementedException("COM/ActiveX support is not implemented");
  318. }
  319. [EditorBrowsable(EditorBrowsableState.Advanced)]
  320. protected static object GetIFontFromFont(Font font){
  321. throw new NotImplementedException("COM/ActiveX support is not implemented");
  322. }
  323. [EditorBrowsable(EditorBrowsableState.Advanced)]
  324. protected static object GetIPictureDispFromPicture(Image image){
  325. throw new NotImplementedException("COM/ActiveX support is not implemented");
  326. }
  327. [EditorBrowsable(EditorBrowsableState.Advanced)]
  328. protected static object GetIPictureFromCursor(Cursor cursor){
  329. throw new NotImplementedException("COM/ActiveX support is not implemented");
  330. }
  331. [EditorBrowsable(EditorBrowsableState.Advanced)]
  332. protected static object GetIPictureFromPicture(Image image){
  333. throw new NotImplementedException("COM/ActiveX support is not implemented");
  334. }
  335. [EditorBrowsable(EditorBrowsableState.Advanced)]
  336. protected static double GetOADateFromTime(DateTime time){
  337. throw new NotImplementedException("COM/ActiveX support is not implemented");
  338. }
  339. [CLSCompliant(false)]
  340. [EditorBrowsable(EditorBrowsableState.Advanced)]
  341. protected static uint GetOleColorFromColor(Color color){
  342. throw new NotImplementedException("COM/ActiveX support is not implemented");
  343. }
  344. [EditorBrowsable(EditorBrowsableState.Advanced)]
  345. protected static Image GetPictureFromIPicture(object picture){
  346. throw new NotImplementedException("COM/ActiveX support is not implemented");
  347. }
  348. [EditorBrowsable(EditorBrowsableState.Advanced)]
  349. protected static Image GetPictureFromIPictureDisp(object picture){
  350. throw new NotImplementedException("COM/ActiveX support is not implemented");
  351. }
  352. [EditorBrowsable(EditorBrowsableState.Advanced)]
  353. protected static DateTime GetTimeFromOADate(double date){
  354. throw new NotImplementedException("COM/ActiveX support is not implemented");
  355. }
  356. #endregion // Protected Static Methods
  357. #region Public Instance Methods
  358. [EditorBrowsable(EditorBrowsableState.Advanced)]
  359. public void BeginInit() {
  360. throw new NotImplementedException("COM/ActiveX support is not implemented");
  361. }
  362. public void DoVerb(int verb){
  363. throw new NotImplementedException("COM/ActiveX support is not implemented");
  364. }
  365. [EditorBrowsable(EditorBrowsableState.Advanced)]
  366. public void EndInit() {
  367. throw new NotImplementedException("COM/ActiveX support is not implemented");
  368. }
  369. [EditorBrowsable(EditorBrowsableState.Advanced)]
  370. public object GetOcx() {
  371. throw new NotImplementedException("COM/ActiveX support is not implemented");
  372. }
  373. public bool HasPropertyPages() {
  374. throw new NotImplementedException("COM/ActiveX support is not implemented");
  375. }
  376. [EditorBrowsable(EditorBrowsableState.Advanced)]
  377. public void InvokeEditMode(){
  378. throw new NotImplementedException("COM/ActiveX support is not implemented");
  379. }
  380. [EditorBrowsable(EditorBrowsableState.Advanced)]
  381. public void MakeDirty(){
  382. throw new NotImplementedException("COM/ActiveX support is not implemented");
  383. }
  384. public override bool PreProcessMessage(ref Message msg) {
  385. throw new NotImplementedException("COM/ActiveX support is not implemented");
  386. }
  387. public void ShowAboutBox() {
  388. throw new NotImplementedException("COM/ActiveX support is not implemented");
  389. }
  390. public void ShowPropertyPages() {
  391. throw new NotImplementedException("COM/ActiveX support is not implemented");
  392. }
  393. public void ShowPropertyPages(Control control) {
  394. throw new NotImplementedException("COM/ActiveX support is not implemented");
  395. }
  396. #endregion // Public Instance Methods
  397. #region Protected Instance Methods
  398. protected virtual void AttachInterfaces() {
  399. throw new NotImplementedException("COM/ActiveX support is not implemented");
  400. }
  401. protected override void CreateHandle() {
  402. throw new NotImplementedException("COM/ActiveX support is not implemented");
  403. }
  404. [EditorBrowsable(EditorBrowsableState.Advanced)]
  405. protected virtual void CreateSink(){
  406. throw new NotImplementedException("COM/ActiveX support is not implemented");
  407. }
  408. protected override void DestroyHandle() {
  409. throw new NotImplementedException("COM/ActiveX support is not implemented");
  410. }
  411. [EditorBrowsable(EditorBrowsableState.Advanced)]
  412. protected virtual void DetachSink(){
  413. throw new NotImplementedException("COM/ActiveX support is not implemented");
  414. }
  415. protected override void Dispose(bool disposing) {
  416. throw new NotImplementedException("COM/ActiveX support is not implemented");
  417. }
  418. protected override bool IsInputChar(char charCode) {
  419. throw new NotImplementedException("COM/ActiveX support is not implemented");
  420. }
  421. protected override void OnBackColorChanged(EventArgs e) {
  422. throw new NotImplementedException("COM/ActiveX support is not implemented");
  423. }
  424. protected override void OnFontChanged(EventArgs e) {
  425. throw new NotImplementedException("COM/ActiveX support is not implemented");
  426. }
  427. protected override void OnForeColorChanged(EventArgs e) {
  428. throw new NotImplementedException("COM/ActiveX support is not implemented");
  429. }
  430. protected override void OnHandleCreated(EventArgs e) {
  431. throw new NotImplementedException("COM/ActiveX support is not implemented");
  432. }
  433. protected virtual void OnInPlaceActive() {
  434. throw new NotImplementedException("COM/ActiveX support is not implemented");
  435. }
  436. [EditorBrowsable(EditorBrowsableState.Advanced)]
  437. protected override void OnLostFocus(EventArgs e) {
  438. throw new NotImplementedException("COM/ActiveX support is not implemented");
  439. }
  440. protected override bool ProcessDialogKey(Keys keyData) {
  441. throw new NotImplementedException("COM/ActiveX support is not implemented");
  442. }
  443. protected override bool ProcessMnemonic(char charCode) {
  444. throw new NotImplementedException("COM/ActiveX support is not implemented");
  445. }
  446. [EditorBrowsable(EditorBrowsableState.Advanced)]
  447. protected bool PropsValid(){
  448. throw new NotImplementedException("COM/ActiveX support is not implemented");
  449. }
  450. [EditorBrowsable(EditorBrowsableState.Advanced)]
  451. protected void RaiseOnMouseDown(short button, short shift, int x, int y){
  452. throw new NotImplementedException("COM/ActiveX support is not implemented");
  453. }
  454. [EditorBrowsable(EditorBrowsableState.Advanced)]
  455. protected void RaiseOnMouseDown(short button, short shift, float x, float y){
  456. throw new NotImplementedException("COM/ActiveX support is not implemented");
  457. }
  458. [EditorBrowsable(EditorBrowsableState.Advanced)]
  459. protected void RaiseOnMouseDown(object o1, object o2, object o3, object o4){
  460. throw new NotImplementedException("COM/ActiveX support is not implemented");
  461. }
  462. [EditorBrowsable(EditorBrowsableState.Advanced)]
  463. protected void RaiseOnMouseMove(short button, short shift, int x, int y){
  464. throw new NotImplementedException("COM/ActiveX support is not implemented");
  465. }
  466. [EditorBrowsable(EditorBrowsableState.Advanced)]
  467. protected void RaiseOnMouseMove(short button, short shift, float x, float y){
  468. throw new NotImplementedException("COM/ActiveX support is not implemented");
  469. }
  470. [EditorBrowsable(EditorBrowsableState.Advanced)]
  471. protected void RaiseOnMouseMove(object o1, object o2, object o3, object o4){
  472. throw new NotImplementedException("COM/ActiveX support is not implemented");
  473. }
  474. [EditorBrowsable(EditorBrowsableState.Advanced)]
  475. protected void RaiseOnMouseUp(short button, short shift, int x, int y){
  476. throw new NotImplementedException("COM/ActiveX support is not implemented");
  477. }
  478. [EditorBrowsable(EditorBrowsableState.Advanced)]
  479. protected void RaiseOnMouseUp(short button, short shift, float x, float y){
  480. throw new NotImplementedException("COM/ActiveX support is not implemented");
  481. }
  482. [EditorBrowsable(EditorBrowsableState.Advanced)]
  483. protected void RaiseOnMouseUp(object o1, object o2, object o3, object o4){
  484. throw new NotImplementedException("COM/ActiveX support is not implemented");
  485. }
  486. protected void SetAboutBoxDelegate(AxHost.AboutBoxDelegate d) {
  487. throw new NotImplementedException("COM/ActiveX support is not implemented");
  488. }
  489. protected override void SetBoundsCore(int x, int y, int width, int height, BoundsSpecified specified) {
  490. throw new NotImplementedException("COM/ActiveX support is not implemented");
  491. }
  492. protected override void SetVisibleCore(bool value) {
  493. throw new NotImplementedException("COM/ActiveX support is not implemented");
  494. }
  495. protected override void WndProc(ref Message m) {
  496. throw new NotImplementedException("COM/ActiveX support is not implemented");
  497. }
  498. #endregion // Protected Instance Methods
  499. #region Private Instance Methods
  500. [EditorBrowsable(EditorBrowsableState.Never)]
  501. private bool ShouldSerializeContainingControl() {
  502. throw new NotImplementedException("COM/ActiveX support is not implemented");
  503. }
  504. #endregion // Protected Instance Methods
  505. #region Events
  506. [Browsable(false)]
  507. [EditorBrowsable(EditorBrowsableState.Never)]
  508. public event EventHandler BackColorChanged;
  509. [Browsable(false)]
  510. [EditorBrowsable(EditorBrowsableState.Never)]
  511. public event EventHandler BackgroundImageChanged;
  512. [Browsable(false)]
  513. [EditorBrowsable(EditorBrowsableState.Never)]
  514. public event EventHandler BindingContextChanged;
  515. [Browsable(false)]
  516. [EditorBrowsable(EditorBrowsableState.Never)]
  517. public event UICuesEventHandler ChangeUICues;
  518. [Browsable(false)]
  519. [EditorBrowsable(EditorBrowsableState.Never)]
  520. public event EventHandler Click;
  521. [Browsable(false)]
  522. [EditorBrowsable(EditorBrowsableState.Never)]
  523. public event EventHandler ContextMenuChanged;
  524. [Browsable(false)]
  525. [EditorBrowsable(EditorBrowsableState.Never)]
  526. public event EventHandler CursorChanged;
  527. [Browsable(false)]
  528. [EditorBrowsable(EditorBrowsableState.Never)]
  529. public event EventHandler DoubleClick;
  530. [Browsable(false)]
  531. [EditorBrowsable(EditorBrowsableState.Never)]
  532. public event DragEventHandler DragDrop;
  533. [Browsable(false)]
  534. [EditorBrowsable(EditorBrowsableState.Never)]
  535. public event DragEventHandler DragEnter;
  536. [Browsable(false)]
  537. [EditorBrowsable(EditorBrowsableState.Never)]
  538. public event EventHandler DragLeave;
  539. [Browsable(false)]
  540. [EditorBrowsable(EditorBrowsableState.Never)]
  541. public event DragEventHandler DragOver;
  542. [Browsable(false)]
  543. [EditorBrowsable(EditorBrowsableState.Never)]
  544. public event EventHandler EnabledChanged;
  545. [Browsable(false)]
  546. [EditorBrowsable(EditorBrowsableState.Never)]
  547. public event EventHandler FontChanged;
  548. [Browsable(false)]
  549. [EditorBrowsable(EditorBrowsableState.Never)]
  550. public event EventHandler ForeColorChanged;
  551. [Browsable(false)]
  552. [EditorBrowsable(EditorBrowsableState.Never)]
  553. public event GiveFeedbackEventHandler GiveFeedback;
  554. [Browsable(false)]
  555. [EditorBrowsable(EditorBrowsableState.Never)]
  556. public event HelpEventHandler HelpRequested;
  557. [Browsable(false)]
  558. [EditorBrowsable(EditorBrowsableState.Never)]
  559. public event EventHandler ImeModeChanged;
  560. [Browsable(false)]
  561. [EditorBrowsable(EditorBrowsableState.Never)]
  562. public event KeyEventHandler KeyDown;
  563. [Browsable(false)]
  564. [EditorBrowsable(EditorBrowsableState.Never)]
  565. public event KeyPressEventHandler KeyPress;
  566. [Browsable(false)]
  567. [EditorBrowsable(EditorBrowsableState.Never)]
  568. public event KeyEventHandler KeyUp;
  569. [Browsable(false)]
  570. [EditorBrowsable(EditorBrowsableState.Never)]
  571. public event LayoutEventHandler Layout;
  572. [Browsable(false)]
  573. [EditorBrowsable(EditorBrowsableState.Never)]
  574. public event MouseEventHandler MouseDown;
  575. [Browsable(false)]
  576. [EditorBrowsable(EditorBrowsableState.Never)]
  577. public event EventHandler MouseEnter;
  578. [Browsable(false)]
  579. [EditorBrowsable(EditorBrowsableState.Never)]
  580. public event EventHandler MouseHover;
  581. [Browsable(false)]
  582. [EditorBrowsable(EditorBrowsableState.Never)]
  583. public event EventHandler MouseLeave;
  584. [Browsable(false)]
  585. [EditorBrowsable(EditorBrowsableState.Never)]
  586. public event MouseEventHandler MouseMove;
  587. [Browsable(false)]
  588. [EditorBrowsable(EditorBrowsableState.Never)]
  589. public event MouseEventHandler MouseUp;
  590. [Browsable(false)]
  591. [EditorBrowsable(EditorBrowsableState.Never)]
  592. public event MouseEventHandler MouseWheel;
  593. [Browsable(false)]
  594. [EditorBrowsable(EditorBrowsableState.Never)]
  595. public event PaintEventHandler Paint;
  596. [Browsable(false)]
  597. [EditorBrowsable(EditorBrowsableState.Never)]
  598. public event QueryAccessibilityHelpEventHandler QueryAccessibilityHelp;
  599. [Browsable(false)]
  600. [EditorBrowsable(EditorBrowsableState.Never)]
  601. public event QueryContinueDragEventHandler QueryContinueDrag;
  602. [Browsable(false)]
  603. [EditorBrowsable(EditorBrowsableState.Never)]
  604. public event EventHandler RightToLeftChanged;
  605. [Browsable(false)]
  606. [EditorBrowsable(EditorBrowsableState.Never)]
  607. public event EventHandler StyleChanged;
  608. [Browsable(false)]
  609. [EditorBrowsable(EditorBrowsableState.Never)]
  610. public event EventHandler TabIndexChanged;
  611. [Browsable(false)]
  612. [EditorBrowsable(EditorBrowsableState.Never)]
  613. public event EventHandler TabStopChanged;
  614. [Browsable(false)]
  615. [EditorBrowsable(EditorBrowsableState.Never)]
  616. public event EventHandler TextChanged;
  617. #endregion // Events
  618. #region Delegates
  619. [Serializable]
  620. protected delegate void AboutBoxDelegate();
  621. #endregion // Delegates
  622. #region Interfaces
  623. [EditorBrowsable(EditorBrowsableState.Advanced)]
  624. AttributeCollection ICustomTypeDescriptor.GetAttributes() {
  625. throw new NotImplementedException("COM/ActiveX support is not implemented");
  626. }
  627. [EditorBrowsable(EditorBrowsableState.Advanced)]
  628. string ICustomTypeDescriptor.GetClassName() {
  629. throw new NotImplementedException("COM/ActiveX support is not implemented");
  630. }
  631. [EditorBrowsable(EditorBrowsableState.Advanced)]
  632. string ICustomTypeDescriptor.GetComponentName() {
  633. throw new NotImplementedException("COM/ActiveX support is not implemented");
  634. }
  635. [EditorBrowsable(EditorBrowsableState.Advanced)]
  636. TypeConverter ICustomTypeDescriptor.GetConverter() {
  637. throw new NotImplementedException("COM/ActiveX support is not implemented");
  638. }
  639. [EditorBrowsable(EditorBrowsableState.Advanced)]
  640. EventDescriptor ICustomTypeDescriptor.GetDefaultEvent() {
  641. throw new NotImplementedException("COM/ActiveX support is not implemented");
  642. }
  643. [EditorBrowsable(EditorBrowsableState.Advanced)]
  644. PropertyDescriptor ICustomTypeDescriptor.GetDefaultProperty() {
  645. throw new NotImplementedException("COM/ActiveX support is not implemented");
  646. }
  647. [EditorBrowsable(EditorBrowsableState.Advanced)]
  648. object ICustomTypeDescriptor.GetEditor(Type editorBaseType) {
  649. throw new NotImplementedException("COM/ActiveX support is not implemented");
  650. }
  651. [EditorBrowsable(EditorBrowsableState.Advanced)]
  652. EventDescriptorCollection ICustomTypeDescriptor.GetEvents() {
  653. throw new NotImplementedException("COM/ActiveX support is not implemented");
  654. }
  655. [EditorBrowsable(EditorBrowsableState.Advanced)]
  656. EventDescriptorCollection ICustomTypeDescriptor.GetEvents(Attribute[] attributes) {
  657. throw new NotImplementedException("COM/ActiveX support is not implemented");
  658. }
  659. [EditorBrowsable(EditorBrowsableState.Advanced)]
  660. PropertyDescriptorCollection ICustomTypeDescriptor.GetProperties() {
  661. throw new NotImplementedException("COM/ActiveX support is not implemented");
  662. }
  663. [EditorBrowsable(EditorBrowsableState.Advanced)]
  664. PropertyDescriptorCollection ICustomTypeDescriptor.GetProperties(Attribute[] attributes) {
  665. throw new NotImplementedException("COM/ActiveX support is not implemented");
  666. }
  667. [EditorBrowsable(EditorBrowsableState.Advanced)]
  668. object ICustomTypeDescriptor.GetPropertyOwner(PropertyDescriptor pd) {
  669. throw new NotImplementedException("COM/ActiveX support is not implemented");
  670. }
  671. #endregion // Interfaces
  672. }
  673. }