Terminal.Gui.MenuBar.html 59 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497
  1. <!DOCTYPE html>
  2. <!--[if IE]><![endif]-->
  3. <html>
  4. <head>
  5. <meta charset="utf-8">
  6. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  7. <title>Class MenuBar
  8. </title>
  9. <meta name="viewport" content="width=device-width">
  10. <meta name="title" content="Class MenuBar
  11. ">
  12. <meta name="generator" content="docfx 2.59.3.0">
  13. <link rel="shortcut icon" href="../../favicon.ico">
  14. <link rel="stylesheet" href="../../styles/docfx.vendor.css">
  15. <link rel="stylesheet" href="../../styles/docfx.css">
  16. <link rel="stylesheet" href="../../styles/main.css">
  17. <meta property="docfx:navrel" content="../../toc.html">
  18. <meta property="docfx:tocrel" content="toc.html">
  19. <meta property="docfx:rel" content="../../">
  20. </head>
  21. <body data-spy="scroll" data-target="#affix" data-offset="120">
  22. <div id="wrapper">
  23. <header>
  24. <nav id="autocollapse" class="navbar navbar-inverse ng-scope" role="navigation">
  25. <div class="container">
  26. <div class="navbar-header">
  27. <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar">
  28. <span class="sr-only">Toggle navigation</span>
  29. <span class="icon-bar"></span>
  30. <span class="icon-bar"></span>
  31. <span class="icon-bar"></span>
  32. </button>
  33. <a class="navbar-brand" href="../../index.html">
  34. <img id="logo" class="svg" src="../../images/logo48.png" alt="">
  35. </a>
  36. </div>
  37. <div class="collapse navbar-collapse" id="navbar">
  38. <form class="navbar-form navbar-right" role="search" id="search">
  39. <div class="form-group">
  40. <input type="text" class="form-control" id="search-query" placeholder="Search" autocomplete="off">
  41. </div>
  42. </form>
  43. </div>
  44. </div>
  45. </nav>
  46. <div class="subnav navbar navbar-default">
  47. <div class="container hide-when-search" id="breadcrumb">
  48. <ul class="breadcrumb">
  49. <li></li>
  50. </ul>
  51. </div>
  52. </div>
  53. </header>
  54. <div class="container body-content">
  55. <div id="search-results">
  56. <div class="search-list">Search Results for <span></span></div>
  57. <div class="sr-items">
  58. <p><i class="glyphicon glyphicon-refresh index-loading"></i></p>
  59. </div>
  60. <ul id="pagination" data-first="First" data-prev="Previous" data-next="Next" data-last="Last"></ul>
  61. </div>
  62. </div>
  63. <div role="main" class="container body-content hide-when-search">
  64. <div class="sidenav hide-when-search">
  65. <a class="btn toc-toggle collapse" data-toggle="collapse" href="#sidetoggle" aria-expanded="false" aria-controls="sidetoggle">Show / Hide Table of Contents</a>
  66. <div class="sidetoggle collapse" id="sidetoggle">
  67. <div id="sidetoc"></div>
  68. </div>
  69. </div>
  70. <div class="article row grid-right">
  71. <div class="col-md-10">
  72. <article class="content wrap" id="_content" data-uid="Terminal.Gui.MenuBar">
  73. <h1 id="Terminal_Gui_MenuBar" data-uid="Terminal.Gui.MenuBar" class="text-break">Class MenuBar
  74. </h1>
  75. <div class="markdown level0 summary">
  76. Provides a menu bar with drop-down and cascading menus.
  77. </div>
  78. <div class="markdown level0 conceptual"></div>
  79. <div class="inheritance">
  80. <h5>Inheritance</h5>
  81. <div class="level0"><span class="xref">System.Object</span></div>
  82. <div class="level1"><a class="xref" href="Terminal.Gui.Responder.html">Responder</a></div>
  83. <div class="level2"><a class="xref" href="Terminal.Gui.View.html">View</a></div>
  84. <div class="level3"><span class="xref">MenuBar</span></div>
  85. </div>
  86. <div class="implements">
  87. <h5>Implements</h5>
  88. <div><span class="xref">System.IDisposable</span></div>
  89. <div><span class="xref">System.ComponentModel.ISupportInitializeNotification</span></div>
  90. <div><span class="xref">System.ComponentModel.ISupportInitialize</span></div>
  91. </div>
  92. <div class="inheritedMembers">
  93. <h5>Inherited Members</h5>
  94. <div>
  95. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_GetMinWidthHeight_Terminal_Gui_Size__">View.GetMinWidthHeight(Size)</a>
  96. </div>
  97. <div>
  98. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_SetMinWidthHeight">View.SetMinWidthHeight()</a>
  99. </div>
  100. <div>
  101. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_UpdateTextFormatterText">View.UpdateTextFormatterText()</a>
  102. </div>
  103. <div>
  104. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_ProcessResizeView">View.ProcessResizeView()</a>
  105. </div>
  106. <div>
  107. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_SetNeedsDisplay">View.SetNeedsDisplay()</a>
  108. </div>
  109. <div>
  110. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_ClearLayoutNeeded">View.ClearLayoutNeeded()</a>
  111. </div>
  112. <div>
  113. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_SetNeedsDisplay_Terminal_Gui_Rect_">View.SetNeedsDisplay(Rect)</a>
  114. </div>
  115. <div>
  116. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_SetChildNeedsDisplay">View.SetChildNeedsDisplay()</a>
  117. </div>
  118. <div>
  119. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Add_Terminal_Gui_View_">View.Add(View)</a>
  120. </div>
  121. <div>
  122. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Add_Terminal_Gui_View___">View.Add(View[])</a>
  123. </div>
  124. <div>
  125. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_RemoveAll">View.RemoveAll()</a>
  126. </div>
  127. <div>
  128. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Remove_Terminal_Gui_View_">View.Remove(View)</a>
  129. </div>
  130. <div>
  131. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_BringSubviewToFront_Terminal_Gui_View_">View.BringSubviewToFront(View)</a>
  132. </div>
  133. <div>
  134. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_SendSubviewToBack_Terminal_Gui_View_">View.SendSubviewToBack(View)</a>
  135. </div>
  136. <div>
  137. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_SendSubviewBackwards_Terminal_Gui_View_">View.SendSubviewBackwards(View)</a>
  138. </div>
  139. <div>
  140. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_BringSubviewForward_Terminal_Gui_View_">View.BringSubviewForward(View)</a>
  141. </div>
  142. <div>
  143. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Clear">View.Clear()</a>
  144. </div>
  145. <div>
  146. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Clear_Terminal_Gui_Rect_">View.Clear(Rect)</a>
  147. </div>
  148. <div>
  149. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_ScreenToView_System_Int32_System_Int32_">View.ScreenToView(Int32, Int32)</a>
  150. </div>
  151. <div>
  152. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_ClipToBounds">View.ClipToBounds()</a>
  153. </div>
  154. <div>
  155. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_SetClip_Terminal_Gui_Rect_">View.SetClip(Rect)</a>
  156. </div>
  157. <div>
  158. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_DrawFrame_Terminal_Gui_Rect_System_Int32_System_Boolean_">View.DrawFrame(Rect, Int32, Boolean)</a>
  159. </div>
  160. <div>
  161. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_DrawHotString_NStack_ustring_Terminal_Gui_Attribute_Terminal_Gui_Attribute_">View.DrawHotString(ustring, Attribute, Attribute)</a>
  162. </div>
  163. <div>
  164. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_DrawHotString_NStack_ustring_System_Boolean_Terminal_Gui_ColorScheme_">View.DrawHotString(ustring, Boolean, ColorScheme)</a>
  165. </div>
  166. <div>
  167. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Move_System_Int32_System_Int32_System_Boolean_">View.Move(Int32, Int32, Boolean)</a>
  168. </div>
  169. <div>
  170. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_OnAdded_Terminal_Gui_View_">View.OnAdded(View)</a>
  171. </div>
  172. <div>
  173. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_OnRemoved_Terminal_Gui_View_">View.OnRemoved(View)</a>
  174. </div>
  175. <div>
  176. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_AddRune_System_Int32_System_Int32_System_Rune_">View.AddRune(Int32, Int32, Rune)</a>
  177. </div>
  178. <div>
  179. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_ClearNeedsDisplay">View.ClearNeedsDisplay()</a>
  180. </div>
  181. <div>
  182. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_OnDrawContent_Terminal_Gui_Rect_">View.OnDrawContent(Rect)</a>
  183. </div>
  184. <div>
  185. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_OnDrawContentComplete_Terminal_Gui_Rect_">View.OnDrawContentComplete(Rect)</a>
  186. </div>
  187. <div>
  188. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_SetFocus">View.SetFocus()</a>
  189. </div>
  190. <div>
  191. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_InvokeKeybindings_Terminal_Gui_KeyEvent_">View.InvokeKeybindings(KeyEvent)</a>
  192. </div>
  193. <div>
  194. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_AddKeyBinding_Terminal_Gui_Key_Terminal_Gui_Command_">View.AddKeyBinding(Key, Command)</a>
  195. </div>
  196. <div>
  197. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_ReplaceKeyBinding_Terminal_Gui_Key_Terminal_Gui_Key_">View.ReplaceKeyBinding(Key, Key)</a>
  198. </div>
  199. <div>
  200. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_ContainsKeyBinding_Terminal_Gui_Key_">View.ContainsKeyBinding(Key)</a>
  201. </div>
  202. <div>
  203. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_ClearKeybindings">View.ClearKeybindings()</a>
  204. </div>
  205. <div>
  206. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_ClearKeybinding_Terminal_Gui_Key_">View.ClearKeybinding(Key)</a>
  207. </div>
  208. <div>
  209. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_ClearKeybinding_Terminal_Gui_Command_">View.ClearKeybinding(Command)</a>
  210. </div>
  211. <div>
  212. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_AddCommand_Terminal_Gui_Command_System_Func_System_Nullable_System_Boolean___">View.AddCommand(Command, Func&lt;Nullable&lt;Boolean&gt;&gt;)</a>
  213. </div>
  214. <div>
  215. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_GetSupportedCommands">View.GetSupportedCommands()</a>
  216. </div>
  217. <div>
  218. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_GetKeyFromCommand_Terminal_Gui_Command_">View.GetKeyFromCommand(Command)</a>
  219. </div>
  220. <div>
  221. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_EnsureFocus">View.EnsureFocus()</a>
  222. </div>
  223. <div>
  224. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_FocusFirst">View.FocusFirst()</a>
  225. </div>
  226. <div>
  227. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_FocusLast">View.FocusLast()</a>
  228. </div>
  229. <div>
  230. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_FocusPrev">View.FocusPrev()</a>
  231. </div>
  232. <div>
  233. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_FocusNext">View.FocusNext()</a>
  234. </div>
  235. <div>
  236. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_LayoutSubviews">View.LayoutSubviews()</a>
  237. </div>
  238. <div>
  239. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_ToString">View.ToString()</a>
  240. </div>
  241. <div>
  242. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_GetAutoSize">View.GetAutoSize()</a>
  243. </div>
  244. <div>
  245. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_GetHotKeySpecifierLength_System_Boolean_">View.GetHotKeySpecifierLength(Boolean)</a>
  246. </div>
  247. <div>
  248. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_GetTextFormatterBoundsSize">View.GetTextFormatterBoundsSize()</a>
  249. </div>
  250. <div>
  251. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_GetBoundsTextFormatterSize">View.GetBoundsTextFormatterSize()</a>
  252. </div>
  253. <div>
  254. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_OnMouseEnter_Terminal_Gui_MouseEvent_">View.OnMouseEnter(MouseEvent)</a>
  255. </div>
  256. <div>
  257. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_OnMouseLeave_Terminal_Gui_MouseEvent_">View.OnMouseLeave(MouseEvent)</a>
  258. </div>
  259. <div>
  260. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_OnMouseEvent_Terminal_Gui_MouseEvent_">View.OnMouseEvent(MouseEvent)</a>
  261. </div>
  262. <div>
  263. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_OnMouseClick_Terminal_Gui_View_MouseEventArgs_">View.OnMouseClick(View.MouseEventArgs)</a>
  264. </div>
  265. <div>
  266. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_OnCanFocusChanged">View.OnCanFocusChanged()</a>
  267. </div>
  268. <div>
  269. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_OnEnabledChanged">View.OnEnabledChanged()</a>
  270. </div>
  271. <div>
  272. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_OnVisibleChanged">View.OnVisibleChanged()</a>
  273. </div>
  274. <div>
  275. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Dispose_System_Boolean_">View.Dispose(Boolean)</a>
  276. </div>
  277. <div>
  278. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_BeginInit">View.BeginInit()</a>
  279. </div>
  280. <div>
  281. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_EndInit">View.EndInit()</a>
  282. </div>
  283. <div>
  284. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_SetWidth_System_Int32_System_Int32__">View.SetWidth(Int32, Int32)</a>
  285. </div>
  286. <div>
  287. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_SetHeight_System_Int32_System_Int32__">View.SetHeight(Int32, Int32)</a>
  288. </div>
  289. <div>
  290. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_GetCurrentWidth_System_Int32__">View.GetCurrentWidth(Int32)</a>
  291. </div>
  292. <div>
  293. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_GetCurrentHeight_System_Int32__">View.GetCurrentHeight(Int32)</a>
  294. </div>
  295. <div>
  296. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_GetNormalColor">View.GetNormalColor()</a>
  297. </div>
  298. <div>
  299. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_GetTopSuperView">View.GetTopSuperView()</a>
  300. </div>
  301. <div>
  302. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_HotKey">View.HotKey</a>
  303. </div>
  304. <div>
  305. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Shortcut">View.Shortcut</a>
  306. </div>
  307. <div>
  308. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_ShortcutTag">View.ShortcutTag</a>
  309. </div>
  310. <div>
  311. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_ShortcutAction">View.ShortcutAction</a>
  312. </div>
  313. <div>
  314. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Data">View.Data</a>
  315. </div>
  316. <div>
  317. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Driver">View.Driver</a>
  318. </div>
  319. <div>
  320. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Subviews">View.Subviews</a>
  321. </div>
  322. <div>
  323. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_TabIndexes">View.TabIndexes</a>
  324. </div>
  325. <div>
  326. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_TabIndex">View.TabIndex</a>
  327. </div>
  328. <div>
  329. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_TabStop">View.TabStop</a>
  330. </div>
  331. <div>
  332. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_CanFocus">View.CanFocus</a>
  333. </div>
  334. <div>
  335. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Id">View.Id</a>
  336. </div>
  337. <div>
  338. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_IsCurrentTop">View.IsCurrentTop</a>
  339. </div>
  340. <div>
  341. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_WantMousePositionReports">View.WantMousePositionReports</a>
  342. </div>
  343. <div>
  344. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_WantContinuousButtonPressed">View.WantContinuousButtonPressed</a>
  345. </div>
  346. <div>
  347. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Frame">View.Frame</a>
  348. </div>
  349. <div>
  350. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_LayoutStyle">View.LayoutStyle</a>
  351. </div>
  352. <div>
  353. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Bounds">View.Bounds</a>
  354. </div>
  355. <div>
  356. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_X">View.X</a>
  357. </div>
  358. <div>
  359. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Y">View.Y</a>
  360. </div>
  361. <div>
  362. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Width">View.Width</a>
  363. </div>
  364. <div>
  365. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Height">View.Height</a>
  366. </div>
  367. <div>
  368. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_ForceValidatePosDim">View.ForceValidatePosDim</a>
  369. </div>
  370. <div>
  371. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_TextFormatter">View.TextFormatter</a>
  372. </div>
  373. <div>
  374. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_SuperView">View.SuperView</a>
  375. </div>
  376. <div>
  377. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_HasFocus">View.HasFocus</a>
  378. </div>
  379. <div>
  380. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Focused">View.Focused</a>
  381. </div>
  382. <div>
  383. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_MostFocused">View.MostFocused</a>
  384. </div>
  385. <div>
  386. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_ColorScheme">View.ColorScheme</a>
  387. </div>
  388. <div>
  389. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Text">View.Text</a>
  390. </div>
  391. <div>
  392. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_AutoSize">View.AutoSize</a>
  393. </div>
  394. <div>
  395. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_PreserveTrailingSpaces">View.PreserveTrailingSpaces</a>
  396. </div>
  397. <div>
  398. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_TextAlignment">View.TextAlignment</a>
  399. </div>
  400. <div>
  401. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_VerticalTextAlignment">View.VerticalTextAlignment</a>
  402. </div>
  403. <div>
  404. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_TextDirection">View.TextDirection</a>
  405. </div>
  406. <div>
  407. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_IsInitialized">View.IsInitialized</a>
  408. </div>
  409. <div>
  410. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_IsAdded">View.IsAdded</a>
  411. </div>
  412. <div>
  413. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Enabled">View.Enabled</a>
  414. </div>
  415. <div>
  416. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Visible">View.Visible</a>
  417. </div>
  418. <div>
  419. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Border">View.Border</a>
  420. </div>
  421. <div>
  422. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Added">View.Added</a>
  423. </div>
  424. <div>
  425. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Removed">View.Removed</a>
  426. </div>
  427. <div>
  428. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Enter">View.Enter</a>
  429. </div>
  430. <div>
  431. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Leave">View.Leave</a>
  432. </div>
  433. <div>
  434. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_MouseEnter">View.MouseEnter</a>
  435. </div>
  436. <div>
  437. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_MouseLeave">View.MouseLeave</a>
  438. </div>
  439. <div>
  440. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_MouseClick">View.MouseClick</a>
  441. </div>
  442. <div>
  443. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_CanFocusChanged">View.CanFocusChanged</a>
  444. </div>
  445. <div>
  446. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_EnabledChanged">View.EnabledChanged</a>
  447. </div>
  448. <div>
  449. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_VisibleChanged">View.VisibleChanged</a>
  450. </div>
  451. <div>
  452. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_HotKeyChanged">View.HotKeyChanged</a>
  453. </div>
  454. <div>
  455. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_DrawContent">View.DrawContent</a>
  456. </div>
  457. <div>
  458. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_DrawContentComplete">View.DrawContentComplete</a>
  459. </div>
  460. <div>
  461. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_KeyPress">View.KeyPress</a>
  462. </div>
  463. <div>
  464. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_KeyDown">View.KeyDown</a>
  465. </div>
  466. <div>
  467. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_KeyUp">View.KeyUp</a>
  468. </div>
  469. <div>
  470. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_LayoutStarted">View.LayoutStarted</a>
  471. </div>
  472. <div>
  473. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_LayoutComplete">View.LayoutComplete</a>
  474. </div>
  475. <div>
  476. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Initialized">View.Initialized</a>
  477. </div>
  478. <div>
  479. <a class="xref" href="Terminal.Gui.Responder.html#Terminal_Gui_Responder_Dispose">Responder.Dispose()</a>
  480. </div>
  481. </div>
  482. <h6><strong>Namespace</strong>: <a class="xref" href="Terminal.Gui.html">Terminal.Gui</a></h6>
  483. <h6><strong>Assembly</strong>: Terminal.Gui.dll</h6>
  484. <h5 id="Terminal_Gui_MenuBar_syntax">Syntax</h5>
  485. <div class="codewrapper">
  486. <pre><code class="lang-csharp hljs">public class MenuBar : View</code></pre>
  487. </div>
  488. <h5 id="Terminal_Gui_MenuBar_remarks"><strong>Remarks</strong></h5>
  489. <div class="markdown level0 remarks">
  490. <p>
  491. The <a class="xref" href="Terminal.Gui.MenuBar.html">MenuBar</a> appears on the first row of the terminal.
  492. </p>
  493. <p>
  494. The <a class="xref" href="Terminal.Gui.MenuBar.html">MenuBar</a> provides global hotkeys for the application.
  495. </p>
  496. </div>
  497. <h3 id="constructors">Constructors
  498. </h3>
  499. <a id="Terminal_Gui_MenuBar__ctor_" data-uid="Terminal.Gui.MenuBar.#ctor*"></a>
  500. <h4 id="Terminal_Gui_MenuBar__ctor" data-uid="Terminal.Gui.MenuBar.#ctor">MenuBar()</h4>
  501. <div class="markdown level1 summary">
  502. Initializes a new instance of the <a class="xref" href="Terminal.Gui.MenuBar.html">MenuBar</a>.
  503. </div>
  504. <div class="markdown level1 conceptual"></div>
  505. <h5 class="decalaration">Declaration</h5>
  506. <div class="codewrapper">
  507. <pre><code class="lang-csharp hljs">public MenuBar()</code></pre>
  508. </div>
  509. <a id="Terminal_Gui_MenuBar__ctor_" data-uid="Terminal.Gui.MenuBar.#ctor*"></a>
  510. <h4 id="Terminal_Gui_MenuBar__ctor_Terminal_Gui_MenuBarItem___" data-uid="Terminal.Gui.MenuBar.#ctor(Terminal.Gui.MenuBarItem[])">MenuBar(MenuBarItem[])</h4>
  511. <div class="markdown level1 summary">
  512. Initializes a new instance of the <a class="xref" href="Terminal.Gui.MenuBar.html">MenuBar</a> class with the specified set of toplevel menu items.
  513. </div>
  514. <div class="markdown level1 conceptual"></div>
  515. <h5 class="decalaration">Declaration</h5>
  516. <div class="codewrapper">
  517. <pre><code class="lang-csharp hljs">public MenuBar(MenuBarItem[] menus)</code></pre>
  518. </div>
  519. <h5 class="parameters">Parameters</h5>
  520. <table class="table table-bordered table-striped table-condensed">
  521. <thead>
  522. <tr>
  523. <th>Type</th>
  524. <th>Name</th>
  525. <th>Description</th>
  526. </tr>
  527. </thead>
  528. <tbody>
  529. <tr>
  530. <td><a class="xref" href="Terminal.Gui.MenuBarItem.html">MenuBarItem</a>[]</td>
  531. <td><span class="parametername">menus</span></td>
  532. <td>Individual menu items; a null item will result in a separator being drawn.</td>
  533. </tr>
  534. </tbody>
  535. </table>
  536. <h3 id="properties">Properties
  537. </h3>
  538. <a id="Terminal_Gui_MenuBar_HotKeySpecifier_" data-uid="Terminal.Gui.MenuBar.HotKeySpecifier*"></a>
  539. <h4 id="Terminal_Gui_MenuBar_HotKeySpecifier" data-uid="Terminal.Gui.MenuBar.HotKeySpecifier">HotKeySpecifier</h4>
  540. <div class="markdown level1 summary">
  541. The specifier character for the hotkey to all menus.
  542. </div>
  543. <div class="markdown level1 conceptual"></div>
  544. <h5 class="decalaration">Declaration</h5>
  545. <div class="codewrapper">
  546. <pre><code class="lang-csharp hljs">public static Rune HotKeySpecifier { get; }</code></pre>
  547. </div>
  548. <h5 class="propertyValue">Property Value</h5>
  549. <table class="table table-bordered table-striped table-condensed">
  550. <thead>
  551. <tr>
  552. <th>Type</th>
  553. <th>Description</th>
  554. </tr>
  555. </thead>
  556. <tbody>
  557. <tr>
  558. <td><span class="xref">System.Rune</span></td>
  559. <td></td>
  560. </tr>
  561. </tbody>
  562. </table>
  563. <a id="Terminal_Gui_MenuBar_IsMenuOpen_" data-uid="Terminal.Gui.MenuBar.IsMenuOpen*"></a>
  564. <h4 id="Terminal_Gui_MenuBar_IsMenuOpen" data-uid="Terminal.Gui.MenuBar.IsMenuOpen">IsMenuOpen</h4>
  565. <div class="markdown level1 summary">
  566. True if the menu is open; otherwise false.
  567. </div>
  568. <div class="markdown level1 conceptual"></div>
  569. <h5 class="decalaration">Declaration</h5>
  570. <div class="codewrapper">
  571. <pre><code class="lang-csharp hljs">public bool IsMenuOpen { get; protected set; }</code></pre>
  572. </div>
  573. <h5 class="propertyValue">Property Value</h5>
  574. <table class="table table-bordered table-striped table-condensed">
  575. <thead>
  576. <tr>
  577. <th>Type</th>
  578. <th>Description</th>
  579. </tr>
  580. </thead>
  581. <tbody>
  582. <tr>
  583. <td><span class="xref">System.Boolean</span></td>
  584. <td></td>
  585. </tr>
  586. </tbody>
  587. </table>
  588. <a id="Terminal_Gui_MenuBar_LastFocused_" data-uid="Terminal.Gui.MenuBar.LastFocused*"></a>
  589. <h4 id="Terminal_Gui_MenuBar_LastFocused" data-uid="Terminal.Gui.MenuBar.LastFocused">LastFocused</h4>
  590. <div class="markdown level1 summary">
  591. Get the lasted focused view before open the menu.
  592. </div>
  593. <div class="markdown level1 conceptual"></div>
  594. <h5 class="decalaration">Declaration</h5>
  595. <div class="codewrapper">
  596. <pre><code class="lang-csharp hljs">public View LastFocused { get; }</code></pre>
  597. </div>
  598. <h5 class="propertyValue">Property Value</h5>
  599. <table class="table table-bordered table-striped table-condensed">
  600. <thead>
  601. <tr>
  602. <th>Type</th>
  603. <th>Description</th>
  604. </tr>
  605. </thead>
  606. <tbody>
  607. <tr>
  608. <td><a class="xref" href="Terminal.Gui.View.html">View</a></td>
  609. <td></td>
  610. </tr>
  611. </tbody>
  612. </table>
  613. <a id="Terminal_Gui_MenuBar_Menus_" data-uid="Terminal.Gui.MenuBar.Menus*"></a>
  614. <h4 id="Terminal_Gui_MenuBar_Menus" data-uid="Terminal.Gui.MenuBar.Menus">Menus</h4>
  615. <div class="markdown level1 summary">
  616. Gets or sets the array of <a class="xref" href="Terminal.Gui.MenuBarItem.html">MenuBarItem</a>s for the menu. Only set this when the <a class="xref" href="Terminal.Gui.MenuBar.html">MenuBar</a> is visible.
  617. </div>
  618. <div class="markdown level1 conceptual"></div>
  619. <h5 class="decalaration">Declaration</h5>
  620. <div class="codewrapper">
  621. <pre><code class="lang-csharp hljs">public MenuBarItem[] Menus { get; set; }</code></pre>
  622. </div>
  623. <h5 class="propertyValue">Property Value</h5>
  624. <table class="table table-bordered table-striped table-condensed">
  625. <thead>
  626. <tr>
  627. <th>Type</th>
  628. <th>Description</th>
  629. </tr>
  630. </thead>
  631. <tbody>
  632. <tr>
  633. <td><a class="xref" href="Terminal.Gui.MenuBarItem.html">MenuBarItem</a>[]</td>
  634. <td>The menu array.</td>
  635. </tr>
  636. </tbody>
  637. </table>
  638. <a id="Terminal_Gui_MenuBar_ShortcutDelimiter_" data-uid="Terminal.Gui.MenuBar.ShortcutDelimiter*"></a>
  639. <h4 id="Terminal_Gui_MenuBar_ShortcutDelimiter" data-uid="Terminal.Gui.MenuBar.ShortcutDelimiter">ShortcutDelimiter</h4>
  640. <div class="markdown level1 summary">
  641. Used for change the shortcut delimiter separator.
  642. </div>
  643. <div class="markdown level1 conceptual"></div>
  644. <h5 class="decalaration">Declaration</h5>
  645. <div class="codewrapper">
  646. <pre><code class="lang-csharp hljs">public static ustring ShortcutDelimiter { get; set; }</code></pre>
  647. </div>
  648. <h5 class="propertyValue">Property Value</h5>
  649. <table class="table table-bordered table-striped table-condensed">
  650. <thead>
  651. <tr>
  652. <th>Type</th>
  653. <th>Description</th>
  654. </tr>
  655. </thead>
  656. <tbody>
  657. <tr>
  658. <td><span class="xref">NStack.ustring</span></td>
  659. <td></td>
  660. </tr>
  661. </tbody>
  662. </table>
  663. <a id="Terminal_Gui_MenuBar_UseKeysUpDownAsKeysLeftRight_" data-uid="Terminal.Gui.MenuBar.UseKeysUpDownAsKeysLeftRight*"></a>
  664. <h4 id="Terminal_Gui_MenuBar_UseKeysUpDownAsKeysLeftRight" data-uid="Terminal.Gui.MenuBar.UseKeysUpDownAsKeysLeftRight">UseKeysUpDownAsKeysLeftRight</h4>
  665. <div class="markdown level1 summary">
  666. Used for change the navigation key style.
  667. </div>
  668. <div class="markdown level1 conceptual"></div>
  669. <h5 class="decalaration">Declaration</h5>
  670. <div class="codewrapper">
  671. <pre><code class="lang-csharp hljs">public bool UseKeysUpDownAsKeysLeftRight { get; set; }</code></pre>
  672. </div>
  673. <h5 class="propertyValue">Property Value</h5>
  674. <table class="table table-bordered table-striped table-condensed">
  675. <thead>
  676. <tr>
  677. <th>Type</th>
  678. <th>Description</th>
  679. </tr>
  680. </thead>
  681. <tbody>
  682. <tr>
  683. <td><span class="xref">System.Boolean</span></td>
  684. <td></td>
  685. </tr>
  686. </tbody>
  687. </table>
  688. <a id="Terminal_Gui_MenuBar_UseSubMenusSingleFrame_" data-uid="Terminal.Gui.MenuBar.UseSubMenusSingleFrame*"></a>
  689. <h4 id="Terminal_Gui_MenuBar_UseSubMenusSingleFrame" data-uid="Terminal.Gui.MenuBar.UseSubMenusSingleFrame">UseSubMenusSingleFrame</h4>
  690. <div class="markdown level1 summary">
  691. Gets or sets if the sub-menus must be displayed in a single or multiple frames.
  692. </div>
  693. <div class="markdown level1 conceptual"></div>
  694. <h5 class="decalaration">Declaration</h5>
  695. <div class="codewrapper">
  696. <pre><code class="lang-csharp hljs">public bool UseSubMenusSingleFrame { get; set; }</code></pre>
  697. </div>
  698. <h5 class="propertyValue">Property Value</h5>
  699. <table class="table table-bordered table-striped table-condensed">
  700. <thead>
  701. <tr>
  702. <th>Type</th>
  703. <th>Description</th>
  704. </tr>
  705. </thead>
  706. <tbody>
  707. <tr>
  708. <td><span class="xref">System.Boolean</span></td>
  709. <td></td>
  710. </tr>
  711. </tbody>
  712. </table>
  713. <h3 id="methods">Methods
  714. </h3>
  715. <a id="Terminal_Gui_MenuBar_CloseMenu_" data-uid="Terminal.Gui.MenuBar.CloseMenu*"></a>
  716. <h4 id="Terminal_Gui_MenuBar_CloseMenu_System_Boolean_" data-uid="Terminal.Gui.MenuBar.CloseMenu(System.Boolean)">CloseMenu(Boolean)</h4>
  717. <div class="markdown level1 summary">
  718. Closes the current Menu programatically, if open and not canceled.
  719. </div>
  720. <div class="markdown level1 conceptual"></div>
  721. <h5 class="decalaration">Declaration</h5>
  722. <div class="codewrapper">
  723. <pre><code class="lang-csharp hljs">public bool CloseMenu(bool ignoreUseSubMenusSingleFrame = false)</code></pre>
  724. </div>
  725. <h5 class="parameters">Parameters</h5>
  726. <table class="table table-bordered table-striped table-condensed">
  727. <thead>
  728. <tr>
  729. <th>Type</th>
  730. <th>Name</th>
  731. <th>Description</th>
  732. </tr>
  733. </thead>
  734. <tbody>
  735. <tr>
  736. <td><span class="xref">System.Boolean</span></td>
  737. <td><span class="parametername">ignoreUseSubMenusSingleFrame</span></td>
  738. <td></td>
  739. </tr>
  740. </tbody>
  741. </table>
  742. <h5 class="returns">Returns</h5>
  743. <table class="table table-bordered table-striped table-condensed">
  744. <thead>
  745. <tr>
  746. <th>Type</th>
  747. <th>Description</th>
  748. </tr>
  749. </thead>
  750. <tbody>
  751. <tr>
  752. <td><span class="xref">System.Boolean</span></td>
  753. <td></td>
  754. </tr>
  755. </tbody>
  756. </table>
  757. <a id="Terminal_Gui_MenuBar_MouseEvent_" data-uid="Terminal.Gui.MenuBar.MouseEvent*"></a>
  758. <h4 id="Terminal_Gui_MenuBar_MouseEvent_Terminal_Gui_MouseEvent_" data-uid="Terminal.Gui.MenuBar.MouseEvent(Terminal.Gui.MouseEvent)">MouseEvent(MouseEvent)</h4>
  759. <div class="markdown level1 summary">
  760. Method invoked when a mouse event is generated
  761. </div>
  762. <div class="markdown level1 conceptual"></div>
  763. <h5 class="decalaration">Declaration</h5>
  764. <div class="codewrapper">
  765. <pre><code class="lang-csharp hljs">public override bool MouseEvent(MouseEvent me)</code></pre>
  766. </div>
  767. <h5 class="parameters">Parameters</h5>
  768. <table class="table table-bordered table-striped table-condensed">
  769. <thead>
  770. <tr>
  771. <th>Type</th>
  772. <th>Name</th>
  773. <th>Description</th>
  774. </tr>
  775. </thead>
  776. <tbody>
  777. <tr>
  778. <td><a class="xref" href="Terminal.Gui.MouseEvent.html">MouseEvent</a></td>
  779. <td><span class="parametername">me</span></td>
  780. <td></td>
  781. </tr>
  782. </tbody>
  783. </table>
  784. <h5 class="returns">Returns</h5>
  785. <table class="table table-bordered table-striped table-condensed">
  786. <thead>
  787. <tr>
  788. <th>Type</th>
  789. <th>Description</th>
  790. </tr>
  791. </thead>
  792. <tbody>
  793. <tr>
  794. <td><span class="xref">System.Boolean</span></td>
  795. <td><code>true</code>, if the event was handled, <code>false</code> otherwise.</td>
  796. </tr>
  797. </tbody>
  798. </table>
  799. <h5 class="overrides">Overrides</h5>
  800. <div><a class="xref" href="Terminal.Gui.Responder.html#Terminal_Gui_Responder_MouseEvent_Terminal_Gui_MouseEvent_">Responder.MouseEvent(MouseEvent)</a></div>
  801. <a id="Terminal_Gui_MenuBar_OnEnter_" data-uid="Terminal.Gui.MenuBar.OnEnter*"></a>
  802. <h4 id="Terminal_Gui_MenuBar_OnEnter_Terminal_Gui_View_" data-uid="Terminal.Gui.MenuBar.OnEnter(Terminal.Gui.View)">OnEnter(View)</h4>
  803. <div class="markdown level1 summary">
  804. Method invoked when a view gets focus.
  805. </div>
  806. <div class="markdown level1 conceptual"></div>
  807. <h5 class="decalaration">Declaration</h5>
  808. <div class="codewrapper">
  809. <pre><code class="lang-csharp hljs">public override bool OnEnter(View view)</code></pre>
  810. </div>
  811. <h5 class="parameters">Parameters</h5>
  812. <table class="table table-bordered table-striped table-condensed">
  813. <thead>
  814. <tr>
  815. <th>Type</th>
  816. <th>Name</th>
  817. <th>Description</th>
  818. </tr>
  819. </thead>
  820. <tbody>
  821. <tr>
  822. <td><a class="xref" href="Terminal.Gui.View.html">View</a></td>
  823. <td><span class="parametername">view</span></td>
  824. <td>The view that is losing focus.</td>
  825. </tr>
  826. </tbody>
  827. </table>
  828. <h5 class="returns">Returns</h5>
  829. <table class="table table-bordered table-striped table-condensed">
  830. <thead>
  831. <tr>
  832. <th>Type</th>
  833. <th>Description</th>
  834. </tr>
  835. </thead>
  836. <tbody>
  837. <tr>
  838. <td><span class="xref">System.Boolean</span></td>
  839. <td><code>true</code>, if the event was handled, <code>false</code> otherwise.</td>
  840. </tr>
  841. </tbody>
  842. </table>
  843. <h5 class="overrides">Overrides</h5>
  844. <div><a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_OnEnter_Terminal_Gui_View_">View.OnEnter(View)</a></div>
  845. <a id="Terminal_Gui_MenuBar_OnKeyDown_" data-uid="Terminal.Gui.MenuBar.OnKeyDown*"></a>
  846. <h4 id="Terminal_Gui_MenuBar_OnKeyDown_Terminal_Gui_KeyEvent_" data-uid="Terminal.Gui.MenuBar.OnKeyDown(Terminal.Gui.KeyEvent)">OnKeyDown(KeyEvent)</h4>
  847. <div class="markdown level1 summary">
  848. Method invoked when a key is pressed.
  849. </div>
  850. <div class="markdown level1 conceptual"></div>
  851. <h5 class="decalaration">Declaration</h5>
  852. <div class="codewrapper">
  853. <pre><code class="lang-csharp hljs">public override bool OnKeyDown(KeyEvent keyEvent)</code></pre>
  854. </div>
  855. <h5 class="parameters">Parameters</h5>
  856. <table class="table table-bordered table-striped table-condensed">
  857. <thead>
  858. <tr>
  859. <th>Type</th>
  860. <th>Name</th>
  861. <th>Description</th>
  862. </tr>
  863. </thead>
  864. <tbody>
  865. <tr>
  866. <td><a class="xref" href="Terminal.Gui.KeyEvent.html">KeyEvent</a></td>
  867. <td><span class="parametername">keyEvent</span></td>
  868. <td>Contains the details about the key that produced the event.</td>
  869. </tr>
  870. </tbody>
  871. </table>
  872. <h5 class="returns">Returns</h5>
  873. <table class="table table-bordered table-striped table-condensed">
  874. <thead>
  875. <tr>
  876. <th>Type</th>
  877. <th>Description</th>
  878. </tr>
  879. </thead>
  880. <tbody>
  881. <tr>
  882. <td><span class="xref">System.Boolean</span></td>
  883. <td>true if the event was handled</td>
  884. </tr>
  885. </tbody>
  886. </table>
  887. <h5 class="overrides">Overrides</h5>
  888. <div><a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_OnKeyDown_Terminal_Gui_KeyEvent_">View.OnKeyDown(KeyEvent)</a></div>
  889. <a id="Terminal_Gui_MenuBar_OnKeyUp_" data-uid="Terminal.Gui.MenuBar.OnKeyUp*"></a>
  890. <h4 id="Terminal_Gui_MenuBar_OnKeyUp_Terminal_Gui_KeyEvent_" data-uid="Terminal.Gui.MenuBar.OnKeyUp(Terminal.Gui.KeyEvent)">OnKeyUp(KeyEvent)</h4>
  891. <div class="markdown level1 summary">
  892. Method invoked when a key is released.
  893. </div>
  894. <div class="markdown level1 conceptual"></div>
  895. <h5 class="decalaration">Declaration</h5>
  896. <div class="codewrapper">
  897. <pre><code class="lang-csharp hljs">public override bool OnKeyUp(KeyEvent keyEvent)</code></pre>
  898. </div>
  899. <h5 class="parameters">Parameters</h5>
  900. <table class="table table-bordered table-striped table-condensed">
  901. <thead>
  902. <tr>
  903. <th>Type</th>
  904. <th>Name</th>
  905. <th>Description</th>
  906. </tr>
  907. </thead>
  908. <tbody>
  909. <tr>
  910. <td><a class="xref" href="Terminal.Gui.KeyEvent.html">KeyEvent</a></td>
  911. <td><span class="parametername">keyEvent</span></td>
  912. <td>Contains the details about the key that produced the event.</td>
  913. </tr>
  914. </tbody>
  915. </table>
  916. <h5 class="returns">Returns</h5>
  917. <table class="table table-bordered table-striped table-condensed">
  918. <thead>
  919. <tr>
  920. <th>Type</th>
  921. <th>Description</th>
  922. </tr>
  923. </thead>
  924. <tbody>
  925. <tr>
  926. <td><span class="xref">System.Boolean</span></td>
  927. <td>true if the event was handled</td>
  928. </tr>
  929. </tbody>
  930. </table>
  931. <h5 class="overrides">Overrides</h5>
  932. <div><a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_OnKeyUp_Terminal_Gui_KeyEvent_">View.OnKeyUp(KeyEvent)</a></div>
  933. <a id="Terminal_Gui_MenuBar_OnLeave_" data-uid="Terminal.Gui.MenuBar.OnLeave*"></a>
  934. <h4 id="Terminal_Gui_MenuBar_OnLeave_Terminal_Gui_View_" data-uid="Terminal.Gui.MenuBar.OnLeave(Terminal.Gui.View)">OnLeave(View)</h4>
  935. <div class="markdown level1 summary">
  936. Method invoked when a view loses focus.
  937. </div>
  938. <div class="markdown level1 conceptual"></div>
  939. <h5 class="decalaration">Declaration</h5>
  940. <div class="codewrapper">
  941. <pre><code class="lang-csharp hljs">public override bool OnLeave(View view)</code></pre>
  942. </div>
  943. <h5 class="parameters">Parameters</h5>
  944. <table class="table table-bordered table-striped table-condensed">
  945. <thead>
  946. <tr>
  947. <th>Type</th>
  948. <th>Name</th>
  949. <th>Description</th>
  950. </tr>
  951. </thead>
  952. <tbody>
  953. <tr>
  954. <td><a class="xref" href="Terminal.Gui.View.html">View</a></td>
  955. <td><span class="parametername">view</span></td>
  956. <td>The view that is getting focus.</td>
  957. </tr>
  958. </tbody>
  959. </table>
  960. <h5 class="returns">Returns</h5>
  961. <table class="table table-bordered table-striped table-condensed">
  962. <thead>
  963. <tr>
  964. <th>Type</th>
  965. <th>Description</th>
  966. </tr>
  967. </thead>
  968. <tbody>
  969. <tr>
  970. <td><span class="xref">System.Boolean</span></td>
  971. <td><code>true</code>, if the event was handled, <code>false</code> otherwise.</td>
  972. </tr>
  973. </tbody>
  974. </table>
  975. <h5 class="overrides">Overrides</h5>
  976. <div><a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_OnLeave_Terminal_Gui_View_">View.OnLeave(View)</a></div>
  977. <a id="Terminal_Gui_MenuBar_OnMenuAllClosed_" data-uid="Terminal.Gui.MenuBar.OnMenuAllClosed*"></a>
  978. <h4 id="Terminal_Gui_MenuBar_OnMenuAllClosed" data-uid="Terminal.Gui.MenuBar.OnMenuAllClosed">OnMenuAllClosed()</h4>
  979. <div class="markdown level1 summary">
  980. Virtual method that will invoke the <a class="xref" href="Terminal.Gui.MenuBar.html#Terminal_Gui_MenuBar_MenuAllClosed">MenuAllClosed</a>
  981. </div>
  982. <div class="markdown level1 conceptual"></div>
  983. <h5 class="decalaration">Declaration</h5>
  984. <div class="codewrapper">
  985. <pre><code class="lang-csharp hljs">public virtual void OnMenuAllClosed()</code></pre>
  986. </div>
  987. <a id="Terminal_Gui_MenuBar_OnMenuClosing_" data-uid="Terminal.Gui.MenuBar.OnMenuClosing*"></a>
  988. <h4 id="Terminal_Gui_MenuBar_OnMenuClosing_Terminal_Gui_MenuBarItem_System_Boolean_System_Boolean_" data-uid="Terminal.Gui.MenuBar.OnMenuClosing(Terminal.Gui.MenuBarItem,System.Boolean,System.Boolean)">OnMenuClosing(MenuBarItem, Boolean, Boolean)</h4>
  989. <div class="markdown level1 summary">
  990. Virtual method that will invoke the <a class="xref" href="Terminal.Gui.MenuBar.html#Terminal_Gui_MenuBar_MenuClosing">MenuClosing</a>
  991. </div>
  992. <div class="markdown level1 conceptual"></div>
  993. <h5 class="decalaration">Declaration</h5>
  994. <div class="codewrapper">
  995. <pre><code class="lang-csharp hljs">public virtual MenuClosingEventArgs OnMenuClosing(MenuBarItem currentMenu, bool reopen, bool isSubMenu)</code></pre>
  996. </div>
  997. <h5 class="parameters">Parameters</h5>
  998. <table class="table table-bordered table-striped table-condensed">
  999. <thead>
  1000. <tr>
  1001. <th>Type</th>
  1002. <th>Name</th>
  1003. <th>Description</th>
  1004. </tr>
  1005. </thead>
  1006. <tbody>
  1007. <tr>
  1008. <td><a class="xref" href="Terminal.Gui.MenuBarItem.html">MenuBarItem</a></td>
  1009. <td><span class="parametername">currentMenu</span></td>
  1010. <td>The current menu to be closed.</td>
  1011. </tr>
  1012. <tr>
  1013. <td><span class="xref">System.Boolean</span></td>
  1014. <td><span class="parametername">reopen</span></td>
  1015. <td>Whether the current menu will be reopen.</td>
  1016. </tr>
  1017. <tr>
  1018. <td><span class="xref">System.Boolean</span></td>
  1019. <td><span class="parametername">isSubMenu</span></td>
  1020. <td>Whether is a sub-menu or not.</td>
  1021. </tr>
  1022. </tbody>
  1023. </table>
  1024. <h5 class="returns">Returns</h5>
  1025. <table class="table table-bordered table-striped table-condensed">
  1026. <thead>
  1027. <tr>
  1028. <th>Type</th>
  1029. <th>Description</th>
  1030. </tr>
  1031. </thead>
  1032. <tbody>
  1033. <tr>
  1034. <td><a class="xref" href="Terminal.Gui.MenuClosingEventArgs.html">MenuClosingEventArgs</a></td>
  1035. <td></td>
  1036. </tr>
  1037. </tbody>
  1038. </table>
  1039. <a id="Terminal_Gui_MenuBar_OnMenuOpened_" data-uid="Terminal.Gui.MenuBar.OnMenuOpened*"></a>
  1040. <h4 id="Terminal_Gui_MenuBar_OnMenuOpened" data-uid="Terminal.Gui.MenuBar.OnMenuOpened">OnMenuOpened()</h4>
  1041. <div class="markdown level1 summary">
  1042. Virtual method that will invoke the <a class="xref" href="Terminal.Gui.MenuBar.html#Terminal_Gui_MenuBar_MenuOpened">MenuOpened</a> event if it&apos;s defined.
  1043. </div>
  1044. <div class="markdown level1 conceptual"></div>
  1045. <h5 class="decalaration">Declaration</h5>
  1046. <div class="codewrapper">
  1047. <pre><code class="lang-csharp hljs">public virtual void OnMenuOpened()</code></pre>
  1048. </div>
  1049. <a id="Terminal_Gui_MenuBar_OnMenuOpening_" data-uid="Terminal.Gui.MenuBar.OnMenuOpening*"></a>
  1050. <h4 id="Terminal_Gui_MenuBar_OnMenuOpening_Terminal_Gui_MenuBarItem_" data-uid="Terminal.Gui.MenuBar.OnMenuOpening(Terminal.Gui.MenuBarItem)">OnMenuOpening(MenuBarItem)</h4>
  1051. <div class="markdown level1 summary">
  1052. Virtual method that will invoke the <a class="xref" href="Terminal.Gui.MenuBar.html#Terminal_Gui_MenuBar_MenuOpening">MenuOpening</a> event if it&apos;s defined.
  1053. </div>
  1054. <div class="markdown level1 conceptual"></div>
  1055. <h5 class="decalaration">Declaration</h5>
  1056. <div class="codewrapper">
  1057. <pre><code class="lang-csharp hljs">public virtual MenuOpeningEventArgs OnMenuOpening(MenuBarItem currentMenu)</code></pre>
  1058. </div>
  1059. <h5 class="parameters">Parameters</h5>
  1060. <table class="table table-bordered table-striped table-condensed">
  1061. <thead>
  1062. <tr>
  1063. <th>Type</th>
  1064. <th>Name</th>
  1065. <th>Description</th>
  1066. </tr>
  1067. </thead>
  1068. <tbody>
  1069. <tr>
  1070. <td><a class="xref" href="Terminal.Gui.MenuBarItem.html">MenuBarItem</a></td>
  1071. <td><span class="parametername">currentMenu</span></td>
  1072. <td>The current menu to be replaced.</td>
  1073. </tr>
  1074. </tbody>
  1075. </table>
  1076. <h5 class="returns">Returns</h5>
  1077. <table class="table table-bordered table-striped table-condensed">
  1078. <thead>
  1079. <tr>
  1080. <th>Type</th>
  1081. <th>Description</th>
  1082. </tr>
  1083. </thead>
  1084. <tbody>
  1085. <tr>
  1086. <td><a class="xref" href="Terminal.Gui.MenuOpeningEventArgs.html">MenuOpeningEventArgs</a></td>
  1087. <td>Returns the <a class="xref" href="Terminal.Gui.MenuOpeningEventArgs.html">MenuOpeningEventArgs</a></td>
  1088. </tr>
  1089. </tbody>
  1090. </table>
  1091. <a id="Terminal_Gui_MenuBar_OpenMenu_" data-uid="Terminal.Gui.MenuBar.OpenMenu*"></a>
  1092. <h4 id="Terminal_Gui_MenuBar_OpenMenu" data-uid="Terminal.Gui.MenuBar.OpenMenu">OpenMenu()</h4>
  1093. <div class="markdown level1 summary">
  1094. Opens the current Menu programatically.
  1095. </div>
  1096. <div class="markdown level1 conceptual"></div>
  1097. <h5 class="decalaration">Declaration</h5>
  1098. <div class="codewrapper">
  1099. <pre><code class="lang-csharp hljs">public void OpenMenu()</code></pre>
  1100. </div>
  1101. <a id="Terminal_Gui_MenuBar_PositionCursor_" data-uid="Terminal.Gui.MenuBar.PositionCursor*"></a>
  1102. <h4 id="Terminal_Gui_MenuBar_PositionCursor" data-uid="Terminal.Gui.MenuBar.PositionCursor">PositionCursor()</h4>
  1103. <div class="markdown level1 summary">
  1104. Positions the cursor in the right position based on the currently focused view in the chain.
  1105. </div>
  1106. <div class="markdown level1 conceptual"></div>
  1107. <h5 class="decalaration">Declaration</h5>
  1108. <div class="codewrapper">
  1109. <pre><code class="lang-csharp hljs">public override void PositionCursor()</code></pre>
  1110. </div>
  1111. <h5 class="overrides">Overrides</h5>
  1112. <div><a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_PositionCursor">View.PositionCursor()</a></div>
  1113. <a id="Terminal_Gui_MenuBar_ProcessColdKey_" data-uid="Terminal.Gui.MenuBar.ProcessColdKey*"></a>
  1114. <h4 id="Terminal_Gui_MenuBar_ProcessColdKey_Terminal_Gui_KeyEvent_" data-uid="Terminal.Gui.MenuBar.ProcessColdKey(Terminal.Gui.KeyEvent)">ProcessColdKey(KeyEvent)</h4>
  1115. <div class="markdown level1 summary">
  1116. This method can be overwritten by views that
  1117. want to provide accelerator functionality
  1118. (Alt-key for example), but without
  1119. interefering with normal ProcessKey behavior.
  1120. </div>
  1121. <div class="markdown level1 conceptual"></div>
  1122. <h5 class="decalaration">Declaration</h5>
  1123. <div class="codewrapper">
  1124. <pre><code class="lang-csharp hljs">public override bool ProcessColdKey(KeyEvent kb)</code></pre>
  1125. </div>
  1126. <h5 class="parameters">Parameters</h5>
  1127. <table class="table table-bordered table-striped table-condensed">
  1128. <thead>
  1129. <tr>
  1130. <th>Type</th>
  1131. <th>Name</th>
  1132. <th>Description</th>
  1133. </tr>
  1134. </thead>
  1135. <tbody>
  1136. <tr>
  1137. <td><a class="xref" href="Terminal.Gui.KeyEvent.html">KeyEvent</a></td>
  1138. <td><span class="parametername">kb</span></td>
  1139. <td></td>
  1140. </tr>
  1141. </tbody>
  1142. </table>
  1143. <h5 class="returns">Returns</h5>
  1144. <table class="table table-bordered table-striped table-condensed">
  1145. <thead>
  1146. <tr>
  1147. <th>Type</th>
  1148. <th>Description</th>
  1149. </tr>
  1150. </thead>
  1151. <tbody>
  1152. <tr>
  1153. <td><span class="xref">System.Boolean</span></td>
  1154. <td></td>
  1155. </tr>
  1156. </tbody>
  1157. </table>
  1158. <h5 class="overrides">Overrides</h5>
  1159. <div><a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_ProcessColdKey_Terminal_Gui_KeyEvent_">View.ProcessColdKey(KeyEvent)</a></div>
  1160. <h5 id="Terminal_Gui_MenuBar_ProcessColdKey_Terminal_Gui_KeyEvent__remarks">Remarks</h5>
  1161. <div class="markdown level1 remarks">
  1162. <p>
  1163. After keys are sent to the subviews on the
  1164. current view, all the view are
  1165. processed and the key is passed to the views
  1166. to allow some of them to process the keystroke
  1167. as a cold-key. </p>
  1168. <p>
  1169. This functionality is used, for example, by
  1170. default buttons to act on the enter key.
  1171. Processing this as a hot-key would prevent
  1172. non-default buttons from consuming the enter
  1173. keypress when they have the focus.
  1174. </p>
  1175. </div>
  1176. <a id="Terminal_Gui_MenuBar_ProcessHotKey_" data-uid="Terminal.Gui.MenuBar.ProcessHotKey*"></a>
  1177. <h4 id="Terminal_Gui_MenuBar_ProcessHotKey_Terminal_Gui_KeyEvent_" data-uid="Terminal.Gui.MenuBar.ProcessHotKey(Terminal.Gui.KeyEvent)">ProcessHotKey(KeyEvent)</h4>
  1178. <div class="markdown level1 summary">
  1179. This method can be overwritten by view that
  1180. want to provide accelerator functionality
  1181. (Alt-key for example).
  1182. </div>
  1183. <div class="markdown level1 conceptual"></div>
  1184. <h5 class="decalaration">Declaration</h5>
  1185. <div class="codewrapper">
  1186. <pre><code class="lang-csharp hljs">public override bool ProcessHotKey(KeyEvent kb)</code></pre>
  1187. </div>
  1188. <h5 class="parameters">Parameters</h5>
  1189. <table class="table table-bordered table-striped table-condensed">
  1190. <thead>
  1191. <tr>
  1192. <th>Type</th>
  1193. <th>Name</th>
  1194. <th>Description</th>
  1195. </tr>
  1196. </thead>
  1197. <tbody>
  1198. <tr>
  1199. <td><a class="xref" href="Terminal.Gui.KeyEvent.html">KeyEvent</a></td>
  1200. <td><span class="parametername">kb</span></td>
  1201. <td></td>
  1202. </tr>
  1203. </tbody>
  1204. </table>
  1205. <h5 class="returns">Returns</h5>
  1206. <table class="table table-bordered table-striped table-condensed">
  1207. <thead>
  1208. <tr>
  1209. <th>Type</th>
  1210. <th>Description</th>
  1211. </tr>
  1212. </thead>
  1213. <tbody>
  1214. <tr>
  1215. <td><span class="xref">System.Boolean</span></td>
  1216. <td></td>
  1217. </tr>
  1218. </tbody>
  1219. </table>
  1220. <h5 class="overrides">Overrides</h5>
  1221. <div><a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_ProcessHotKey_Terminal_Gui_KeyEvent_">View.ProcessHotKey(KeyEvent)</a></div>
  1222. <h5 id="Terminal_Gui_MenuBar_ProcessHotKey_Terminal_Gui_KeyEvent__remarks">Remarks</h5>
  1223. <div class="markdown level1 remarks">
  1224. <p>
  1225. Before keys are sent to the subview on the
  1226. current view, all the views are
  1227. processed and the key is passed to the widgets
  1228. to allow some of them to process the keystroke
  1229. as a hot-key. </p>
  1230. <p>
  1231. For example, if you implement a button that
  1232. has a hotkey ok &quot;o&quot;, you would catch the
  1233. combination Alt-o here. If the event is
  1234. caught, you must return true to stop the
  1235. keystroke from being dispatched to other
  1236. views.
  1237. </p>
  1238. </div>
  1239. <a id="Terminal_Gui_MenuBar_ProcessKey_" data-uid="Terminal.Gui.MenuBar.ProcessKey*"></a>
  1240. <h4 id="Terminal_Gui_MenuBar_ProcessKey_Terminal_Gui_KeyEvent_" data-uid="Terminal.Gui.MenuBar.ProcessKey(Terminal.Gui.KeyEvent)">ProcessKey(KeyEvent)</h4>
  1241. <div class="markdown level1 summary">
  1242. If the view is focused, gives the view a
  1243. chance to process the keystroke.
  1244. </div>
  1245. <div class="markdown level1 conceptual"></div>
  1246. <h5 class="decalaration">Declaration</h5>
  1247. <div class="codewrapper">
  1248. <pre><code class="lang-csharp hljs">public override bool ProcessKey(KeyEvent kb)</code></pre>
  1249. </div>
  1250. <h5 class="parameters">Parameters</h5>
  1251. <table class="table table-bordered table-striped table-condensed">
  1252. <thead>
  1253. <tr>
  1254. <th>Type</th>
  1255. <th>Name</th>
  1256. <th>Description</th>
  1257. </tr>
  1258. </thead>
  1259. <tbody>
  1260. <tr>
  1261. <td><a class="xref" href="Terminal.Gui.KeyEvent.html">KeyEvent</a></td>
  1262. <td><span class="parametername">kb</span></td>
  1263. <td></td>
  1264. </tr>
  1265. </tbody>
  1266. </table>
  1267. <h5 class="returns">Returns</h5>
  1268. <table class="table table-bordered table-striped table-condensed">
  1269. <thead>
  1270. <tr>
  1271. <th>Type</th>
  1272. <th>Description</th>
  1273. </tr>
  1274. </thead>
  1275. <tbody>
  1276. <tr>
  1277. <td><span class="xref">System.Boolean</span></td>
  1278. <td></td>
  1279. </tr>
  1280. </tbody>
  1281. </table>
  1282. <h5 class="overrides">Overrides</h5>
  1283. <div><a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_ProcessKey_Terminal_Gui_KeyEvent_">View.ProcessKey(KeyEvent)</a></div>
  1284. <h5 id="Terminal_Gui_MenuBar_ProcessKey_Terminal_Gui_KeyEvent__remarks">Remarks</h5>
  1285. <div class="markdown level1 remarks">
  1286. <p>
  1287. Views can override this method if they are
  1288. interested in processing the given keystroke.
  1289. If they consume the keystroke, they must
  1290. return true to stop the keystroke from being
  1291. processed by other widgets or consumed by the
  1292. widget engine. If they return false, the
  1293. keystroke will be passed using the ProcessColdKey
  1294. method to other views to process.
  1295. </p>
  1296. <p>
  1297. The View implementation does nothing but return false,
  1298. so it is not necessary to call base.ProcessKey if you
  1299. derive directly from View, but you should if you derive
  1300. other View subclasses.
  1301. </p>
  1302. </div>
  1303. <a id="Terminal_Gui_MenuBar_Redraw_" data-uid="Terminal.Gui.MenuBar.Redraw*"></a>
  1304. <h4 id="Terminal_Gui_MenuBar_Redraw_Terminal_Gui_Rect_" data-uid="Terminal.Gui.MenuBar.Redraw(Terminal.Gui.Rect)">Redraw(Rect)</h4>
  1305. <div class="markdown level1 summary">
  1306. Redraws this view and its subviews; only redraws the views that have been flagged for a re-display.
  1307. </div>
  1308. <div class="markdown level1 conceptual"></div>
  1309. <h5 class="decalaration">Declaration</h5>
  1310. <div class="codewrapper">
  1311. <pre><code class="lang-csharp hljs">public override void Redraw(Rect bounds)</code></pre>
  1312. </div>
  1313. <h5 class="parameters">Parameters</h5>
  1314. <table class="table table-bordered table-striped table-condensed">
  1315. <thead>
  1316. <tr>
  1317. <th>Type</th>
  1318. <th>Name</th>
  1319. <th>Description</th>
  1320. </tr>
  1321. </thead>
  1322. <tbody>
  1323. <tr>
  1324. <td><a class="xref" href="Terminal.Gui.Rect.html">Rect</a></td>
  1325. <td><span class="parametername">bounds</span></td>
  1326. <td>The bounds (view-relative region) to redraw.</td>
  1327. </tr>
  1328. </tbody>
  1329. </table>
  1330. <h5 class="overrides">Overrides</h5>
  1331. <div><a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Redraw_Terminal_Gui_Rect_">View.Redraw(Rect)</a></div>
  1332. <h5 id="Terminal_Gui_MenuBar_Redraw_Terminal_Gui_Rect__remarks">Remarks</h5>
  1333. <div class="markdown level1 remarks">
  1334. <p>
  1335. Always use <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Bounds">Bounds</a> (view-relative) when calling <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Redraw_Terminal_Gui_Rect_">Redraw(Rect)</a>, NOT <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Frame">Frame</a> (superview-relative).
  1336. </p>
  1337. <p>
  1338. Views should set the color that they want to use on entry, as otherwise this will inherit
  1339. the last color that was set globally on the driver.
  1340. </p>
  1341. <p>
  1342. Overrides of <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Redraw_Terminal_Gui_Rect_">Redraw(Rect)</a> must ensure they do not set <code>Driver.Clip</code> to a clip region
  1343. larger than the <code>region</code> parameter.
  1344. </p>
  1345. </div>
  1346. <h3 id="events">Events
  1347. </h3>
  1348. <h4 id="Terminal_Gui_MenuBar_MenuAllClosed" data-uid="Terminal.Gui.MenuBar.MenuAllClosed">MenuAllClosed</h4>
  1349. <div class="markdown level1 summary">
  1350. Raised when all the menu are closed.
  1351. </div>
  1352. <div class="markdown level1 conceptual"></div>
  1353. <h5 class="decalaration">Declaration</h5>
  1354. <div class="codewrapper">
  1355. <pre><code class="lang-csharp hljs">public event Action MenuAllClosed</code></pre>
  1356. </div>
  1357. <h5 class="eventType">Event Type</h5>
  1358. <table class="table table-bordered table-striped table-condensed">
  1359. <thead>
  1360. <tr>
  1361. <th>Type</th>
  1362. <th>Description</th>
  1363. </tr>
  1364. </thead>
  1365. <tbody>
  1366. <tr>
  1367. <td><span class="xref">System.Action</span></td>
  1368. <td></td>
  1369. </tr>
  1370. </tbody>
  1371. </table>
  1372. <h4 id="Terminal_Gui_MenuBar_MenuClosing" data-uid="Terminal.Gui.MenuBar.MenuClosing">MenuClosing</h4>
  1373. <div class="markdown level1 summary">
  1374. Raised when a menu is closing passing <a class="xref" href="Terminal.Gui.MenuClosingEventArgs.html">MenuClosingEventArgs</a>.
  1375. </div>
  1376. <div class="markdown level1 conceptual"></div>
  1377. <h5 class="decalaration">Declaration</h5>
  1378. <div class="codewrapper">
  1379. <pre><code class="lang-csharp hljs">public event Action&lt;MenuClosingEventArgs&gt; MenuClosing</code></pre>
  1380. </div>
  1381. <h5 class="eventType">Event Type</h5>
  1382. <table class="table table-bordered table-striped table-condensed">
  1383. <thead>
  1384. <tr>
  1385. <th>Type</th>
  1386. <th>Description</th>
  1387. </tr>
  1388. </thead>
  1389. <tbody>
  1390. <tr>
  1391. <td><span class="xref">System.Action</span>&lt;<a class="xref" href="Terminal.Gui.MenuClosingEventArgs.html">MenuClosingEventArgs</a>&gt;</td>
  1392. <td></td>
  1393. </tr>
  1394. </tbody>
  1395. </table>
  1396. <h4 id="Terminal_Gui_MenuBar_MenuOpened" data-uid="Terminal.Gui.MenuBar.MenuOpened">MenuOpened</h4>
  1397. <div class="markdown level1 summary">
  1398. Raised when a menu is opened.
  1399. </div>
  1400. <div class="markdown level1 conceptual"></div>
  1401. <h5 class="decalaration">Declaration</h5>
  1402. <div class="codewrapper">
  1403. <pre><code class="lang-csharp hljs">public event Action&lt;MenuItem&gt; MenuOpened</code></pre>
  1404. </div>
  1405. <h5 class="eventType">Event Type</h5>
  1406. <table class="table table-bordered table-striped table-condensed">
  1407. <thead>
  1408. <tr>
  1409. <th>Type</th>
  1410. <th>Description</th>
  1411. </tr>
  1412. </thead>
  1413. <tbody>
  1414. <tr>
  1415. <td><span class="xref">System.Action</span>&lt;<a class="xref" href="Terminal.Gui.MenuItem.html">MenuItem</a>&gt;</td>
  1416. <td></td>
  1417. </tr>
  1418. </tbody>
  1419. </table>
  1420. <h4 id="Terminal_Gui_MenuBar_MenuOpening" data-uid="Terminal.Gui.MenuBar.MenuOpening">MenuOpening</h4>
  1421. <div class="markdown level1 summary">
  1422. Raised as a menu is opening.
  1423. </div>
  1424. <div class="markdown level1 conceptual"></div>
  1425. <h5 class="decalaration">Declaration</h5>
  1426. <div class="codewrapper">
  1427. <pre><code class="lang-csharp hljs">public event Action&lt;MenuOpeningEventArgs&gt; MenuOpening</code></pre>
  1428. </div>
  1429. <h5 class="eventType">Event Type</h5>
  1430. <table class="table table-bordered table-striped table-condensed">
  1431. <thead>
  1432. <tr>
  1433. <th>Type</th>
  1434. <th>Description</th>
  1435. </tr>
  1436. </thead>
  1437. <tbody>
  1438. <tr>
  1439. <td><span class="xref">System.Action</span>&lt;<a class="xref" href="Terminal.Gui.MenuOpeningEventArgs.html">MenuOpeningEventArgs</a>&gt;</td>
  1440. <td></td>
  1441. </tr>
  1442. </tbody>
  1443. </table>
  1444. <h3 id="implements">Implements</h3>
  1445. <div>
  1446. <span class="xref">System.IDisposable</span>
  1447. </div>
  1448. <div>
  1449. <span class="xref">System.ComponentModel.ISupportInitializeNotification</span>
  1450. </div>
  1451. <div>
  1452. <span class="xref">System.ComponentModel.ISupportInitialize</span>
  1453. </div>
  1454. </article>
  1455. </div>
  1456. <div class="hidden-sm col-md-2" role="complementary">
  1457. <div class="sideaffix">
  1458. <nav class="bs-docs-sidebar hidden-print hidden-xs hidden-sm affix" id="affix">
  1459. <h5>In This Article</h5>
  1460. <div></div>
  1461. </nav>
  1462. </div>
  1463. </div>
  1464. </div>
  1465. </div>
  1466. <footer>
  1467. <div class="grad-bottom"></div>
  1468. <div class="footer">
  1469. <div class="container">
  1470. <span class="pull-right">
  1471. <a href="#top">Back to top</a>
  1472. </span>
  1473. <span>Generated by <strong>DocFX</strong></span>
  1474. </div>
  1475. </div>
  1476. </footer>
  1477. </div>
  1478. <script type="text/javascript" src="../../styles/docfx.vendor.js"></script>
  1479. <script type="text/javascript" src="../../styles/docfx.js"></script>
  1480. <script type="text/javascript" src="../../styles/main.js"></script>
  1481. </body>
  1482. </html>