Terminal.Gui.MessageBox.html 47 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041
  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 MessageBox
  8. </title>
  9. <meta name="viewport" content="width=device-width">
  10. <meta name="title" content="Class MessageBox
  11. ">
  12. <meta name="generator" content="docfx 2.59.4.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. <link href="https://fonts.googleapis.com/css?family=Source Sans Pro" rel="stylesheet">
  18. <link href="https://fonts.googleapis.com/css?family=Source Code Pro" rel="stylesheet">
  19. <meta property="docfx:navrel" content="../../toc.html">
  20. <meta property="docfx:tocrel" content="toc.html">
  21. <meta property="docfx:rel" content="../../">
  22. </head> <body data-spy="scroll" data-target="#affix" data-offset="120">
  23. <div id="wrapper">
  24. <header>
  25. <nav id="autocollapse" class="navbar navbar-inverse ng-scope" role="navigation">
  26. <div class="container">
  27. <div class="navbar-header">
  28. <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar">
  29. <span class="sr-only">Toggle navigation</span>
  30. <span class="icon-bar"></span>
  31. <span class="icon-bar"></span>
  32. <span class="icon-bar"></span>
  33. </button>
  34. <a class="navbar-brand" href="../../index.html">
  35. <img id="logo" class="svg" src="../../images/logo48.png" alt="">
  36. </a>
  37. </div>
  38. <div class="collapse navbar-collapse" id="navbar">
  39. <form class="navbar-form navbar-right" role="search" id="search">
  40. <div class="form-group">
  41. <input type="text" class="form-control" id="search-query" placeholder="Search" autocomplete="off">
  42. </div>
  43. </form>
  44. </div>
  45. </div>
  46. </nav>
  47. <div class="subnav navbar navbar-default">
  48. <div class="container hide-when-search" id="breadcrumb">
  49. <ul class="breadcrumb">
  50. <li></li>
  51. </ul>
  52. </div>
  53. </div>
  54. </header>
  55. <div class="container body-content">
  56. <div id="search-results">
  57. <div class="search-list">Search Results for <span></span></div>
  58. <div class="sr-items">
  59. <p><i class="glyphicon glyphicon-refresh index-loading"></i></p>
  60. </div>
  61. <ul id="pagination" data-first="First" data-prev="Previous" data-next="Next" data-last="Last"></ul>
  62. </div>
  63. </div>
  64. <div role="main" class="container body-content hide-when-search">
  65. <div class="sidenav hide-when-search">
  66. <a class="btn toc-toggle collapse" data-toggle="collapse" href="#sidetoggle" aria-expanded="false" aria-controls="sidetoggle">Show / Hide Table of Contents</a>
  67. <div class="sidetoggle collapse" id="sidetoggle">
  68. <div id="sidetoc"></div>
  69. </div>
  70. </div>
  71. <div class="article row grid-right">
  72. <div class="col-md-10">
  73. <article class="content wrap" id="_content" data-uid="Terminal.Gui.MessageBox">
  74. <h1 id="Terminal_Gui_MessageBox" data-uid="Terminal.Gui.MessageBox" class="text-break">Class MessageBox
  75. </h1>
  76. <div class="markdown level0 summary">
  77. MessageBox displays a modal message to the user, with a title, a message and a series of options that the user can choose from.
  78. </div>
  79. <div class="markdown level0 conceptual"></div>
  80. <div class="inheritance">
  81. <h5>Inheritance</h5>
  82. <div class="level0"><span class="xref">System.Object</span></div>
  83. <div class="level1"><span class="xref">MessageBox</span></div>
  84. </div>
  85. <h5 id="Terminal_Gui_MessageBox_examples"><strong>Examples</strong></h5>
  86. <pre><code>var n = MessageBox.Query (&quot;Quit Demo&quot;, &quot;Are you sure you want to quit this demo?&quot;, &quot;Yes&quot;, &quot;No&quot;);
  87. if (n == 0)
  88. quit = true;
  89. else
  90. quit = false;</code></pre>
  91. <div class="inheritedMembers">
  92. <h5>Inherited Members</h5>
  93. <div>
  94. <span class="xref">System.Object.Equals(System.Object)</span>
  95. </div>
  96. <div>
  97. <span class="xref">System.Object.Equals(System.Object, System.Object)</span>
  98. </div>
  99. <div>
  100. <span class="xref">System.Object.GetHashCode()</span>
  101. </div>
  102. <div>
  103. <span class="xref">System.Object.GetType()</span>
  104. </div>
  105. <div>
  106. <span class="xref">System.Object.MemberwiseClone()</span>
  107. </div>
  108. <div>
  109. <span class="xref">System.Object.ReferenceEquals(System.Object, System.Object)</span>
  110. </div>
  111. <div>
  112. <span class="xref">System.Object.ToString()</span>
  113. </div>
  114. </div>
  115. <h6><strong>Namespace</strong>: <a class="xref" href="Terminal.Gui.html">Terminal.Gui</a></h6>
  116. <h6><strong>Assembly</strong>: Terminal.Gui.dll</h6>
  117. <h5 id="Terminal_Gui_MessageBox_syntax">Syntax</h5>
  118. <div class="codewrapper">
  119. <pre><code class="lang-csharp hljs">public static class MessageBox</code></pre>
  120. </div>
  121. <h3 id="properties">Properties
  122. </h3>
  123. <span class="small pull-right mobile-hide">
  124. <span class="divider">|</span>
  125. <a href="https://github.com/gui-cs/Terminal.Gui/new/develop/docfx/overrides/new?filename=Terminal_Gui_MessageBox_Clicked.md&amp;value=---%0Auid%3A%20Terminal.Gui.MessageBox.Clicked%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  126. </span>
  127. <span class="small pull-right mobile-hide">
  128. <a href="https://github.com/gui-cs/Terminal.Gui/blob/develop/Terminal.Gui/Windows/MessageBox.cs/#L332">View Source</a>
  129. </span>
  130. <a id="Terminal_Gui_MessageBox_Clicked_" data-uid="Terminal.Gui.MessageBox.Clicked*"></a>
  131. <h4 id="Terminal_Gui_MessageBox_Clicked" data-uid="Terminal.Gui.MessageBox.Clicked">Clicked</h4>
  132. <div class="markdown level1 summary">
  133. The index of the selected button, or -1 if the user pressed ESC to close the dialog.
  134. This is useful for web based console where by default there is no SynchronizationContext or TaskScheduler.
  135. </div>
  136. <div class="markdown level1 conceptual"></div>
  137. <h5 class="decalaration">Declaration</h5>
  138. <div class="codewrapper">
  139. <pre><code class="lang-csharp hljs">public static int Clicked { get; }</code></pre>
  140. </div>
  141. <h5 class="propertyValue">Property Value</h5>
  142. <table class="table table-bordered table-striped table-condensed">
  143. <thead>
  144. <tr>
  145. <th>Type</th>
  146. <th>Description</th>
  147. </tr>
  148. </thead>
  149. <tbody>
  150. <tr>
  151. <td><span class="xref">System.Int32</span></td>
  152. <td></td>
  153. </tr>
  154. </tbody>
  155. </table>
  156. <h3 id="methods">Methods
  157. </h3>
  158. <span class="small pull-right mobile-hide">
  159. <span class="divider">|</span>
  160. <a href="https://github.com/gui-cs/Terminal.Gui/new/develop/docfx/overrides/new?filename=Terminal_Gui_MessageBox_ErrorQuery_System_Int32_System_Int32_ustring_ustring_System_Int32_Terminal_Gui_Border_ustring___.md&amp;value=---%0Auid%3A%20Terminal.Gui.MessageBox.ErrorQuery(System.Int32%2CSystem.Int32%2Custring%2Custring%2CSystem.Int32%2CTerminal.Gui.Border%2Custring%5B%5D)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  161. </span>
  162. <span class="small pull-right mobile-hide">
  163. <a href="https://github.com/gui-cs/Terminal.Gui/blob/develop/Terminal.Gui/Windows/MessageBox.cs/#L215">View Source</a>
  164. </span>
  165. <a id="Terminal_Gui_MessageBox_ErrorQuery_" data-uid="Terminal.Gui.MessageBox.ErrorQuery*"></a>
  166. <h4 id="Terminal_Gui_MessageBox_ErrorQuery_System_Int32_System_Int32_ustring_ustring_System_Int32_Terminal_Gui_Border_ustring___" data-uid="Terminal.Gui.MessageBox.ErrorQuery(System.Int32,System.Int32,ustring,ustring,System.Int32,Terminal.Gui.Border,ustring[])">ErrorQuery(Int32, Int32, ustring, ustring, Int32, Border, ustring[])</h4>
  167. <div class="markdown level1 summary">
  168. Presents an error <a class="xref" href="Terminal.Gui.MessageBox.html">MessageBox</a> with the specified title and message and a list of buttons to show to the user.
  169. </div>
  170. <div class="markdown level1 conceptual"></div>
  171. <h5 class="decalaration">Declaration</h5>
  172. <div class="codewrapper">
  173. <pre><code class="lang-csharp hljs">public static int ErrorQuery(int width, int height, ustring title, ustring message, int defaultButton = 0, Border border = null, params ustring[] buttons)</code></pre>
  174. </div>
  175. <h5 class="parameters">Parameters</h5>
  176. <table class="table table-bordered table-striped table-condensed">
  177. <thead>
  178. <tr>
  179. <th>Type</th>
  180. <th>Name</th>
  181. <th>Description</th>
  182. </tr>
  183. </thead>
  184. <tbody>
  185. <tr>
  186. <td><span class="xref">System.Int32</span></td>
  187. <td><span class="parametername">width</span></td>
  188. <td>Width for the window.</td>
  189. </tr>
  190. <tr>
  191. <td><span class="xref">System.Int32</span></td>
  192. <td><span class="parametername">height</span></td>
  193. <td>Height for the window.</td>
  194. </tr>
  195. <tr>
  196. <td><span class="xref">ustring</span></td>
  197. <td><span class="parametername">title</span></td>
  198. <td>Title for the query.</td>
  199. </tr>
  200. <tr>
  201. <td><span class="xref">ustring</span></td>
  202. <td><span class="parametername">message</span></td>
  203. <td>Message to display, might contain multiple lines.</td>
  204. </tr>
  205. <tr>
  206. <td><span class="xref">System.Int32</span></td>
  207. <td><span class="parametername">defaultButton</span></td>
  208. <td>Index of the default button.</td>
  209. </tr>
  210. <tr>
  211. <td><a class="xref" href="Terminal.Gui.Border.html">Border</a></td>
  212. <td><span class="parametername">border</span></td>
  213. <td>The border settings.</td>
  214. </tr>
  215. <tr>
  216. <td><span class="xref">ustring</span>[]</td>
  217. <td><span class="parametername">buttons</span></td>
  218. <td>Array of buttons to add.</td>
  219. </tr>
  220. </tbody>
  221. </table>
  222. <h5 class="returns">Returns</h5>
  223. <table class="table table-bordered table-striped table-condensed">
  224. <thead>
  225. <tr>
  226. <th>Type</th>
  227. <th>Description</th>
  228. </tr>
  229. </thead>
  230. <tbody>
  231. <tr>
  232. <td><span class="xref">System.Int32</span></td>
  233. <td>The index of the selected button, or -1 if the user pressed ESC to close the dialog.</td>
  234. </tr>
  235. </tbody>
  236. </table>
  237. <span class="small pull-right mobile-hide">
  238. <span class="divider">|</span>
  239. <a href="https://github.com/gui-cs/Terminal.Gui/new/develop/docfx/overrides/new?filename=Terminal_Gui_MessageBox_ErrorQuery_System_Int32_System_Int32_ustring_ustring_System_Int32_ustring___.md&amp;value=---%0Auid%3A%20Terminal.Gui.MessageBox.ErrorQuery(System.Int32%2CSystem.Int32%2Custring%2Custring%2CSystem.Int32%2Custring%5B%5D)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  240. </span>
  241. <span class="small pull-right mobile-hide">
  242. <a href="https://github.com/gui-cs/Terminal.Gui/blob/develop/Terminal.Gui/Windows/MessageBox.cs/#L179">View Source</a>
  243. </span>
  244. <a id="Terminal_Gui_MessageBox_ErrorQuery_" data-uid="Terminal.Gui.MessageBox.ErrorQuery*"></a>
  245. <h4 id="Terminal_Gui_MessageBox_ErrorQuery_System_Int32_System_Int32_ustring_ustring_System_Int32_ustring___" data-uid="Terminal.Gui.MessageBox.ErrorQuery(System.Int32,System.Int32,ustring,ustring,System.Int32,ustring[])">ErrorQuery(Int32, Int32, ustring, ustring, Int32, ustring[])</h4>
  246. <div class="markdown level1 summary">
  247. Presents an error <a class="xref" href="Terminal.Gui.MessageBox.html">MessageBox</a> with the specified title and message and a list of buttons to show to the user.
  248. </div>
  249. <div class="markdown level1 conceptual"></div>
  250. <h5 class="decalaration">Declaration</h5>
  251. <div class="codewrapper">
  252. <pre><code class="lang-csharp hljs">public static int ErrorQuery(int width, int height, ustring title, ustring message, int defaultButton = 0, params ustring[] buttons)</code></pre>
  253. </div>
  254. <h5 class="parameters">Parameters</h5>
  255. <table class="table table-bordered table-striped table-condensed">
  256. <thead>
  257. <tr>
  258. <th>Type</th>
  259. <th>Name</th>
  260. <th>Description</th>
  261. </tr>
  262. </thead>
  263. <tbody>
  264. <tr>
  265. <td><span class="xref">System.Int32</span></td>
  266. <td><span class="parametername">width</span></td>
  267. <td>Width for the window.</td>
  268. </tr>
  269. <tr>
  270. <td><span class="xref">System.Int32</span></td>
  271. <td><span class="parametername">height</span></td>
  272. <td>Height for the window.</td>
  273. </tr>
  274. <tr>
  275. <td><span class="xref">ustring</span></td>
  276. <td><span class="parametername">title</span></td>
  277. <td>Title for the query.</td>
  278. </tr>
  279. <tr>
  280. <td><span class="xref">ustring</span></td>
  281. <td><span class="parametername">message</span></td>
  282. <td>Message to display, might contain multiple lines.</td>
  283. </tr>
  284. <tr>
  285. <td><span class="xref">System.Int32</span></td>
  286. <td><span class="parametername">defaultButton</span></td>
  287. <td>Index of the default button.</td>
  288. </tr>
  289. <tr>
  290. <td><span class="xref">ustring</span>[]</td>
  291. <td><span class="parametername">buttons</span></td>
  292. <td>Array of buttons to add.</td>
  293. </tr>
  294. </tbody>
  295. </table>
  296. <h5 class="returns">Returns</h5>
  297. <table class="table table-bordered table-striped table-condensed">
  298. <thead>
  299. <tr>
  300. <th>Type</th>
  301. <th>Description</th>
  302. </tr>
  303. </thead>
  304. <tbody>
  305. <tr>
  306. <td><span class="xref">System.Int32</span></td>
  307. <td>The index of the selected button, or -1 if the user pressed ESC to close the dialog.</td>
  308. </tr>
  309. </tbody>
  310. </table>
  311. <span class="small pull-right mobile-hide">
  312. <span class="divider">|</span>
  313. <a href="https://github.com/gui-cs/Terminal.Gui/new/develop/docfx/overrides/new?filename=Terminal_Gui_MessageBox_ErrorQuery_System_Int32_System_Int32_ustring_ustring_ustring___.md&amp;value=---%0Auid%3A%20Terminal.Gui.MessageBox.ErrorQuery(System.Int32%2CSystem.Int32%2Custring%2Custring%2Custring%5B%5D)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  314. </span>
  315. <span class="small pull-right mobile-hide">
  316. <a href="https://github.com/gui-cs/Terminal.Gui/blob/develop/Terminal.Gui/Windows/MessageBox.cs/#L72">View Source</a>
  317. </span>
  318. <a id="Terminal_Gui_MessageBox_ErrorQuery_" data-uid="Terminal.Gui.MessageBox.ErrorQuery*"></a>
  319. <h4 id="Terminal_Gui_MessageBox_ErrorQuery_System_Int32_System_Int32_ustring_ustring_ustring___" data-uid="Terminal.Gui.MessageBox.ErrorQuery(System.Int32,System.Int32,ustring,ustring,ustring[])">ErrorQuery(Int32, Int32, ustring, ustring, ustring[])</h4>
  320. <div class="markdown level1 summary">
  321. Presents an error <a class="xref" href="Terminal.Gui.MessageBox.html">MessageBox</a> with the specified title and message and a list of buttons to show to the user.
  322. </div>
  323. <div class="markdown level1 conceptual"></div>
  324. <h5 class="decalaration">Declaration</h5>
  325. <div class="codewrapper">
  326. <pre><code class="lang-csharp hljs">public static int ErrorQuery(int width, int height, ustring title, ustring message, params ustring[] buttons)</code></pre>
  327. </div>
  328. <h5 class="parameters">Parameters</h5>
  329. <table class="table table-bordered table-striped table-condensed">
  330. <thead>
  331. <tr>
  332. <th>Type</th>
  333. <th>Name</th>
  334. <th>Description</th>
  335. </tr>
  336. </thead>
  337. <tbody>
  338. <tr>
  339. <td><span class="xref">System.Int32</span></td>
  340. <td><span class="parametername">width</span></td>
  341. <td>Width for the window.</td>
  342. </tr>
  343. <tr>
  344. <td><span class="xref">System.Int32</span></td>
  345. <td><span class="parametername">height</span></td>
  346. <td>Height for the window.</td>
  347. </tr>
  348. <tr>
  349. <td><span class="xref">ustring</span></td>
  350. <td><span class="parametername">title</span></td>
  351. <td>Title for the query.</td>
  352. </tr>
  353. <tr>
  354. <td><span class="xref">ustring</span></td>
  355. <td><span class="parametername">message</span></td>
  356. <td>Message to display, might contain multiple lines.</td>
  357. </tr>
  358. <tr>
  359. <td><span class="xref">ustring</span>[]</td>
  360. <td><span class="parametername">buttons</span></td>
  361. <td>Array of buttons to add.</td>
  362. </tr>
  363. </tbody>
  364. </table>
  365. <h5 class="returns">Returns</h5>
  366. <table class="table table-bordered table-striped table-condensed">
  367. <thead>
  368. <tr>
  369. <th>Type</th>
  370. <th>Description</th>
  371. </tr>
  372. </thead>
  373. <tbody>
  374. <tr>
  375. <td><span class="xref">System.Int32</span></td>
  376. <td>The index of the selected button, or -1 if the user pressed ESC to close the dialog.</td>
  377. </tr>
  378. </tbody>
  379. </table>
  380. <span class="small pull-right mobile-hide">
  381. <span class="divider">|</span>
  382. <a href="https://github.com/gui-cs/Terminal.Gui/new/develop/docfx/overrides/new?filename=Terminal_Gui_MessageBox_ErrorQuery_ustring_ustring_System_Int32_Terminal_Gui_Border_ustring___.md&amp;value=---%0Auid%3A%20Terminal.Gui.MessageBox.ErrorQuery(ustring%2Custring%2CSystem.Int32%2CTerminal.Gui.Border%2Custring%5B%5D)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  383. </span>
  384. <span class="small pull-right mobile-hide">
  385. <a href="https://github.com/gui-cs/Terminal.Gui/blob/develop/Terminal.Gui/Windows/MessageBox.cs/#L233">View Source</a>
  386. </span>
  387. <a id="Terminal_Gui_MessageBox_ErrorQuery_" data-uid="Terminal.Gui.MessageBox.ErrorQuery*"></a>
  388. <h4 id="Terminal_Gui_MessageBox_ErrorQuery_ustring_ustring_System_Int32_Terminal_Gui_Border_ustring___" data-uid="Terminal.Gui.MessageBox.ErrorQuery(ustring,ustring,System.Int32,Terminal.Gui.Border,ustring[])">ErrorQuery(ustring, ustring, Int32, Border, ustring[])</h4>
  389. <div class="markdown level1 summary">
  390. Presents an error <a class="xref" href="Terminal.Gui.MessageBox.html">MessageBox</a> with the specified title and message and a list of buttons to show to the user.
  391. </div>
  392. <div class="markdown level1 conceptual"></div>
  393. <h5 class="decalaration">Declaration</h5>
  394. <div class="codewrapper">
  395. <pre><code class="lang-csharp hljs">public static int ErrorQuery(ustring title, ustring message, int defaultButton = 0, Border border = null, params ustring[] buttons)</code></pre>
  396. </div>
  397. <h5 class="parameters">Parameters</h5>
  398. <table class="table table-bordered table-striped table-condensed">
  399. <thead>
  400. <tr>
  401. <th>Type</th>
  402. <th>Name</th>
  403. <th>Description</th>
  404. </tr>
  405. </thead>
  406. <tbody>
  407. <tr>
  408. <td><span class="xref">ustring</span></td>
  409. <td><span class="parametername">title</span></td>
  410. <td>Title for the query.</td>
  411. </tr>
  412. <tr>
  413. <td><span class="xref">ustring</span></td>
  414. <td><span class="parametername">message</span></td>
  415. <td>Message to display, might contain multiple lines.</td>
  416. </tr>
  417. <tr>
  418. <td><span class="xref">System.Int32</span></td>
  419. <td><span class="parametername">defaultButton</span></td>
  420. <td>Index of the default button.</td>
  421. </tr>
  422. <tr>
  423. <td><a class="xref" href="Terminal.Gui.Border.html">Border</a></td>
  424. <td><span class="parametername">border</span></td>
  425. <td>The border settings.</td>
  426. </tr>
  427. <tr>
  428. <td><span class="xref">ustring</span>[]</td>
  429. <td><span class="parametername">buttons</span></td>
  430. <td>Array of buttons to add.</td>
  431. </tr>
  432. </tbody>
  433. </table>
  434. <h5 class="returns">Returns</h5>
  435. <table class="table table-bordered table-striped table-condensed">
  436. <thead>
  437. <tr>
  438. <th>Type</th>
  439. <th>Description</th>
  440. </tr>
  441. </thead>
  442. <tbody>
  443. <tr>
  444. <td><span class="xref">System.Int32</span></td>
  445. <td>The index of the selected button, or -1 if the user pressed ESC to close the dialog.</td>
  446. </tr>
  447. </tbody>
  448. </table>
  449. <span class="small pull-right mobile-hide">
  450. <span class="divider">|</span>
  451. <a href="https://github.com/gui-cs/Terminal.Gui/new/develop/docfx/overrides/new?filename=Terminal_Gui_MessageBox_ErrorQuery_ustring_ustring_System_Int32_ustring___.md&amp;value=---%0Auid%3A%20Terminal.Gui.MessageBox.ErrorQuery(ustring%2Custring%2CSystem.Int32%2Custring%5B%5D)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  452. </span>
  453. <span class="small pull-right mobile-hide">
  454. <a href="https://github.com/gui-cs/Terminal.Gui/blob/develop/Terminal.Gui/Windows/MessageBox.cs/#L196">View Source</a>
  455. </span>
  456. <a id="Terminal_Gui_MessageBox_ErrorQuery_" data-uid="Terminal.Gui.MessageBox.ErrorQuery*"></a>
  457. <h4 id="Terminal_Gui_MessageBox_ErrorQuery_ustring_ustring_System_Int32_ustring___" data-uid="Terminal.Gui.MessageBox.ErrorQuery(ustring,ustring,System.Int32,ustring[])">ErrorQuery(ustring, ustring, Int32, ustring[])</h4>
  458. <div class="markdown level1 summary">
  459. Presents an error <a class="xref" href="Terminal.Gui.MessageBox.html">MessageBox</a> with the specified title and message and a list of buttons to show to the user.
  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 static int ErrorQuery(ustring title, ustring message, int defaultButton = 0, params ustring[] buttons)</code></pre>
  465. </div>
  466. <h5 class="parameters">Parameters</h5>
  467. <table class="table table-bordered table-striped table-condensed">
  468. <thead>
  469. <tr>
  470. <th>Type</th>
  471. <th>Name</th>
  472. <th>Description</th>
  473. </tr>
  474. </thead>
  475. <tbody>
  476. <tr>
  477. <td><span class="xref">ustring</span></td>
  478. <td><span class="parametername">title</span></td>
  479. <td>Title for the query.</td>
  480. </tr>
  481. <tr>
  482. <td><span class="xref">ustring</span></td>
  483. <td><span class="parametername">message</span></td>
  484. <td>Message to display, might contain multiple lines.</td>
  485. </tr>
  486. <tr>
  487. <td><span class="xref">System.Int32</span></td>
  488. <td><span class="parametername">defaultButton</span></td>
  489. <td>Index of the default button.</td>
  490. </tr>
  491. <tr>
  492. <td><span class="xref">ustring</span>[]</td>
  493. <td><span class="parametername">buttons</span></td>
  494. <td>Array of buttons to add.</td>
  495. </tr>
  496. </tbody>
  497. </table>
  498. <h5 class="returns">Returns</h5>
  499. <table class="table table-bordered table-striped table-condensed">
  500. <thead>
  501. <tr>
  502. <th>Type</th>
  503. <th>Description</th>
  504. </tr>
  505. </thead>
  506. <tbody>
  507. <tr>
  508. <td><span class="xref">System.Int32</span></td>
  509. <td>The index of the selected button, or -1 if the user pressed ESC to close the dialog.</td>
  510. </tr>
  511. </tbody>
  512. </table>
  513. <span class="small pull-right mobile-hide">
  514. <span class="divider">|</span>
  515. <a href="https://github.com/gui-cs/Terminal.Gui/new/develop/docfx/overrides/new?filename=Terminal_Gui_MessageBox_ErrorQuery_ustring_ustring_ustring___.md&amp;value=---%0Auid%3A%20Terminal.Gui.MessageBox.ErrorQuery(ustring%2Custring%2Custring%5B%5D)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  516. </span>
  517. <span class="small pull-right mobile-hide">
  518. <a href="https://github.com/gui-cs/Terminal.Gui/blob/develop/Terminal.Gui/Windows/MessageBox.cs/#L88">View Source</a>
  519. </span>
  520. <a id="Terminal_Gui_MessageBox_ErrorQuery_" data-uid="Terminal.Gui.MessageBox.ErrorQuery*"></a>
  521. <h4 id="Terminal_Gui_MessageBox_ErrorQuery_ustring_ustring_ustring___" data-uid="Terminal.Gui.MessageBox.ErrorQuery(ustring,ustring,ustring[])">ErrorQuery(ustring, ustring, ustring[])</h4>
  522. <div class="markdown level1 summary">
  523. Presents an error <a class="xref" href="Terminal.Gui.MessageBox.html">MessageBox</a> with the specified title and message and a list of buttons to show to the user.
  524. </div>
  525. <div class="markdown level1 conceptual"></div>
  526. <h5 class="decalaration">Declaration</h5>
  527. <div class="codewrapper">
  528. <pre><code class="lang-csharp hljs">public static int ErrorQuery(ustring title, ustring message, params ustring[] buttons)</code></pre>
  529. </div>
  530. <h5 class="parameters">Parameters</h5>
  531. <table class="table table-bordered table-striped table-condensed">
  532. <thead>
  533. <tr>
  534. <th>Type</th>
  535. <th>Name</th>
  536. <th>Description</th>
  537. </tr>
  538. </thead>
  539. <tbody>
  540. <tr>
  541. <td><span class="xref">ustring</span></td>
  542. <td><span class="parametername">title</span></td>
  543. <td>Title for the query.</td>
  544. </tr>
  545. <tr>
  546. <td><span class="xref">ustring</span></td>
  547. <td><span class="parametername">message</span></td>
  548. <td>Message to display, might contain multiple lines.</td>
  549. </tr>
  550. <tr>
  551. <td><span class="xref">ustring</span>[]</td>
  552. <td><span class="parametername">buttons</span></td>
  553. <td>Array of buttons to add.</td>
  554. </tr>
  555. </tbody>
  556. </table>
  557. <h5 class="returns">Returns</h5>
  558. <table class="table table-bordered table-striped table-condensed">
  559. <thead>
  560. <tr>
  561. <th>Type</th>
  562. <th>Description</th>
  563. </tr>
  564. </thead>
  565. <tbody>
  566. <tr>
  567. <td><span class="xref">System.Int32</span></td>
  568. <td>The index of the selected button, or -1 if the user pressed ESC to close the dialog.</td>
  569. </tr>
  570. </tbody>
  571. </table>
  572. <span class="small pull-right mobile-hide">
  573. <span class="divider">|</span>
  574. <a href="https://github.com/gui-cs/Terminal.Gui/new/develop/docfx/overrides/new?filename=Terminal_Gui_MessageBox_Query_System_Int32_System_Int32_ustring_ustring_System_Int32_Terminal_Gui_Border_ustring___.md&amp;value=---%0Auid%3A%20Terminal.Gui.MessageBox.Query(System.Int32%2CSystem.Int32%2Custring%2Custring%2CSystem.Int32%2CTerminal.Gui.Border%2Custring%5B%5D)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  575. </span>
  576. <span class="small pull-right mobile-hide">
  577. <a href="https://github.com/gui-cs/Terminal.Gui/blob/develop/Terminal.Gui/Windows/MessageBox.cs/#L142">View Source</a>
  578. </span>
  579. <a id="Terminal_Gui_MessageBox_Query_" data-uid="Terminal.Gui.MessageBox.Query*"></a>
  580. <h4 id="Terminal_Gui_MessageBox_Query_System_Int32_System_Int32_ustring_ustring_System_Int32_Terminal_Gui_Border_ustring___" data-uid="Terminal.Gui.MessageBox.Query(System.Int32,System.Int32,ustring,ustring,System.Int32,Terminal.Gui.Border,ustring[])">Query(Int32, Int32, ustring, ustring, Int32, Border, ustring[])</h4>
  581. <div class="markdown level1 summary">
  582. Presents a normal <a class="xref" href="Terminal.Gui.MessageBox.html">MessageBox</a> with the specified title and message and a list of buttons to show to the user.
  583. </div>
  584. <div class="markdown level1 conceptual"></div>
  585. <h5 class="decalaration">Declaration</h5>
  586. <div class="codewrapper">
  587. <pre><code class="lang-csharp hljs">public static int Query(int width, int height, ustring title, ustring message, int defaultButton = 0, Border border = null, params ustring[] buttons)</code></pre>
  588. </div>
  589. <h5 class="parameters">Parameters</h5>
  590. <table class="table table-bordered table-striped table-condensed">
  591. <thead>
  592. <tr>
  593. <th>Type</th>
  594. <th>Name</th>
  595. <th>Description</th>
  596. </tr>
  597. </thead>
  598. <tbody>
  599. <tr>
  600. <td><span class="xref">System.Int32</span></td>
  601. <td><span class="parametername">width</span></td>
  602. <td>Width for the window.</td>
  603. </tr>
  604. <tr>
  605. <td><span class="xref">System.Int32</span></td>
  606. <td><span class="parametername">height</span></td>
  607. <td>Height for the window.</td>
  608. </tr>
  609. <tr>
  610. <td><span class="xref">ustring</span></td>
  611. <td><span class="parametername">title</span></td>
  612. <td>Title for the query.</td>
  613. </tr>
  614. <tr>
  615. <td><span class="xref">ustring</span></td>
  616. <td><span class="parametername">message</span></td>
  617. <td>Message to display, might contain multiple lines.</td>
  618. </tr>
  619. <tr>
  620. <td><span class="xref">System.Int32</span></td>
  621. <td><span class="parametername">defaultButton</span></td>
  622. <td>Index of the default button.</td>
  623. </tr>
  624. <tr>
  625. <td><a class="xref" href="Terminal.Gui.Border.html">Border</a></td>
  626. <td><span class="parametername">border</span></td>
  627. <td>The border settings.</td>
  628. </tr>
  629. <tr>
  630. <td><span class="xref">ustring</span>[]</td>
  631. <td><span class="parametername">buttons</span></td>
  632. <td>Array of buttons to add.</td>
  633. </tr>
  634. </tbody>
  635. </table>
  636. <h5 class="returns">Returns</h5>
  637. <table class="table table-bordered table-striped table-condensed">
  638. <thead>
  639. <tr>
  640. <th>Type</th>
  641. <th>Description</th>
  642. </tr>
  643. </thead>
  644. <tbody>
  645. <tr>
  646. <td><span class="xref">System.Int32</span></td>
  647. <td>The index of the selected button, or -1 if the user pressed ESC to close the dialog.</td>
  648. </tr>
  649. </tbody>
  650. </table>
  651. <span class="small pull-right mobile-hide">
  652. <span class="divider">|</span>
  653. <a href="https://github.com/gui-cs/Terminal.Gui/new/develop/docfx/overrides/new?filename=Terminal_Gui_MessageBox_Query_System_Int32_System_Int32_ustring_ustring_System_Int32_ustring___.md&amp;value=---%0Auid%3A%20Terminal.Gui.MessageBox.Query(System.Int32%2CSystem.Int32%2Custring%2Custring%2CSystem.Int32%2Custring%5B%5D)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  654. </span>
  655. <span class="small pull-right mobile-hide">
  656. <a href="https://github.com/gui-cs/Terminal.Gui/blob/develop/Terminal.Gui/Windows/MessageBox.cs/#L106">View Source</a>
  657. </span>
  658. <a id="Terminal_Gui_MessageBox_Query_" data-uid="Terminal.Gui.MessageBox.Query*"></a>
  659. <h4 id="Terminal_Gui_MessageBox_Query_System_Int32_System_Int32_ustring_ustring_System_Int32_ustring___" data-uid="Terminal.Gui.MessageBox.Query(System.Int32,System.Int32,ustring,ustring,System.Int32,ustring[])">Query(Int32, Int32, ustring, ustring, Int32, ustring[])</h4>
  660. <div class="markdown level1 summary">
  661. Presents a normal <a class="xref" href="Terminal.Gui.MessageBox.html">MessageBox</a> with the specified title and message and a list of buttons to show to the user.
  662. </div>
  663. <div class="markdown level1 conceptual"></div>
  664. <h5 class="decalaration">Declaration</h5>
  665. <div class="codewrapper">
  666. <pre><code class="lang-csharp hljs">public static int Query(int width, int height, ustring title, ustring message, int defaultButton = 0, params ustring[] buttons)</code></pre>
  667. </div>
  668. <h5 class="parameters">Parameters</h5>
  669. <table class="table table-bordered table-striped table-condensed">
  670. <thead>
  671. <tr>
  672. <th>Type</th>
  673. <th>Name</th>
  674. <th>Description</th>
  675. </tr>
  676. </thead>
  677. <tbody>
  678. <tr>
  679. <td><span class="xref">System.Int32</span></td>
  680. <td><span class="parametername">width</span></td>
  681. <td>Width for the window.</td>
  682. </tr>
  683. <tr>
  684. <td><span class="xref">System.Int32</span></td>
  685. <td><span class="parametername">height</span></td>
  686. <td>Height for the window.</td>
  687. </tr>
  688. <tr>
  689. <td><span class="xref">ustring</span></td>
  690. <td><span class="parametername">title</span></td>
  691. <td>Title for the query.</td>
  692. </tr>
  693. <tr>
  694. <td><span class="xref">ustring</span></td>
  695. <td><span class="parametername">message</span></td>
  696. <td>Message to display, might contain multiple lines.</td>
  697. </tr>
  698. <tr>
  699. <td><span class="xref">System.Int32</span></td>
  700. <td><span class="parametername">defaultButton</span></td>
  701. <td>Index of the default button.</td>
  702. </tr>
  703. <tr>
  704. <td><span class="xref">ustring</span>[]</td>
  705. <td><span class="parametername">buttons</span></td>
  706. <td>Array of buttons to add.</td>
  707. </tr>
  708. </tbody>
  709. </table>
  710. <h5 class="returns">Returns</h5>
  711. <table class="table table-bordered table-striped table-condensed">
  712. <thead>
  713. <tr>
  714. <th>Type</th>
  715. <th>Description</th>
  716. </tr>
  717. </thead>
  718. <tbody>
  719. <tr>
  720. <td><span class="xref">System.Int32</span></td>
  721. <td>The index of the selected button, or -1 if the user pressed ESC to close the dialog.</td>
  722. </tr>
  723. </tbody>
  724. </table>
  725. <span class="small pull-right mobile-hide">
  726. <span class="divider">|</span>
  727. <a href="https://github.com/gui-cs/Terminal.Gui/new/develop/docfx/overrides/new?filename=Terminal_Gui_MessageBox_Query_System_Int32_System_Int32_ustring_ustring_ustring___.md&amp;value=---%0Auid%3A%20Terminal.Gui.MessageBox.Query(System.Int32%2CSystem.Int32%2Custring%2Custring%2Custring%5B%5D)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  728. </span>
  729. <span class="small pull-right mobile-hide">
  730. <a href="https://github.com/gui-cs/Terminal.Gui/blob/develop/Terminal.Gui/Windows/MessageBox.cs/#L39">View Source</a>
  731. </span>
  732. <a id="Terminal_Gui_MessageBox_Query_" data-uid="Terminal.Gui.MessageBox.Query*"></a>
  733. <h4 id="Terminal_Gui_MessageBox_Query_System_Int32_System_Int32_ustring_ustring_ustring___" data-uid="Terminal.Gui.MessageBox.Query(System.Int32,System.Int32,ustring,ustring,ustring[])">Query(Int32, Int32, ustring, ustring, ustring[])</h4>
  734. <div class="markdown level1 summary">
  735. Presents a normal <a class="xref" href="Terminal.Gui.MessageBox.html">MessageBox</a> with the specified title and message and a list of buttons to show to the user.
  736. </div>
  737. <div class="markdown level1 conceptual"></div>
  738. <h5 class="decalaration">Declaration</h5>
  739. <div class="codewrapper">
  740. <pre><code class="lang-csharp hljs">public static int Query(int width, int height, ustring title, ustring message, params ustring[] buttons)</code></pre>
  741. </div>
  742. <h5 class="parameters">Parameters</h5>
  743. <table class="table table-bordered table-striped table-condensed">
  744. <thead>
  745. <tr>
  746. <th>Type</th>
  747. <th>Name</th>
  748. <th>Description</th>
  749. </tr>
  750. </thead>
  751. <tbody>
  752. <tr>
  753. <td><span class="xref">System.Int32</span></td>
  754. <td><span class="parametername">width</span></td>
  755. <td>Width for the window.</td>
  756. </tr>
  757. <tr>
  758. <td><span class="xref">System.Int32</span></td>
  759. <td><span class="parametername">height</span></td>
  760. <td>Height for the window.</td>
  761. </tr>
  762. <tr>
  763. <td><span class="xref">ustring</span></td>
  764. <td><span class="parametername">title</span></td>
  765. <td>Title for the query.</td>
  766. </tr>
  767. <tr>
  768. <td><span class="xref">ustring</span></td>
  769. <td><span class="parametername">message</span></td>
  770. <td>Message to display, might contain multiple lines.</td>
  771. </tr>
  772. <tr>
  773. <td><span class="xref">ustring</span>[]</td>
  774. <td><span class="parametername">buttons</span></td>
  775. <td>Array of buttons to add.</td>
  776. </tr>
  777. </tbody>
  778. </table>
  779. <h5 class="returns">Returns</h5>
  780. <table class="table table-bordered table-striped table-condensed">
  781. <thead>
  782. <tr>
  783. <th>Type</th>
  784. <th>Description</th>
  785. </tr>
  786. </thead>
  787. <tbody>
  788. <tr>
  789. <td><span class="xref">System.Int32</span></td>
  790. <td>The index of the selected button, or -1 if the user pressed ESC to close the dialog.</td>
  791. </tr>
  792. </tbody>
  793. </table>
  794. <span class="small pull-right mobile-hide">
  795. <span class="divider">|</span>
  796. <a href="https://github.com/gui-cs/Terminal.Gui/new/develop/docfx/overrides/new?filename=Terminal_Gui_MessageBox_Query_ustring_ustring_System_Int32_Terminal_Gui_Border_ustring___.md&amp;value=---%0Auid%3A%20Terminal.Gui.MessageBox.Query(ustring%2Custring%2CSystem.Int32%2CTerminal.Gui.Border%2Custring%5B%5D)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  797. </span>
  798. <span class="small pull-right mobile-hide">
  799. <a href="https://github.com/gui-cs/Terminal.Gui/blob/develop/Terminal.Gui/Windows/MessageBox.cs/#L160">View Source</a>
  800. </span>
  801. <a id="Terminal_Gui_MessageBox_Query_" data-uid="Terminal.Gui.MessageBox.Query*"></a>
  802. <h4 id="Terminal_Gui_MessageBox_Query_ustring_ustring_System_Int32_Terminal_Gui_Border_ustring___" data-uid="Terminal.Gui.MessageBox.Query(ustring,ustring,System.Int32,Terminal.Gui.Border,ustring[])">Query(ustring, ustring, Int32, Border, ustring[])</h4>
  803. <div class="markdown level1 summary">
  804. Presents an error <a class="xref" href="Terminal.Gui.MessageBox.html">MessageBox</a> with the specified title and message and a list of buttons to show to the user.
  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 static int Query(ustring title, ustring message, int defaultButton = 0, Border border = null, params ustring[] buttons)</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><span class="xref">ustring</span></td>
  823. <td><span class="parametername">title</span></td>
  824. <td>Title for the query.</td>
  825. </tr>
  826. <tr>
  827. <td><span class="xref">ustring</span></td>
  828. <td><span class="parametername">message</span></td>
  829. <td>Message to display, might contain multiple lines.</td>
  830. </tr>
  831. <tr>
  832. <td><span class="xref">System.Int32</span></td>
  833. <td><span class="parametername">defaultButton</span></td>
  834. <td>Index of the default button.</td>
  835. </tr>
  836. <tr>
  837. <td><a class="xref" href="Terminal.Gui.Border.html">Border</a></td>
  838. <td><span class="parametername">border</span></td>
  839. <td>The border settings.</td>
  840. </tr>
  841. <tr>
  842. <td><span class="xref">ustring</span>[]</td>
  843. <td><span class="parametername">buttons</span></td>
  844. <td>Array of buttons to add.</td>
  845. </tr>
  846. </tbody>
  847. </table>
  848. <h5 class="returns">Returns</h5>
  849. <table class="table table-bordered table-striped table-condensed">
  850. <thead>
  851. <tr>
  852. <th>Type</th>
  853. <th>Description</th>
  854. </tr>
  855. </thead>
  856. <tbody>
  857. <tr>
  858. <td><span class="xref">System.Int32</span></td>
  859. <td>The index of the selected button, or -1 if the user pressed ESC to close the dialog.</td>
  860. </tr>
  861. </tbody>
  862. </table>
  863. <span class="small pull-right mobile-hide">
  864. <span class="divider">|</span>
  865. <a href="https://github.com/gui-cs/Terminal.Gui/new/develop/docfx/overrides/new?filename=Terminal_Gui_MessageBox_Query_ustring_ustring_System_Int32_ustring___.md&amp;value=---%0Auid%3A%20Terminal.Gui.MessageBox.Query(ustring%2Custring%2CSystem.Int32%2Custring%5B%5D)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  866. </span>
  867. <span class="small pull-right mobile-hide">
  868. <a href="https://github.com/gui-cs/Terminal.Gui/blob/develop/Terminal.Gui/Windows/MessageBox.cs/#L123">View Source</a>
  869. </span>
  870. <a id="Terminal_Gui_MessageBox_Query_" data-uid="Terminal.Gui.MessageBox.Query*"></a>
  871. <h4 id="Terminal_Gui_MessageBox_Query_ustring_ustring_System_Int32_ustring___" data-uid="Terminal.Gui.MessageBox.Query(ustring,ustring,System.Int32,ustring[])">Query(ustring, ustring, Int32, ustring[])</h4>
  872. <div class="markdown level1 summary">
  873. Presents an error <a class="xref" href="Terminal.Gui.MessageBox.html">MessageBox</a> with the specified title and message and a list of buttons to show to the user.
  874. </div>
  875. <div class="markdown level1 conceptual"></div>
  876. <h5 class="decalaration">Declaration</h5>
  877. <div class="codewrapper">
  878. <pre><code class="lang-csharp hljs">public static int Query(ustring title, ustring message, int defaultButton = 0, params ustring[] buttons)</code></pre>
  879. </div>
  880. <h5 class="parameters">Parameters</h5>
  881. <table class="table table-bordered table-striped table-condensed">
  882. <thead>
  883. <tr>
  884. <th>Type</th>
  885. <th>Name</th>
  886. <th>Description</th>
  887. </tr>
  888. </thead>
  889. <tbody>
  890. <tr>
  891. <td><span class="xref">ustring</span></td>
  892. <td><span class="parametername">title</span></td>
  893. <td>Title for the query.</td>
  894. </tr>
  895. <tr>
  896. <td><span class="xref">ustring</span></td>
  897. <td><span class="parametername">message</span></td>
  898. <td>Message to display, might contain multiple lines.</td>
  899. </tr>
  900. <tr>
  901. <td><span class="xref">System.Int32</span></td>
  902. <td><span class="parametername">defaultButton</span></td>
  903. <td>Index of the default button.</td>
  904. </tr>
  905. <tr>
  906. <td><span class="xref">ustring</span>[]</td>
  907. <td><span class="parametername">buttons</span></td>
  908. <td>Array of buttons to add.</td>
  909. </tr>
  910. </tbody>
  911. </table>
  912. <h5 class="returns">Returns</h5>
  913. <table class="table table-bordered table-striped table-condensed">
  914. <thead>
  915. <tr>
  916. <th>Type</th>
  917. <th>Description</th>
  918. </tr>
  919. </thead>
  920. <tbody>
  921. <tr>
  922. <td><span class="xref">System.Int32</span></td>
  923. <td>The index of the selected button, or -1 if the user pressed ESC to close the dialog.</td>
  924. </tr>
  925. </tbody>
  926. </table>
  927. <span class="small pull-right mobile-hide">
  928. <span class="divider">|</span>
  929. <a href="https://github.com/gui-cs/Terminal.Gui/new/develop/docfx/overrides/new?filename=Terminal_Gui_MessageBox_Query_ustring_ustring_ustring___.md&amp;value=---%0Auid%3A%20Terminal.Gui.MessageBox.Query(ustring%2Custring%2Custring%5B%5D)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  930. </span>
  931. <span class="small pull-right mobile-hide">
  932. <a href="https://github.com/gui-cs/Terminal.Gui/blob/develop/Terminal.Gui/Windows/MessageBox.cs/#L55">View Source</a>
  933. </span>
  934. <a id="Terminal_Gui_MessageBox_Query_" data-uid="Terminal.Gui.MessageBox.Query*"></a>
  935. <h4 id="Terminal_Gui_MessageBox_Query_ustring_ustring_ustring___" data-uid="Terminal.Gui.MessageBox.Query(ustring,ustring,ustring[])">Query(ustring, ustring, ustring[])</h4>
  936. <div class="markdown level1 summary">
  937. Presents an error <a class="xref" href="Terminal.Gui.MessageBox.html">MessageBox</a> with the specified title and message and a list of buttons to show to the user.
  938. </div>
  939. <div class="markdown level1 conceptual"></div>
  940. <h5 class="decalaration">Declaration</h5>
  941. <div class="codewrapper">
  942. <pre><code class="lang-csharp hljs">public static int Query(ustring title, ustring message, params ustring[] buttons)</code></pre>
  943. </div>
  944. <h5 class="parameters">Parameters</h5>
  945. <table class="table table-bordered table-striped table-condensed">
  946. <thead>
  947. <tr>
  948. <th>Type</th>
  949. <th>Name</th>
  950. <th>Description</th>
  951. </tr>
  952. </thead>
  953. <tbody>
  954. <tr>
  955. <td><span class="xref">ustring</span></td>
  956. <td><span class="parametername">title</span></td>
  957. <td>Title for the query.</td>
  958. </tr>
  959. <tr>
  960. <td><span class="xref">ustring</span></td>
  961. <td><span class="parametername">message</span></td>
  962. <td>Message to display, might contain multiple lines.</td>
  963. </tr>
  964. <tr>
  965. <td><span class="xref">ustring</span>[]</td>
  966. <td><span class="parametername">buttons</span></td>
  967. <td>Array of buttons to add.</td>
  968. </tr>
  969. </tbody>
  970. </table>
  971. <h5 class="returns">Returns</h5>
  972. <table class="table table-bordered table-striped table-condensed">
  973. <thead>
  974. <tr>
  975. <th>Type</th>
  976. <th>Description</th>
  977. </tr>
  978. </thead>
  979. <tbody>
  980. <tr>
  981. <td><span class="xref">System.Int32</span></td>
  982. <td>The index of the selected button, or -1 if the user pressed ESC to close the dialog.</td>
  983. </tr>
  984. </tbody>
  985. </table>
  986. </article>
  987. </div>
  988. <div class="hidden-sm col-md-2" role="complementary">
  989. <div class="sideaffix">
  990. <div class="contribution">
  991. <ul class="nav">
  992. <li>
  993. <a href="https://github.com/gui-cs/Terminal.Gui/new/develop/docfx/overrides/new?filename=Terminal_Gui_MessageBox.md&amp;value=---%0Auid%3A%20Terminal.Gui.MessageBox%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A" class="contribution-link">Improve this Doc</a>
  994. </li>
  995. <li>
  996. <a href="https://github.com/gui-cs/Terminal.Gui/blob/develop/Terminal.Gui/Windows/MessageBox.cs/#L26" class="contribution-link">View Source</a>
  997. </li>
  998. </ul>
  999. </div>
  1000. <nav class="bs-docs-sidebar hidden-print hidden-xs hidden-sm affix" id="affix">
  1001. <h5>In This Article</h5>
  1002. <div></div>
  1003. </nav>
  1004. </div>
  1005. </div>
  1006. </div>
  1007. </div>
  1008. <footer>
  1009. <div class="grad-bottom"></div>
  1010. <div class="footer">
  1011. <div class="container">
  1012. <span class="pull-right">
  1013. <a href="#top">Back to top</a>
  1014. </span>
  1015. <span>Generated by <strong>DocFX</strong></span>
  1016. </div>
  1017. </div>
  1018. </footer>
  1019. </div>
  1020. <script type="text/javascript" src="../../styles/docfx.vendor.js"></script>
  1021. <script type="text/javascript" src="../../styles/docfx.js"></script>
  1022. <script type="text/javascript" src="../../styles/main.js"></script>
  1023. </body>
  1024. </html>