Terminal.Gui.MenuBarItem.html 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326
  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 MenuBarItem
  8. </title>
  9. <meta name="viewport" content="width=device-width">
  10. <meta name="title" content="Class MenuBarItem
  11. ">
  12. <meta name="generator" content="docfx 2.54.0.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"></div>
  57. <div class="sr-items">
  58. <p><i class="glyphicon glyphicon-refresh index-loading"></i></p>
  59. </div>
  60. <ul id="pagination"></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.MenuBarItem">
  73. <h1 id="Terminal_Gui_MenuBarItem" data-uid="Terminal.Gui.MenuBarItem" class="text-break">Class MenuBarItem
  74. </h1>
  75. <div class="markdown level0 summary">
  76. A <a class="xref" href="Terminal.Gui.MenuBarItem.html">MenuBarItem</a> contains <a class="xref" href="Terminal.Gui.MenuBarItem.html">MenuBarItem</a>s or <a class="xref" href="Terminal.Gui.MenuItem.html">MenuItem</a>s.
  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.MenuItem.html">MenuItem</a></div>
  83. <div class="level2"><span class="xref">MenuBarItem</span></div>
  84. </div>
  85. <div class="inheritedMembers">
  86. <h5>Inherited Members</h5>
  87. <div>
  88. <a class="xref" href="Terminal.Gui.MenuItem.html#Terminal_Gui_MenuItem_HotKey">MenuItem.HotKey</a>
  89. </div>
  90. <div>
  91. <a class="xref" href="Terminal.Gui.MenuItem.html#Terminal_Gui_MenuItem_ShortCut">MenuItem.ShortCut</a>
  92. </div>
  93. <div>
  94. <a class="xref" href="Terminal.Gui.MenuItem.html#Terminal_Gui_MenuItem_Title">MenuItem.Title</a>
  95. </div>
  96. <div>
  97. <a class="xref" href="Terminal.Gui.MenuItem.html#Terminal_Gui_MenuItem_Help">MenuItem.Help</a>
  98. </div>
  99. <div>
  100. <a class="xref" href="Terminal.Gui.MenuItem.html#Terminal_Gui_MenuItem_Action">MenuItem.Action</a>
  101. </div>
  102. <div>
  103. <a class="xref" href="Terminal.Gui.MenuItem.html#Terminal_Gui_MenuItem_CanExecute">MenuItem.CanExecute</a>
  104. </div>
  105. <div>
  106. <a class="xref" href="Terminal.Gui.MenuItem.html#Terminal_Gui_MenuItem_IsEnabled">MenuItem.IsEnabled()</a>
  107. </div>
  108. <div>
  109. <a class="xref" href="Terminal.Gui.MenuItem.html#Terminal_Gui_MenuItem_GetMenuItem">MenuItem.GetMenuItem()</a>
  110. </div>
  111. <div>
  112. <a class="xref" href="Terminal.Gui.MenuItem.html#Terminal_Gui_MenuItem_GetMenuBarItem">MenuItem.GetMenuBarItem()</a>
  113. </div>
  114. <div>
  115. <span class="xref">System.Object.Equals(System.Object)</span>
  116. </div>
  117. <div>
  118. <span class="xref">System.Object.Equals(System.Object, System.Object)</span>
  119. </div>
  120. <div>
  121. <span class="xref">System.Object.GetHashCode()</span>
  122. </div>
  123. <div>
  124. <span class="xref">System.Object.GetType()</span>
  125. </div>
  126. <div>
  127. <span class="xref">System.Object.MemberwiseClone()</span>
  128. </div>
  129. <div>
  130. <span class="xref">System.Object.ReferenceEquals(System.Object, System.Object)</span>
  131. </div>
  132. <div>
  133. <span class="xref">System.Object.ToString()</span>
  134. </div>
  135. </div>
  136. <h6><strong>Namespace</strong>: <a class="xref" href="Terminal.Gui.html">Terminal.Gui</a></h6>
  137. <h6><strong>Assembly</strong>: Terminal.Gui.dll</h6>
  138. <h5 id="Terminal_Gui_MenuBarItem_syntax">Syntax</h5>
  139. <div class="codewrapper">
  140. <pre><code class="lang-csharp hljs">public class MenuBarItem : MenuItem</code></pre>
  141. </div>
  142. <h3 id="constructors">Constructors
  143. </h3>
  144. <a id="Terminal_Gui_MenuBarItem__ctor_" data-uid="Terminal.Gui.MenuBarItem.#ctor*"></a>
  145. <h4 id="Terminal_Gui_MenuBarItem__ctor_NStack_ustring_System_String_System_Action_System_Func_System_Boolean__" data-uid="Terminal.Gui.MenuBarItem.#ctor(NStack.ustring,System.String,System.Action,System.Func{System.Boolean})">MenuBarItem(ustring, String, Action, Func&lt;Boolean&gt;)</h4>
  146. <div class="markdown level1 summary">
  147. Initializes a new <a class="xref" href="Terminal.Gui.MenuBarItem.html">MenuBarItem</a> as a <a class="xref" href="Terminal.Gui.MenuItem.html">MenuItem</a>.
  148. </div>
  149. <div class="markdown level1 conceptual"></div>
  150. <h5 class="decalaration">Declaration</h5>
  151. <div class="codewrapper">
  152. <pre><code class="lang-csharp hljs">public MenuBarItem(ustring title, string help, Action action, Func&lt;bool&gt; canExecute = null)</code></pre>
  153. </div>
  154. <h5 class="parameters">Parameters</h5>
  155. <table class="table table-bordered table-striped table-condensed">
  156. <thead>
  157. <tr>
  158. <th>Type</th>
  159. <th>Name</th>
  160. <th>Description</th>
  161. </tr>
  162. </thead>
  163. <tbody>
  164. <tr>
  165. <td><span class="xref">NStack.ustring</span></td>
  166. <td><span class="parametername">title</span></td>
  167. <td>Title for the menu item.</td>
  168. </tr>
  169. <tr>
  170. <td><span class="xref">System.String</span></td>
  171. <td><span class="parametername">help</span></td>
  172. <td>Help text to display.</td>
  173. </tr>
  174. <tr>
  175. <td><span class="xref">System.Action</span></td>
  176. <td><span class="parametername">action</span></td>
  177. <td>Action to invoke when the menu item is activated.</td>
  178. </tr>
  179. <tr>
  180. <td><span class="xref">System.Func</span>&lt;<span class="xref">System.Boolean</span>&gt;</td>
  181. <td><span class="parametername">canExecute</span></td>
  182. <td>Function to determine if the action can currently be executred.</td>
  183. </tr>
  184. </tbody>
  185. </table>
  186. <a id="Terminal_Gui_MenuBarItem__ctor_" data-uid="Terminal.Gui.MenuBarItem.#ctor*"></a>
  187. <h4 id="Terminal_Gui_MenuBarItem__ctor_NStack_ustring_Terminal_Gui_MenuItem___" data-uid="Terminal.Gui.MenuBarItem.#ctor(NStack.ustring,Terminal.Gui.MenuItem[])">MenuBarItem(ustring, MenuItem[])</h4>
  188. <div class="markdown level1 summary">
  189. Initializes a new <a class="xref" href="Terminal.Gui.MenuBarItem.html">MenuBarItem</a>.
  190. </div>
  191. <div class="markdown level1 conceptual"></div>
  192. <h5 class="decalaration">Declaration</h5>
  193. <div class="codewrapper">
  194. <pre><code class="lang-csharp hljs">public MenuBarItem(ustring title, MenuItem[] children)</code></pre>
  195. </div>
  196. <h5 class="parameters">Parameters</h5>
  197. <table class="table table-bordered table-striped table-condensed">
  198. <thead>
  199. <tr>
  200. <th>Type</th>
  201. <th>Name</th>
  202. <th>Description</th>
  203. </tr>
  204. </thead>
  205. <tbody>
  206. <tr>
  207. <td><span class="xref">NStack.ustring</span></td>
  208. <td><span class="parametername">title</span></td>
  209. <td>Title for the menu item.</td>
  210. </tr>
  211. <tr>
  212. <td><a class="xref" href="Terminal.Gui.MenuItem.html">MenuItem</a>[]</td>
  213. <td><span class="parametername">children</span></td>
  214. <td>The items in the current menu.</td>
  215. </tr>
  216. </tbody>
  217. </table>
  218. <a id="Terminal_Gui_MenuBarItem__ctor_" data-uid="Terminal.Gui.MenuBarItem.#ctor*"></a>
  219. <h4 id="Terminal_Gui_MenuBarItem__ctor_Terminal_Gui_MenuItem___" data-uid="Terminal.Gui.MenuBarItem.#ctor(Terminal.Gui.MenuItem[])">MenuBarItem(MenuItem[])</h4>
  220. <div class="markdown level1 summary">
  221. Initializes a new <a class="xref" href="Terminal.Gui.MenuBarItem.html">MenuBarItem</a>.
  222. </div>
  223. <div class="markdown level1 conceptual"></div>
  224. <h5 class="decalaration">Declaration</h5>
  225. <div class="codewrapper">
  226. <pre><code class="lang-csharp hljs">public MenuBarItem(MenuItem[] children)</code></pre>
  227. </div>
  228. <h5 class="parameters">Parameters</h5>
  229. <table class="table table-bordered table-striped table-condensed">
  230. <thead>
  231. <tr>
  232. <th>Type</th>
  233. <th>Name</th>
  234. <th>Description</th>
  235. </tr>
  236. </thead>
  237. <tbody>
  238. <tr>
  239. <td><a class="xref" href="Terminal.Gui.MenuItem.html">MenuItem</a>[]</td>
  240. <td><span class="parametername">children</span></td>
  241. <td>The items in the current menu.</td>
  242. </tr>
  243. </tbody>
  244. </table>
  245. <h3 id="properties">Properties
  246. </h3>
  247. <a id="Terminal_Gui_MenuBarItem_Children_" data-uid="Terminal.Gui.MenuBarItem.Children*"></a>
  248. <h4 id="Terminal_Gui_MenuBarItem_Children" data-uid="Terminal.Gui.MenuBarItem.Children">Children</h4>
  249. <div class="markdown level1 summary">
  250. Gets or sets an array of <a class="xref" href="Terminal.Gui.MenuItem.html">MenuItem</a> objects that are the children of this <a class="xref" href="Terminal.Gui.MenuBarItem.html">MenuBarItem</a>
  251. </div>
  252. <div class="markdown level1 conceptual"></div>
  253. <h5 class="decalaration">Declaration</h5>
  254. <div class="codewrapper">
  255. <pre><code class="lang-csharp hljs">public MenuItem[] Children { get; set; }</code></pre>
  256. </div>
  257. <h5 class="propertyValue">Property Value</h5>
  258. <table class="table table-bordered table-striped table-condensed">
  259. <thead>
  260. <tr>
  261. <th>Type</th>
  262. <th>Description</th>
  263. </tr>
  264. </thead>
  265. <tbody>
  266. <tr>
  267. <td><a class="xref" href="Terminal.Gui.MenuItem.html">MenuItem</a>[]</td>
  268. <td>The children.</td>
  269. </tr>
  270. </tbody>
  271. </table>
  272. </article>
  273. </div>
  274. <div class="hidden-sm col-md-2" role="complementary">
  275. <div class="sideaffix">
  276. <div class="contribution">
  277. <ul class="nav">
  278. </ul>
  279. </div>
  280. <nav class="bs-docs-sidebar hidden-print hidden-xs hidden-sm affix" id="affix">
  281. <!-- <p><a class="back-to-top" href="#top">Back to top</a><p> -->
  282. </nav>
  283. </div>
  284. </div>
  285. </div>
  286. </div>
  287. <footer>
  288. <div class="grad-bottom"></div>
  289. <div class="footer">
  290. <div class="container">
  291. <span class="pull-right">
  292. <a href="#top">Back to top</a>
  293. </span>
  294. <span>Generated by <strong>DocFX</strong></span>
  295. </div>
  296. </div>
  297. </footer>
  298. </div>
  299. <script type="text/javascript" src="../../styles/docfx.vendor.js"></script>
  300. <script type="text/javascript" src="../../styles/docfx.js"></script>
  301. <script type="text/javascript" src="../../styles/main.js"></script>
  302. </body>
  303. </html>