Terminal.Gui.MessageBox.yml 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528
  1. ### YamlMime:ManagedReference
  2. items:
  3. - uid: Terminal.Gui.MessageBox
  4. commentId: T:Terminal.Gui.MessageBox
  5. id: MessageBox
  6. parent: Terminal.Gui
  7. children:
  8. - Terminal.Gui.MessageBox.ErrorQuery(System.Int32,System.Int32,System.String,System.String,System.String[])
  9. - Terminal.Gui.MessageBox.Query(System.Int32,System.Int32,System.String,System.String,System.String[])
  10. langs:
  11. - csharp
  12. - vb
  13. name: MessageBox
  14. nameWithType: MessageBox
  15. fullName: Terminal.Gui.MessageBox
  16. type: Class
  17. source:
  18. remote:
  19. path: Terminal.Gui/Dialogs/MessageBox.cs
  20. branch: docs
  21. repo: tig:tig/gui.cs.git
  22. id: MessageBox
  23. path: ../Terminal.Gui/Dialogs/MessageBox.cs
  24. startLine: 21
  25. assemblies:
  26. - Terminal.Gui
  27. namespace: Terminal.Gui
  28. summary: "\nMessageBox displays a modal message to the user, with a title, a message and a series of options that the user can choose from.\n"
  29. example:
  30. - "\n<pre><code>var n = MessageBox.Query (50, 7, &quot;Quit Demo&quot;, &quot;Are you sure you want to quit this demo?&quot;, &quot;Yes&quot;, &quot;No&quot;);\nif (n == 0)\n quit = true;\nelse\n quit = false;</code></pre>\n"
  31. syntax:
  32. content: public static class MessageBox
  33. content.vb: Public Module MessageBox
  34. inheritance:
  35. - System.Object
  36. inheritedMembers:
  37. - System.Object.Equals(System.Object)
  38. - System.Object.Equals(System.Object,System.Object)
  39. - System.Object.GetHashCode
  40. - System.Object.GetType
  41. - System.Object.MemberwiseClone
  42. - System.Object.ReferenceEquals(System.Object,System.Object)
  43. - System.Object.ToString
  44. modifiers.csharp:
  45. - public
  46. - static
  47. - class
  48. modifiers.vb:
  49. - Public
  50. - Module
  51. - uid: Terminal.Gui.MessageBox.Query(System.Int32,System.Int32,System.String,System.String,System.String[])
  52. commentId: M:Terminal.Gui.MessageBox.Query(System.Int32,System.Int32,System.String,System.String,System.String[])
  53. id: Query(System.Int32,System.Int32,System.String,System.String,System.String[])
  54. parent: Terminal.Gui.MessageBox
  55. langs:
  56. - csharp
  57. - vb
  58. name: Query(Int32, Int32, String, String, String[])
  59. nameWithType: MessageBox.Query(Int32, Int32, String, String, String[])
  60. fullName: Terminal.Gui.MessageBox.Query(System.Int32, System.Int32, System.String, System.String, System.String[])
  61. type: Method
  62. source:
  63. remote:
  64. path: Terminal.Gui/Dialogs/MessageBox.cs
  65. branch: docs
  66. repo: tig:tig/gui.cs.git
  67. id: Query
  68. path: ../Terminal.Gui/Dialogs/MessageBox.cs
  69. startLine: 31
  70. assemblies:
  71. - Terminal.Gui
  72. namespace: Terminal.Gui
  73. summary: "\nPresents a normal <xref href=\"Terminal.Gui.MessageBox\" data-throw-if-not-resolved=\"false\"></xref> with the specified title and message and a list of buttons to show to the user.\n"
  74. example: []
  75. syntax:
  76. content: public static int Query(int width, int height, string title, string message, params string[] buttons)
  77. parameters:
  78. - id: width
  79. type: System.Int32
  80. description: Width for the window.
  81. - id: height
  82. type: System.Int32
  83. description: Height for the window.
  84. - id: title
  85. type: System.String
  86. description: Title for the query.
  87. - id: message
  88. type: System.String
  89. description: Message to display, might contain multiple lines..
  90. - id: buttons
  91. type: System.String[]
  92. description: Array of buttons to add.
  93. return:
  94. type: System.Int32
  95. description: The index of the selected button, or -1 if the user pressed ESC to close the dialog.
  96. content.vb: Public Shared Function Query(width As Integer, height As Integer, title As String, message As String, ParamArray buttons As String()) As Integer
  97. overload: Terminal.Gui.MessageBox.Query*
  98. nameWithType.vb: MessageBox.Query(Int32, Int32, String, String, String())
  99. modifiers.csharp:
  100. - public
  101. - static
  102. modifiers.vb:
  103. - Public
  104. - Shared
  105. fullName.vb: Terminal.Gui.MessageBox.Query(System.Int32, System.Int32, System.String, System.String, System.String())
  106. name.vb: Query(Int32, Int32, String, String, String())
  107. - uid: Terminal.Gui.MessageBox.ErrorQuery(System.Int32,System.Int32,System.String,System.String,System.String[])
  108. commentId: M:Terminal.Gui.MessageBox.ErrorQuery(System.Int32,System.Int32,System.String,System.String,System.String[])
  109. id: ErrorQuery(System.Int32,System.Int32,System.String,System.String,System.String[])
  110. parent: Terminal.Gui.MessageBox
  111. langs:
  112. - csharp
  113. - vb
  114. name: ErrorQuery(Int32, Int32, String, String, String[])
  115. nameWithType: MessageBox.ErrorQuery(Int32, Int32, String, String, String[])
  116. fullName: Terminal.Gui.MessageBox.ErrorQuery(System.Int32, System.Int32, System.String, System.String, System.String[])
  117. type: Method
  118. source:
  119. remote:
  120. path: Terminal.Gui/Dialogs/MessageBox.cs
  121. branch: docs
  122. repo: tig:tig/gui.cs.git
  123. id: ErrorQuery
  124. path: ../Terminal.Gui/Dialogs/MessageBox.cs
  125. startLine: 45
  126. assemblies:
  127. - Terminal.Gui
  128. namespace: Terminal.Gui
  129. summary: "\nPresents an error <xref href=\"Terminal.Gui.MessageBox\" data-throw-if-not-resolved=\"false\"></xref> with the specified title and message and a list of buttons to show to the user.\n"
  130. example: []
  131. syntax:
  132. content: public static int ErrorQuery(int width, int height, string title, string message, params string[] buttons)
  133. parameters:
  134. - id: width
  135. type: System.Int32
  136. description: Width for the window.
  137. - id: height
  138. type: System.Int32
  139. description: Height for the window.
  140. - id: title
  141. type: System.String
  142. description: Title for the query.
  143. - id: message
  144. type: System.String
  145. description: Message to display, might contain multiple lines.
  146. - id: buttons
  147. type: System.String[]
  148. description: Array of buttons to add.
  149. return:
  150. type: System.Int32
  151. description: The index of the selected button, or -1 if the user pressed ESC to close the dialog.
  152. content.vb: Public Shared Function ErrorQuery(width As Integer, height As Integer, title As String, message As String, ParamArray buttons As String()) As Integer
  153. overload: Terminal.Gui.MessageBox.ErrorQuery*
  154. nameWithType.vb: MessageBox.ErrorQuery(Int32, Int32, String, String, String())
  155. modifiers.csharp:
  156. - public
  157. - static
  158. modifiers.vb:
  159. - Public
  160. - Shared
  161. fullName.vb: Terminal.Gui.MessageBox.ErrorQuery(System.Int32, System.Int32, System.String, System.String, System.String())
  162. name.vb: ErrorQuery(Int32, Int32, String, String, String())
  163. references:
  164. - uid: Terminal.Gui.MessageBox.Query(System.Int32,System.Int32,System.String,System.String,System.String[])
  165. commentId: M:Terminal.Gui.MessageBox.Query(System.Int32,System.Int32,System.String,System.String,System.String[])
  166. isExternal: true
  167. - uid: Terminal.Gui.MessageBox.ErrorQuery(System.Int32,System.Int32,System.String,System.String,System.String[])
  168. commentId: M:Terminal.Gui.MessageBox.ErrorQuery(System.Int32,System.Int32,System.String,System.String,System.String[])
  169. isExternal: true
  170. - uid: Terminal.Gui.MessageBox
  171. commentId: T:Terminal.Gui.MessageBox
  172. name: MessageBox
  173. nameWithType: MessageBox
  174. fullName: Terminal.Gui.MessageBox
  175. - uid: Terminal.Gui.Button
  176. commentId: T:Terminal.Gui.Button
  177. parent: Terminal.Gui
  178. name: Button
  179. nameWithType: Button
  180. fullName: Terminal.Gui.Button
  181. - uid: Terminal.Gui
  182. commentId: N:Terminal.Gui
  183. name: Terminal.Gui
  184. nameWithType: Terminal.Gui
  185. fullName: Terminal.Gui
  186. - uid: System.Object
  187. commentId: T:System.Object
  188. parent: System
  189. isExternal: true
  190. name: Object
  191. nameWithType: Object
  192. fullName: System.Object
  193. - uid: System.Object.Equals(System.Object)
  194. commentId: M:System.Object.Equals(System.Object)
  195. parent: System.Object
  196. isExternal: true
  197. name: Equals(Object)
  198. nameWithType: Object.Equals(Object)
  199. fullName: System.Object.Equals(System.Object)
  200. spec.csharp:
  201. - uid: System.Object.Equals(System.Object)
  202. name: Equals
  203. nameWithType: Object.Equals
  204. fullName: System.Object.Equals
  205. isExternal: true
  206. - name: (
  207. nameWithType: (
  208. fullName: (
  209. - uid: System.Object
  210. name: Object
  211. nameWithType: Object
  212. fullName: System.Object
  213. isExternal: true
  214. - name: )
  215. nameWithType: )
  216. fullName: )
  217. spec.vb:
  218. - uid: System.Object.Equals(System.Object)
  219. name: Equals
  220. nameWithType: Object.Equals
  221. fullName: System.Object.Equals
  222. isExternal: true
  223. - name: (
  224. nameWithType: (
  225. fullName: (
  226. - uid: System.Object
  227. name: Object
  228. nameWithType: Object
  229. fullName: System.Object
  230. isExternal: true
  231. - name: )
  232. nameWithType: )
  233. fullName: )
  234. - uid: System.Object.Equals(System.Object,System.Object)
  235. commentId: M:System.Object.Equals(System.Object,System.Object)
  236. parent: System.Object
  237. isExternal: true
  238. name: Equals(Object, Object)
  239. nameWithType: Object.Equals(Object, Object)
  240. fullName: System.Object.Equals(System.Object, System.Object)
  241. spec.csharp:
  242. - uid: System.Object.Equals(System.Object,System.Object)
  243. name: Equals
  244. nameWithType: Object.Equals
  245. fullName: System.Object.Equals
  246. isExternal: true
  247. - name: (
  248. nameWithType: (
  249. fullName: (
  250. - uid: System.Object
  251. name: Object
  252. nameWithType: Object
  253. fullName: System.Object
  254. isExternal: true
  255. - name: ', '
  256. nameWithType: ', '
  257. fullName: ', '
  258. - uid: System.Object
  259. name: Object
  260. nameWithType: Object
  261. fullName: System.Object
  262. isExternal: true
  263. - name: )
  264. nameWithType: )
  265. fullName: )
  266. spec.vb:
  267. - uid: System.Object.Equals(System.Object,System.Object)
  268. name: Equals
  269. nameWithType: Object.Equals
  270. fullName: System.Object.Equals
  271. isExternal: true
  272. - name: (
  273. nameWithType: (
  274. fullName: (
  275. - uid: System.Object
  276. name: Object
  277. nameWithType: Object
  278. fullName: System.Object
  279. isExternal: true
  280. - name: ', '
  281. nameWithType: ', '
  282. fullName: ', '
  283. - uid: System.Object
  284. name: Object
  285. nameWithType: Object
  286. fullName: System.Object
  287. isExternal: true
  288. - name: )
  289. nameWithType: )
  290. fullName: )
  291. - uid: System.Object.GetHashCode
  292. commentId: M:System.Object.GetHashCode
  293. parent: System.Object
  294. isExternal: true
  295. name: GetHashCode()
  296. nameWithType: Object.GetHashCode()
  297. fullName: System.Object.GetHashCode()
  298. spec.csharp:
  299. - uid: System.Object.GetHashCode
  300. name: GetHashCode
  301. nameWithType: Object.GetHashCode
  302. fullName: System.Object.GetHashCode
  303. isExternal: true
  304. - name: (
  305. nameWithType: (
  306. fullName: (
  307. - name: )
  308. nameWithType: )
  309. fullName: )
  310. spec.vb:
  311. - uid: System.Object.GetHashCode
  312. name: GetHashCode
  313. nameWithType: Object.GetHashCode
  314. fullName: System.Object.GetHashCode
  315. isExternal: true
  316. - name: (
  317. nameWithType: (
  318. fullName: (
  319. - name: )
  320. nameWithType: )
  321. fullName: )
  322. - uid: System.Object.GetType
  323. commentId: M:System.Object.GetType
  324. parent: System.Object
  325. isExternal: true
  326. name: GetType()
  327. nameWithType: Object.GetType()
  328. fullName: System.Object.GetType()
  329. spec.csharp:
  330. - uid: System.Object.GetType
  331. name: GetType
  332. nameWithType: Object.GetType
  333. fullName: System.Object.GetType
  334. isExternal: true
  335. - name: (
  336. nameWithType: (
  337. fullName: (
  338. - name: )
  339. nameWithType: )
  340. fullName: )
  341. spec.vb:
  342. - uid: System.Object.GetType
  343. name: GetType
  344. nameWithType: Object.GetType
  345. fullName: System.Object.GetType
  346. isExternal: true
  347. - name: (
  348. nameWithType: (
  349. fullName: (
  350. - name: )
  351. nameWithType: )
  352. fullName: )
  353. - uid: System.Object.MemberwiseClone
  354. commentId: M:System.Object.MemberwiseClone
  355. parent: System.Object
  356. isExternal: true
  357. name: MemberwiseClone()
  358. nameWithType: Object.MemberwiseClone()
  359. fullName: System.Object.MemberwiseClone()
  360. spec.csharp:
  361. - uid: System.Object.MemberwiseClone
  362. name: MemberwiseClone
  363. nameWithType: Object.MemberwiseClone
  364. fullName: System.Object.MemberwiseClone
  365. isExternal: true
  366. - name: (
  367. nameWithType: (
  368. fullName: (
  369. - name: )
  370. nameWithType: )
  371. fullName: )
  372. spec.vb:
  373. - uid: System.Object.MemberwiseClone
  374. name: MemberwiseClone
  375. nameWithType: Object.MemberwiseClone
  376. fullName: System.Object.MemberwiseClone
  377. isExternal: true
  378. - name: (
  379. nameWithType: (
  380. fullName: (
  381. - name: )
  382. nameWithType: )
  383. fullName: )
  384. - uid: System.Object.ReferenceEquals(System.Object,System.Object)
  385. commentId: M:System.Object.ReferenceEquals(System.Object,System.Object)
  386. parent: System.Object
  387. isExternal: true
  388. name: ReferenceEquals(Object, Object)
  389. nameWithType: Object.ReferenceEquals(Object, Object)
  390. fullName: System.Object.ReferenceEquals(System.Object, System.Object)
  391. spec.csharp:
  392. - uid: System.Object.ReferenceEquals(System.Object,System.Object)
  393. name: ReferenceEquals
  394. nameWithType: Object.ReferenceEquals
  395. fullName: System.Object.ReferenceEquals
  396. isExternal: true
  397. - name: (
  398. nameWithType: (
  399. fullName: (
  400. - uid: System.Object
  401. name: Object
  402. nameWithType: Object
  403. fullName: System.Object
  404. isExternal: true
  405. - name: ', '
  406. nameWithType: ', '
  407. fullName: ', '
  408. - uid: System.Object
  409. name: Object
  410. nameWithType: Object
  411. fullName: System.Object
  412. isExternal: true
  413. - name: )
  414. nameWithType: )
  415. fullName: )
  416. spec.vb:
  417. - uid: System.Object.ReferenceEquals(System.Object,System.Object)
  418. name: ReferenceEquals
  419. nameWithType: Object.ReferenceEquals
  420. fullName: System.Object.ReferenceEquals
  421. isExternal: true
  422. - name: (
  423. nameWithType: (
  424. fullName: (
  425. - uid: System.Object
  426. name: Object
  427. nameWithType: Object
  428. fullName: System.Object
  429. isExternal: true
  430. - name: ', '
  431. nameWithType: ', '
  432. fullName: ', '
  433. - uid: System.Object
  434. name: Object
  435. nameWithType: Object
  436. fullName: System.Object
  437. isExternal: true
  438. - name: )
  439. nameWithType: )
  440. fullName: )
  441. - uid: System.Object.ToString
  442. commentId: M:System.Object.ToString
  443. parent: System.Object
  444. isExternal: true
  445. name: ToString()
  446. nameWithType: Object.ToString()
  447. fullName: System.Object.ToString()
  448. spec.csharp:
  449. - uid: System.Object.ToString
  450. name: ToString
  451. nameWithType: Object.ToString
  452. fullName: System.Object.ToString
  453. isExternal: true
  454. - name: (
  455. nameWithType: (
  456. fullName: (
  457. - name: )
  458. nameWithType: )
  459. fullName: )
  460. spec.vb:
  461. - uid: System.Object.ToString
  462. name: ToString
  463. nameWithType: Object.ToString
  464. fullName: System.Object.ToString
  465. isExternal: true
  466. - name: (
  467. nameWithType: (
  468. fullName: (
  469. - name: )
  470. nameWithType: )
  471. fullName: )
  472. - uid: System
  473. commentId: N:System
  474. isExternal: true
  475. name: System
  476. nameWithType: System
  477. fullName: System
  478. - uid: Terminal.Gui.MessageBox.Query*
  479. commentId: Overload:Terminal.Gui.MessageBox.Query
  480. name: Query
  481. nameWithType: MessageBox.Query
  482. fullName: Terminal.Gui.MessageBox.Query
  483. - uid: System.Int32
  484. commentId: T:System.Int32
  485. parent: System
  486. isExternal: true
  487. name: Int32
  488. nameWithType: Int32
  489. fullName: System.Int32
  490. - uid: System.String
  491. commentId: T:System.String
  492. parent: System
  493. isExternal: true
  494. name: String
  495. nameWithType: String
  496. fullName: System.String
  497. - uid: System.String[]
  498. isExternal: true
  499. name: String[]
  500. nameWithType: String[]
  501. fullName: System.String[]
  502. nameWithType.vb: String()
  503. fullName.vb: System.String()
  504. name.vb: String()
  505. spec.csharp:
  506. - uid: System.String
  507. name: String
  508. nameWithType: String
  509. fullName: System.String
  510. isExternal: true
  511. - name: '[]'
  512. nameWithType: '[]'
  513. fullName: '[]'
  514. spec.vb:
  515. - uid: System.String
  516. name: String
  517. nameWithType: String
  518. fullName: System.String
  519. isExternal: true
  520. - name: ()
  521. nameWithType: ()
  522. fullName: ()
  523. - uid: Terminal.Gui.MessageBox.ErrorQuery*
  524. commentId: Overload:Terminal.Gui.MessageBox.ErrorQuery
  525. name: ErrorQuery
  526. nameWithType: MessageBox.ErrorQuery
  527. fullName: Terminal.Gui.MessageBox.ErrorQuery
  528. shouldSkipMarkup: true