Terminal.Gui.MenuItem.html 21 KB

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