Terminal.Gui.MenuItem.html 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574
  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 MenuItem
  8. </title>
  9. <meta name="viewport" content="width=device-width">
  10. <meta name="title" content="Class MenuItem
  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.MenuItem">
  73. <h1 id="Terminal_Gui_MenuItem" data-uid="Terminal.Gui.MenuItem" class="text-break">Class MenuItem
  74. </h1>
  75. <div class="markdown level0 summary">
  76. A <a class="xref" href="Terminal.Gui.MenuItem.html">MenuItem</a> has a title, an associated help text, and an action to execute on activation.
  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"><span class="xref">MenuItem</span></div>
  83. <div class="level2"><a class="xref" href="Terminal.Gui.MenuBarItem.html">MenuBarItem</a></div>
  84. </div>
  85. <h6><strong>Namespace</strong>: <a class="xref" href="Terminal.Gui.html">Terminal.Gui</a></h6>
  86. <h6><strong>Assembly</strong>: Terminal.Gui.dll</h6>
  87. <h5 id="Terminal_Gui_MenuItem_syntax">Syntax</h5>
  88. <div class="codewrapper">
  89. <pre><code class="lang-csharp hljs">public class MenuItem : Object</code></pre>
  90. </div>
  91. <h3 id="constructors">Constructors
  92. </h3>
  93. <a id="Terminal_Gui_MenuItem__ctor_" data-uid="Terminal.Gui.MenuItem.#ctor*"></a>
  94. <h4 id="Terminal_Gui_MenuItem__ctor_NStack_ustring_NStack_ustring_System_Action_System_Func_System_Boolean__Terminal_Gui_MenuItem_Terminal_Gui_Key_" data-uid="Terminal.Gui.MenuItem.#ctor(NStack.ustring,NStack.ustring,System.Action,System.Func{System.Boolean},Terminal.Gui.MenuItem,Terminal.Gui.Key)">MenuItem(ustring, ustring, Action, Func&lt;Boolean&gt;, MenuItem, Key)</h4>
  95. <div class="markdown level1 summary">
  96. Initializes a new instance of <a class="xref" href="Terminal.Gui.MenuItem.html">MenuItem</a>.
  97. </div>
  98. <div class="markdown level1 conceptual"></div>
  99. <h5 class="decalaration">Declaration</h5>
  100. <div class="codewrapper">
  101. <pre><code class="lang-csharp hljs">public MenuItem(ustring title, ustring help, Action action, Func&lt;bool&gt; canExecute = null, MenuItem parent = null, Key shortcut)</code></pre>
  102. </div>
  103. <h5 class="parameters">Parameters</h5>
  104. <table class="table table-bordered table-striped table-condensed">
  105. <thead>
  106. <tr>
  107. <th>Type</th>
  108. <th>Name</th>
  109. <th>Description</th>
  110. </tr>
  111. </thead>
  112. <tbody>
  113. <tr>
  114. <td><span class="xref">NStack.ustring</span></td>
  115. <td><span class="parametername">title</span></td>
  116. <td>Title for the menu item.</td>
  117. </tr>
  118. <tr>
  119. <td><span class="xref">NStack.ustring</span></td>
  120. <td><span class="parametername">help</span></td>
  121. <td>Help text to display.</td>
  122. </tr>
  123. <tr>
  124. <td><span class="xref">System.Action</span></td>
  125. <td><span class="parametername">action</span></td>
  126. <td>Action to invoke when the menu item is activated.</td>
  127. </tr>
  128. <tr>
  129. <td><span class="xref">System.Func</span>&lt;<span class="xref">System.Boolean</span>&gt;</td>
  130. <td><span class="parametername">canExecute</span></td>
  131. <td>Function to determine if the action can currently be executed.</td>
  132. </tr>
  133. <tr>
  134. <td><a class="xref" href="Terminal.Gui.MenuItem.html">MenuItem</a></td>
  135. <td><span class="parametername">parent</span></td>
  136. <td>The <a class="xref" href="Terminal.Gui.MenuItem.html#Terminal_Gui_MenuItem_Parent">Parent</a> of this menu item.</td>
  137. </tr>
  138. <tr>
  139. <td><a class="xref" href="Terminal.Gui.Key.html">Key</a></td>
  140. <td><span class="parametername">shortcut</span></td>
  141. <td>The <a class="xref" href="Terminal.Gui.MenuItem.html#Terminal_Gui_MenuItem_Shortcut">Shortcut</a> keystroke combination.</td>
  142. </tr>
  143. </tbody>
  144. </table>
  145. <a id="Terminal_Gui_MenuItem__ctor_" data-uid="Terminal.Gui.MenuItem.#ctor*"></a>
  146. <h4 id="Terminal_Gui_MenuItem__ctor_Terminal_Gui_Key_" data-uid="Terminal.Gui.MenuItem.#ctor(Terminal.Gui.Key)">MenuItem(Key)</h4>
  147. <div class="markdown level1 summary">
  148. Initializes a new instance of <a class="xref" href="Terminal.Gui.MenuItem.html">MenuItem</a>
  149. </div>
  150. <div class="markdown level1 conceptual"></div>
  151. <h5 class="decalaration">Declaration</h5>
  152. <div class="codewrapper">
  153. <pre><code class="lang-csharp hljs">public MenuItem(Key shortcut)</code></pre>
  154. </div>
  155. <h5 class="parameters">Parameters</h5>
  156. <table class="table table-bordered table-striped table-condensed">
  157. <thead>
  158. <tr>
  159. <th>Type</th>
  160. <th>Name</th>
  161. <th>Description</th>
  162. </tr>
  163. </thead>
  164. <tbody>
  165. <tr>
  166. <td><a class="xref" href="Terminal.Gui.Key.html">Key</a></td>
  167. <td><span class="parametername">shortcut</span></td>
  168. <td></td>
  169. </tr>
  170. </tbody>
  171. </table>
  172. <h3 id="fields">Fields
  173. </h3>
  174. <h4 id="Terminal_Gui_MenuItem_HotKey" data-uid="Terminal.Gui.MenuItem.HotKey">HotKey</h4>
  175. <div class="markdown level1 summary">
  176. The HotKey is used when the menu is active, the shortcut can be triggered when the menu is not active.
  177. For example HotKey would be &quot;N&quot; when the File Menu is open (assuming there is a &quot;_New&quot; entry
  178. if the Shortcut is set to &quot;Control-N&quot;, this would be a global hotkey that would trigger as well
  179. </div>
  180. <div class="markdown level1 conceptual"></div>
  181. <h5 class="decalaration">Declaration</h5>
  182. <div class="codewrapper">
  183. <pre><code class="lang-csharp hljs">public Rune HotKey</code></pre>
  184. </div>
  185. <h5 class="fieldValue">Field Value</h5>
  186. <table class="table table-bordered table-striped table-condensed">
  187. <thead>
  188. <tr>
  189. <th>Type</th>
  190. <th>Description</th>
  191. </tr>
  192. </thead>
  193. <tbody>
  194. <tr>
  195. <td><span class="xref">System.Rune</span></td>
  196. <td></td>
  197. </tr>
  198. </tbody>
  199. </table>
  200. <h3 id="properties">Properties
  201. </h3>
  202. <a id="Terminal_Gui_MenuItem_Action_" data-uid="Terminal.Gui.MenuItem.Action*"></a>
  203. <h4 id="Terminal_Gui_MenuItem_Action" data-uid="Terminal.Gui.MenuItem.Action">Action</h4>
  204. <div class="markdown level1 summary">
  205. Gets or sets the action to be invoked when the menu is triggered
  206. </div>
  207. <div class="markdown level1 conceptual"></div>
  208. <h5 class="decalaration">Declaration</h5>
  209. <div class="codewrapper">
  210. <pre><code class="lang-csharp hljs">public Action Action { get; set; }</code></pre>
  211. </div>
  212. <h5 class="propertyValue">Property Value</h5>
  213. <table class="table table-bordered table-striped table-condensed">
  214. <thead>
  215. <tr>
  216. <th>Type</th>
  217. <th>Description</th>
  218. </tr>
  219. </thead>
  220. <tbody>
  221. <tr>
  222. <td><span class="xref">System.Action</span></td>
  223. <td>Method to invoke.</td>
  224. </tr>
  225. </tbody>
  226. </table>
  227. <a id="Terminal_Gui_MenuItem_CanExecute_" data-uid="Terminal.Gui.MenuItem.CanExecute*"></a>
  228. <h4 id="Terminal_Gui_MenuItem_CanExecute" data-uid="Terminal.Gui.MenuItem.CanExecute">CanExecute</h4>
  229. <div class="markdown level1 summary">
  230. Gets or sets the action to be invoked if the menu can be triggered
  231. </div>
  232. <div class="markdown level1 conceptual"></div>
  233. <h5 class="decalaration">Declaration</h5>
  234. <div class="codewrapper">
  235. <pre><code class="lang-csharp hljs">public Func&lt;bool&gt; CanExecute { get; set; }</code></pre>
  236. </div>
  237. <h5 class="propertyValue">Property Value</h5>
  238. <table class="table table-bordered table-striped table-condensed">
  239. <thead>
  240. <tr>
  241. <th>Type</th>
  242. <th>Description</th>
  243. </tr>
  244. </thead>
  245. <tbody>
  246. <tr>
  247. <td><span class="xref">System.Func</span>&lt;<span class="xref">System.Boolean</span>&gt;</td>
  248. <td>Function to determine if action is ready to be executed.</td>
  249. </tr>
  250. </tbody>
  251. </table>
  252. <a id="Terminal_Gui_MenuItem_Checked_" data-uid="Terminal.Gui.MenuItem.Checked*"></a>
  253. <h4 id="Terminal_Gui_MenuItem_Checked" data-uid="Terminal.Gui.MenuItem.Checked">Checked</h4>
  254. <div class="markdown level1 summary">
  255. Sets or gets whether the <a class="xref" href="Terminal.Gui.MenuItem.html">MenuItem</a> shows a check indicator or not. See <a class="xref" href="Terminal.Gui.MenuItemCheckStyle.html">MenuItemCheckStyle</a>.
  256. </div>
  257. <div class="markdown level1 conceptual"></div>
  258. <h5 class="decalaration">Declaration</h5>
  259. <div class="codewrapper">
  260. <pre><code class="lang-csharp hljs">public bool Checked { get; set; }</code></pre>
  261. </div>
  262. <h5 class="propertyValue">Property Value</h5>
  263. <table class="table table-bordered table-striped table-condensed">
  264. <thead>
  265. <tr>
  266. <th>Type</th>
  267. <th>Description</th>
  268. </tr>
  269. </thead>
  270. <tbody>
  271. <tr>
  272. <td><span class="xref">System.Boolean</span></td>
  273. <td></td>
  274. </tr>
  275. </tbody>
  276. </table>
  277. <a id="Terminal_Gui_MenuItem_CheckType_" data-uid="Terminal.Gui.MenuItem.CheckType*"></a>
  278. <h4 id="Terminal_Gui_MenuItem_CheckType" data-uid="Terminal.Gui.MenuItem.CheckType">CheckType</h4>
  279. <div class="markdown level1 summary">
  280. Sets or gets the type selection indicator the menu item will be displayed with.
  281. </div>
  282. <div class="markdown level1 conceptual"></div>
  283. <h5 class="decalaration">Declaration</h5>
  284. <div class="codewrapper">
  285. <pre><code class="lang-csharp hljs">public MenuItemCheckStyle CheckType { get; set; }</code></pre>
  286. </div>
  287. <h5 class="propertyValue">Property Value</h5>
  288. <table class="table table-bordered table-striped table-condensed">
  289. <thead>
  290. <tr>
  291. <th>Type</th>
  292. <th>Description</th>
  293. </tr>
  294. </thead>
  295. <tbody>
  296. <tr>
  297. <td><a class="xref" href="Terminal.Gui.MenuItemCheckStyle.html">MenuItemCheckStyle</a></td>
  298. <td></td>
  299. </tr>
  300. </tbody>
  301. </table>
  302. <a id="Terminal_Gui_MenuItem_Data_" data-uid="Terminal.Gui.MenuItem.Data*"></a>
  303. <h4 id="Terminal_Gui_MenuItem_Data" data-uid="Terminal.Gui.MenuItem.Data">Data</h4>
  304. <div class="markdown level1 summary">
  305. Gets or sets arbitrary data for the menu item.
  306. </div>
  307. <div class="markdown level1 conceptual"></div>
  308. <h5 class="decalaration">Declaration</h5>
  309. <div class="codewrapper">
  310. <pre><code class="lang-csharp hljs">public object Data { get; set; }</code></pre>
  311. </div>
  312. <h5 class="propertyValue">Property Value</h5>
  313. <table class="table table-bordered table-striped table-condensed">
  314. <thead>
  315. <tr>
  316. <th>Type</th>
  317. <th>Description</th>
  318. </tr>
  319. </thead>
  320. <tbody>
  321. <tr>
  322. <td><span class="xref">System.Object</span></td>
  323. <td></td>
  324. </tr>
  325. </tbody>
  326. </table>
  327. <h5 id="Terminal_Gui_MenuItem_Data_remarks">Remarks</h5>
  328. <div class="markdown level1 remarks">This property is not used internally.</div>
  329. <a id="Terminal_Gui_MenuItem_Help_" data-uid="Terminal.Gui.MenuItem.Help*"></a>
  330. <h4 id="Terminal_Gui_MenuItem_Help" data-uid="Terminal.Gui.MenuItem.Help">Help</h4>
  331. <div class="markdown level1 summary">
  332. Gets or sets the help text for the menu item.
  333. </div>
  334. <div class="markdown level1 conceptual"></div>
  335. <h5 class="decalaration">Declaration</h5>
  336. <div class="codewrapper">
  337. <pre><code class="lang-csharp hljs">public ustring Help { get; set; }</code></pre>
  338. </div>
  339. <h5 class="propertyValue">Property Value</h5>
  340. <table class="table table-bordered table-striped table-condensed">
  341. <thead>
  342. <tr>
  343. <th>Type</th>
  344. <th>Description</th>
  345. </tr>
  346. </thead>
  347. <tbody>
  348. <tr>
  349. <td><span class="xref">NStack.ustring</span></td>
  350. <td>The help text.</td>
  351. </tr>
  352. </tbody>
  353. </table>
  354. <a id="Terminal_Gui_MenuItem_Parent_" data-uid="Terminal.Gui.MenuItem.Parent*"></a>
  355. <h4 id="Terminal_Gui_MenuItem_Parent" data-uid="Terminal.Gui.MenuItem.Parent">Parent</h4>
  356. <div class="markdown level1 summary">
  357. Gets or sets the parent for this <a class="xref" href="Terminal.Gui.MenuItem.html">MenuItem</a>.
  358. </div>
  359. <div class="markdown level1 conceptual"></div>
  360. <h5 class="decalaration">Declaration</h5>
  361. <div class="codewrapper">
  362. <pre><code class="lang-csharp hljs">public MenuItem Parent { get; }</code></pre>
  363. </div>
  364. <h5 class="propertyValue">Property Value</h5>
  365. <table class="table table-bordered table-striped table-condensed">
  366. <thead>
  367. <tr>
  368. <th>Type</th>
  369. <th>Description</th>
  370. </tr>
  371. </thead>
  372. <tbody>
  373. <tr>
  374. <td><a class="xref" href="Terminal.Gui.MenuItem.html">MenuItem</a></td>
  375. <td>The parent.</td>
  376. </tr>
  377. </tbody>
  378. </table>
  379. <a id="Terminal_Gui_MenuItem_Shortcut_" data-uid="Terminal.Gui.MenuItem.Shortcut*"></a>
  380. <h4 id="Terminal_Gui_MenuItem_Shortcut" data-uid="Terminal.Gui.MenuItem.Shortcut">Shortcut</h4>
  381. <div class="markdown level1 summary">
  382. This is the global setting that can be used as a global <a class="xref" href="Terminal.Gui.ShortcutHelper.html#Terminal_Gui_ShortcutHelper_Shortcut">Shortcut</a> to invoke the action on the menu.
  383. </div>
  384. <div class="markdown level1 conceptual"></div>
  385. <h5 class="decalaration">Declaration</h5>
  386. <div class="codewrapper">
  387. <pre><code class="lang-csharp hljs">public Key Shortcut { get; set; }</code></pre>
  388. </div>
  389. <h5 class="propertyValue">Property Value</h5>
  390. <table class="table table-bordered table-striped table-condensed">
  391. <thead>
  392. <tr>
  393. <th>Type</th>
  394. <th>Description</th>
  395. </tr>
  396. </thead>
  397. <tbody>
  398. <tr>
  399. <td><a class="xref" href="Terminal.Gui.Key.html">Key</a></td>
  400. <td></td>
  401. </tr>
  402. </tbody>
  403. </table>
  404. <a id="Terminal_Gui_MenuItem_ShortcutTag_" data-uid="Terminal.Gui.MenuItem.ShortcutTag*"></a>
  405. <h4 id="Terminal_Gui_MenuItem_ShortcutTag" data-uid="Terminal.Gui.MenuItem.ShortcutTag">ShortcutTag</h4>
  406. <div class="markdown level1 summary">
  407. The keystroke combination used in the <a class="xref" href="Terminal.Gui.ShortcutHelper.html#Terminal_Gui_ShortcutHelper_ShortcutTag">ShortcutTag</a> as string.
  408. </div>
  409. <div class="markdown level1 conceptual"></div>
  410. <h5 class="decalaration">Declaration</h5>
  411. <div class="codewrapper">
  412. <pre><code class="lang-csharp hljs">public ustring ShortcutTag { get; }</code></pre>
  413. </div>
  414. <h5 class="propertyValue">Property Value</h5>
  415. <table class="table table-bordered table-striped table-condensed">
  416. <thead>
  417. <tr>
  418. <th>Type</th>
  419. <th>Description</th>
  420. </tr>
  421. </thead>
  422. <tbody>
  423. <tr>
  424. <td><span class="xref">NStack.ustring</span></td>
  425. <td></td>
  426. </tr>
  427. </tbody>
  428. </table>
  429. <a id="Terminal_Gui_MenuItem_Title_" data-uid="Terminal.Gui.MenuItem.Title*"></a>
  430. <h4 id="Terminal_Gui_MenuItem_Title" data-uid="Terminal.Gui.MenuItem.Title">Title</h4>
  431. <div class="markdown level1 summary">
  432. Gets or sets the title.
  433. </div>
  434. <div class="markdown level1 conceptual"></div>
  435. <h5 class="decalaration">Declaration</h5>
  436. <div class="codewrapper">
  437. <pre><code class="lang-csharp hljs">public ustring Title { get; set; }</code></pre>
  438. </div>
  439. <h5 class="propertyValue">Property Value</h5>
  440. <table class="table table-bordered table-striped table-condensed">
  441. <thead>
  442. <tr>
  443. <th>Type</th>
  444. <th>Description</th>
  445. </tr>
  446. </thead>
  447. <tbody>
  448. <tr>
  449. <td><span class="xref">NStack.ustring</span></td>
  450. <td>The title.</td>
  451. </tr>
  452. </tbody>
  453. </table>
  454. <h3 id="methods">Methods
  455. </h3>
  456. <a id="Terminal_Gui_MenuItem_GetMenuBarItem_" data-uid="Terminal.Gui.MenuItem.GetMenuBarItem*"></a>
  457. <h4 id="Terminal_Gui_MenuItem_GetMenuBarItem" data-uid="Terminal.Gui.MenuItem.GetMenuBarItem">GetMenuBarItem()</h4>
  458. <div class="markdown level1 summary">
  459. Merely a debugging aid to see the interaction with main
  460. </div>
  461. <div class="markdown level1 conceptual"></div>
  462. <h5 class="decalaration">Declaration</h5>
  463. <div class="codewrapper">
  464. <pre><code class="lang-csharp hljs">public bool GetMenuBarItem()</code></pre>
  465. </div>
  466. <h5 class="returns">Returns</h5>
  467. <table class="table table-bordered table-striped table-condensed">
  468. <thead>
  469. <tr>
  470. <th>Type</th>
  471. <th>Description</th>
  472. </tr>
  473. </thead>
  474. <tbody>
  475. <tr>
  476. <td><span class="xref">System.Boolean</span></td>
  477. <td></td>
  478. </tr>
  479. </tbody>
  480. </table>
  481. <a id="Terminal_Gui_MenuItem_GetMenuItem_" data-uid="Terminal.Gui.MenuItem.GetMenuItem*"></a>
  482. <h4 id="Terminal_Gui_MenuItem_GetMenuItem" data-uid="Terminal.Gui.MenuItem.GetMenuItem">GetMenuItem()</h4>
  483. <div class="markdown level1 summary">
  484. Merely a debugging aid to see the interaction with main
  485. </div>
  486. <div class="markdown level1 conceptual"></div>
  487. <h5 class="decalaration">Declaration</h5>
  488. <div class="codewrapper">
  489. <pre><code class="lang-csharp hljs">public MenuItem GetMenuItem()</code></pre>
  490. </div>
  491. <h5 class="returns">Returns</h5>
  492. <table class="table table-bordered table-striped table-condensed">
  493. <thead>
  494. <tr>
  495. <th>Type</th>
  496. <th>Description</th>
  497. </tr>
  498. </thead>
  499. <tbody>
  500. <tr>
  501. <td><a class="xref" href="Terminal.Gui.MenuItem.html">MenuItem</a></td>
  502. <td></td>
  503. </tr>
  504. </tbody>
  505. </table>
  506. <a id="Terminal_Gui_MenuItem_IsEnabled_" data-uid="Terminal.Gui.MenuItem.IsEnabled*"></a>
  507. <h4 id="Terminal_Gui_MenuItem_IsEnabled" data-uid="Terminal.Gui.MenuItem.IsEnabled">IsEnabled()</h4>
  508. <div class="markdown level1 summary">
  509. Shortcut to check if the menu item is enabled
  510. </div>
  511. <div class="markdown level1 conceptual"></div>
  512. <h5 class="decalaration">Declaration</h5>
  513. <div class="codewrapper">
  514. <pre><code class="lang-csharp hljs">public bool IsEnabled()</code></pre>
  515. </div>
  516. <h5 class="returns">Returns</h5>
  517. <table class="table table-bordered table-striped table-condensed">
  518. <thead>
  519. <tr>
  520. <th>Type</th>
  521. <th>Description</th>
  522. </tr>
  523. </thead>
  524. <tbody>
  525. <tr>
  526. <td><span class="xref">System.Boolean</span></td>
  527. <td></td>
  528. </tr>
  529. </tbody>
  530. </table>
  531. </article>
  532. </div>
  533. <div class="hidden-sm col-md-2" role="complementary">
  534. <div class="sideaffix">
  535. <nav class="bs-docs-sidebar hidden-print hidden-xs hidden-sm affix" id="affix">
  536. <h5>In This Article</h5>
  537. <div></div>
  538. </nav>
  539. </div>
  540. </div>
  541. </div>
  542. </div>
  543. <footer>
  544. <div class="grad-bottom"></div>
  545. <div class="footer">
  546. <div class="container">
  547. <span class="pull-right">
  548. <a href="#top">Back to top</a>
  549. </span>
  550. <span>Generated by <strong>DocFX</strong></span>
  551. </div>
  552. </div>
  553. </footer>
  554. </div>
  555. <script type="text/javascript" src="../../styles/docfx.vendor.js"></script>
  556. <script type="text/javascript" src="../../styles/docfx.js"></script>
  557. <script type="text/javascript" src="../../styles/main.js"></script>
  558. </body>
  559. </html>