Terminal.Gui.ListView.html 47 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178
  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 ListView
  8. </title>
  9. <meta name="viewport" content="width=device-width">
  10. <meta name="title" content="Class ListView
  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.ListView">
  73. <h1 id="Terminal_Gui_ListView" data-uid="Terminal.Gui.ListView" class="text-break">Class ListView
  74. </h1>
  75. <div class="markdown level0 summary">
  76. ListView <a class="xref" href="Terminal.Gui.View.html">View</a> renders a scrollable list of data where each item can be activated to perform an action.
  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.Responder.html">Responder</a></div>
  83. <div class="level2"><a class="xref" href="Terminal.Gui.View.html">View</a></div>
  84. <div class="level3"><span class="xref">ListView</span></div>
  85. </div>
  86. <div classs="implements">
  87. <h5>Implements</h5>
  88. <div><span class="xref">System.Collections.IEnumerable</span></div>
  89. </div>
  90. <div class="inheritedMembers">
  91. <h5>Inherited Members</h5>
  92. <div>
  93. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Enter">View.Enter</a>
  94. </div>
  95. <div>
  96. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Leave">View.Leave</a>
  97. </div>
  98. <div>
  99. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_MouseEnter">View.MouseEnter</a>
  100. </div>
  101. <div>
  102. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_MouseLeave">View.MouseLeave</a>
  103. </div>
  104. <div>
  105. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_MouseClick">View.MouseClick</a>
  106. </div>
  107. <div>
  108. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Driver">View.Driver</a>
  109. </div>
  110. <div>
  111. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Subviews">View.Subviews</a>
  112. </div>
  113. <div>
  114. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Id">View.Id</a>
  115. </div>
  116. <div>
  117. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_IsCurrentTop">View.IsCurrentTop</a>
  118. </div>
  119. <div>
  120. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_WantMousePositionReports">View.WantMousePositionReports</a>
  121. </div>
  122. <div>
  123. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_WantContinuousButtonPressed">View.WantContinuousButtonPressed</a>
  124. </div>
  125. <div>
  126. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Frame">View.Frame</a>
  127. </div>
  128. <div>
  129. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_GetEnumerator">View.GetEnumerator()</a>
  130. </div>
  131. <div>
  132. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_LayoutStyle">View.LayoutStyle</a>
  133. </div>
  134. <div>
  135. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Bounds">View.Bounds</a>
  136. </div>
  137. <div>
  138. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_X">View.X</a>
  139. </div>
  140. <div>
  141. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Y">View.Y</a>
  142. </div>
  143. <div>
  144. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Width">View.Width</a>
  145. </div>
  146. <div>
  147. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Height">View.Height</a>
  148. </div>
  149. <div>
  150. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_SuperView">View.SuperView</a>
  151. </div>
  152. <div>
  153. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_SetNeedsDisplay">View.SetNeedsDisplay()</a>
  154. </div>
  155. <div>
  156. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_SetNeedsDisplay_Terminal_Gui_Rect_">View.SetNeedsDisplay(Rect)</a>
  157. </div>
  158. <div>
  159. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_ChildNeedsDisplay">View.ChildNeedsDisplay()</a>
  160. </div>
  161. <div>
  162. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Add_Terminal_Gui_View_">View.Add(View)</a>
  163. </div>
  164. <div>
  165. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Add_Terminal_Gui_View___">View.Add(View[])</a>
  166. </div>
  167. <div>
  168. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_RemoveAll">View.RemoveAll()</a>
  169. </div>
  170. <div>
  171. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Remove_Terminal_Gui_View_">View.Remove(View)</a>
  172. </div>
  173. <div>
  174. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_BringSubviewToFront_Terminal_Gui_View_">View.BringSubviewToFront(View)</a>
  175. </div>
  176. <div>
  177. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_SendSubviewToBack_Terminal_Gui_View_">View.SendSubviewToBack(View)</a>
  178. </div>
  179. <div>
  180. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_SendSubviewBackwards_Terminal_Gui_View_">View.SendSubviewBackwards(View)</a>
  181. </div>
  182. <div>
  183. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_BringSubviewForward_Terminal_Gui_View_">View.BringSubviewForward(View)</a>
  184. </div>
  185. <div>
  186. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Clear">View.Clear()</a>
  187. </div>
  188. <div>
  189. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Clear_Terminal_Gui_Rect_">View.Clear(Rect)</a>
  190. </div>
  191. <div>
  192. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_ScreenToView_System_Int32_System_Int32_">View.ScreenToView(Int32, Int32)</a>
  193. </div>
  194. <div>
  195. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_ClipToBounds">View.ClipToBounds()</a>
  196. </div>
  197. <div>
  198. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_SetClip_Terminal_Gui_Rect_">View.SetClip(Rect)</a>
  199. </div>
  200. <div>
  201. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_DrawFrame_Terminal_Gui_Rect_System_Int32_System_Boolean_">View.DrawFrame(Rect, Int32, Boolean)</a>
  202. </div>
  203. <div>
  204. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_DrawHotString_NStack_ustring_Terminal_Gui_Attribute_Terminal_Gui_Attribute_">View.DrawHotString(ustring, Attribute, Attribute)</a>
  205. </div>
  206. <div>
  207. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_DrawHotString_NStack_ustring_System_Boolean_Terminal_Gui_ColorScheme_">View.DrawHotString(ustring, Boolean, ColorScheme)</a>
  208. </div>
  209. <div>
  210. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Move_System_Int32_System_Int32_">View.Move(Int32, Int32)</a>
  211. </div>
  212. <div>
  213. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_HasFocus">View.HasFocus</a>
  214. </div>
  215. <div>
  216. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_OnEnter">View.OnEnter()</a>
  217. </div>
  218. <div>
  219. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_OnLeave">View.OnLeave()</a>
  220. </div>
  221. <div>
  222. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Focused">View.Focused</a>
  223. </div>
  224. <div>
  225. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_MostFocused">View.MostFocused</a>
  226. </div>
  227. <div>
  228. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_ColorScheme">View.ColorScheme</a>
  229. </div>
  230. <div>
  231. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_AddRune_System_Int32_System_Int32_System_Rune_">View.AddRune(Int32, Int32, Rune)</a>
  232. </div>
  233. <div>
  234. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_ClearNeedsDisplay">View.ClearNeedsDisplay()</a>
  235. </div>
  236. <div>
  237. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_DrawContent">View.DrawContent</a>
  238. </div>
  239. <div>
  240. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_OnDrawContent_Terminal_Gui_Rect_">View.OnDrawContent(Rect)</a>
  241. </div>
  242. <div>
  243. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_SetFocus_Terminal_Gui_View_">View.SetFocus(View)</a>
  244. </div>
  245. <div>
  246. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_KeyPress">View.KeyPress</a>
  247. </div>
  248. <div>
  249. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_ProcessHotKey_Terminal_Gui_KeyEvent_">View.ProcessHotKey(KeyEvent)</a>
  250. </div>
  251. <div>
  252. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_ProcessColdKey_Terminal_Gui_KeyEvent_">View.ProcessColdKey(KeyEvent)</a>
  253. </div>
  254. <div>
  255. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_KeyDown">View.KeyDown</a>
  256. </div>
  257. <div>
  258. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_OnKeyDown_Terminal_Gui_KeyEvent_">View.OnKeyDown(KeyEvent)</a>
  259. </div>
  260. <div>
  261. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_KeyUp">View.KeyUp</a>
  262. </div>
  263. <div>
  264. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_OnKeyUp_Terminal_Gui_KeyEvent_">View.OnKeyUp(KeyEvent)</a>
  265. </div>
  266. <div>
  267. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_EnsureFocus">View.EnsureFocus()</a>
  268. </div>
  269. <div>
  270. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_FocusFirst">View.FocusFirst()</a>
  271. </div>
  272. <div>
  273. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_FocusLast">View.FocusLast()</a>
  274. </div>
  275. <div>
  276. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_FocusPrev">View.FocusPrev()</a>
  277. </div>
  278. <div>
  279. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_FocusNext">View.FocusNext()</a>
  280. </div>
  281. <div>
  282. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_LayoutComplete">View.LayoutComplete</a>
  283. </div>
  284. <div>
  285. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_LayoutSubviews">View.LayoutSubviews()</a>
  286. </div>
  287. <div>
  288. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_ToString">View.ToString()</a>
  289. </div>
  290. <div>
  291. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_OnMouseEnter_Terminal_Gui_MouseEvent_">View.OnMouseEnter(MouseEvent)</a>
  292. </div>
  293. <div>
  294. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_OnMouseLeave_Terminal_Gui_MouseEvent_">View.OnMouseLeave(MouseEvent)</a>
  295. </div>
  296. <div>
  297. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_OnMouseEvent_Terminal_Gui_MouseEvent_">View.OnMouseEvent(MouseEvent)</a>
  298. </div>
  299. <div>
  300. <a class="xref" href="Terminal.Gui.Responder.html#Terminal_Gui_Responder_CanFocus">Responder.CanFocus</a>
  301. </div>
  302. <div>
  303. <span class="xref">System.Object.Equals(System.Object)</span>
  304. </div>
  305. <div>
  306. <span class="xref">System.Object.Equals(System.Object, System.Object)</span>
  307. </div>
  308. <div>
  309. <span class="xref">System.Object.GetHashCode()</span>
  310. </div>
  311. <div>
  312. <span class="xref">System.Object.GetType()</span>
  313. </div>
  314. <div>
  315. <span class="xref">System.Object.MemberwiseClone()</span>
  316. </div>
  317. <div>
  318. <span class="xref">System.Object.ReferenceEquals(System.Object, System.Object)</span>
  319. </div>
  320. </div>
  321. <h6><strong>Namespace</strong>: <a class="xref" href="Terminal.Gui.html">Terminal.Gui</a></h6>
  322. <h6><strong>Assembly</strong>: Terminal.Gui.dll</h6>
  323. <h5 id="Terminal_Gui_ListView_syntax">Syntax</h5>
  324. <div class="codewrapper">
  325. <pre><code class="lang-csharp hljs">public class ListView : View, IEnumerable</code></pre>
  326. </div>
  327. <h5 id="Terminal_Gui_ListView_remarks"><strong>Remarks</strong></h5>
  328. <div class="markdown level0 remarks">
  329. <p>
  330. The <a class="xref" href="Terminal.Gui.ListView.html">ListView</a> displays lists of data and allows the user to scroll through the data.
  331. Items in the can be activated firing an event (with the ENTER key or a mouse double-click).
  332. If the <a class="xref" href="Terminal.Gui.ListView.html#Terminal_Gui_ListView_AllowsMarking">AllowsMarking</a> property is true, elements of the list can be marked by the user.
  333. </p>
  334. <p>
  335. By default <a class="xref" href="Terminal.Gui.ListView.html">ListView</a> uses <span class="xref">System.Object.ToString()</span> to render the items of any
  336. <span class="xref">System.Collections.IList</span> object (e.g. arrays, <span class="xref">System.Collections.Generic.List&lt;T&gt;</span>,
  337. and other collections). Alternatively, an object that implements the <a class="xref" href="Terminal.Gui.IListDataSource.html">IListDataSource</a>
  338. interface can be provided giving full control of what is rendered.
  339. </p>
  340. <p>
  341. <a class="xref" href="Terminal.Gui.ListView.html">ListView</a> can display any object that implements the <span class="xref">System.Collections.IList</span> interface.
  342. <span class="xref">System.String</span> values are converted into <span class="xref">NStack.ustring</span> values before rendering, and other values are
  343. converted into <span class="xref">System.String</span> by calling <span class="xref">System.Object.ToString()</span> and then converting to <span class="xref">NStack.ustring</span> .
  344. </p>
  345. <p>
  346. To change the contents of the ListView, set the <a class="xref" href="Terminal.Gui.ListView.html#Terminal_Gui_ListView_Source">Source</a> property (when
  347. providing custom rendering via <a class="xref" href="Terminal.Gui.IListDataSource.html">IListDataSource</a>) or call <a class="xref" href="Terminal.Gui.ListView.html#Terminal_Gui_ListView_SetSource_System_Collections_IList_">SetSource(IList)</a>
  348. an <span class="xref">System.Collections.IList</span> is being used.
  349. </p>
  350. <p>
  351. When <a class="xref" href="Terminal.Gui.ListView.html#Terminal_Gui_ListView_AllowsMarking">AllowsMarking</a> is set to true the rendering will prefix the rendered items with
  352. [x] or [ ] and bind the SPACE key to toggle the selection. To implement a different
  353. marking style set <a class="xref" href="Terminal.Gui.ListView.html#Terminal_Gui_ListView_AllowsMarking">AllowsMarking</a> to false and implement custom rendering.
  354. </p>
  355. </div>
  356. <h3 id="constructors">Constructors
  357. </h3>
  358. <a id="Terminal_Gui_ListView__ctor_" data-uid="Terminal.Gui.ListView.#ctor*"></a>
  359. <h4 id="Terminal_Gui_ListView__ctor" data-uid="Terminal.Gui.ListView.#ctor">ListView()</h4>
  360. <div class="markdown level1 summary">
  361. Initializes a new instance of <a class="xref" href="Terminal.Gui.ListView.html">ListView</a>. Set the <a class="xref" href="Terminal.Gui.ListView.html#Terminal_Gui_ListView_Source">Source</a> property to display something.
  362. </div>
  363. <div class="markdown level1 conceptual"></div>
  364. <h5 class="decalaration">Declaration</h5>
  365. <div class="codewrapper">
  366. <pre><code class="lang-csharp hljs">public ListView()</code></pre>
  367. </div>
  368. <a id="Terminal_Gui_ListView__ctor_" data-uid="Terminal.Gui.ListView.#ctor*"></a>
  369. <h4 id="Terminal_Gui_ListView__ctor_System_Collections_IList_" data-uid="Terminal.Gui.ListView.#ctor(System.Collections.IList)">ListView(IList)</h4>
  370. <div class="markdown level1 summary">
  371. Initializes a new instance of <a class="xref" href="Terminal.Gui.ListView.html">ListView</a> that will display the contents of the object implementing the <span class="xref">System.Collections.IList</span> interface,
  372. with relative positioning.
  373. </div>
  374. <div class="markdown level1 conceptual"></div>
  375. <h5 class="decalaration">Declaration</h5>
  376. <div class="codewrapper">
  377. <pre><code class="lang-csharp hljs">public ListView(IList source)</code></pre>
  378. </div>
  379. <h5 class="parameters">Parameters</h5>
  380. <table class="table table-bordered table-striped table-condensed">
  381. <thead>
  382. <tr>
  383. <th>Type</th>
  384. <th>Name</th>
  385. <th>Description</th>
  386. </tr>
  387. </thead>
  388. <tbody>
  389. <tr>
  390. <td><span class="xref">System.Collections.IList</span></td>
  391. <td><span class="parametername">source</span></td>
  392. <td>An <span class="xref">System.Collections.IList</span> data source, if the elements are strings or ustrings, the string is rendered, otherwise the ToString() method is invoked on the result.</td>
  393. </tr>
  394. </tbody>
  395. </table>
  396. <a id="Terminal_Gui_ListView__ctor_" data-uid="Terminal.Gui.ListView.#ctor*"></a>
  397. <h4 id="Terminal_Gui_ListView__ctor_Terminal_Gui_IListDataSource_" data-uid="Terminal.Gui.ListView.#ctor(Terminal.Gui.IListDataSource)">ListView(IListDataSource)</h4>
  398. <div class="markdown level1 summary">
  399. Initializes a new instance of <a class="xref" href="Terminal.Gui.ListView.html">ListView</a> that will display the provided data source, using relative positioning.
  400. </div>
  401. <div class="markdown level1 conceptual"></div>
  402. <h5 class="decalaration">Declaration</h5>
  403. <div class="codewrapper">
  404. <pre><code class="lang-csharp hljs">public ListView(IListDataSource source)</code></pre>
  405. </div>
  406. <h5 class="parameters">Parameters</h5>
  407. <table class="table table-bordered table-striped table-condensed">
  408. <thead>
  409. <tr>
  410. <th>Type</th>
  411. <th>Name</th>
  412. <th>Description</th>
  413. </tr>
  414. </thead>
  415. <tbody>
  416. <tr>
  417. <td><a class="xref" href="Terminal.Gui.IListDataSource.html">IListDataSource</a></td>
  418. <td><span class="parametername">source</span></td>
  419. <td><a class="xref" href="Terminal.Gui.IListDataSource.html">IListDataSource</a> object that provides a mechanism to render the data.
  420. The number of elements on the collection should not change, if you must change, set
  421. the &quot;Source&quot; property to reset the internal settings of the ListView.</td>
  422. </tr>
  423. </tbody>
  424. </table>
  425. <a id="Terminal_Gui_ListView__ctor_" data-uid="Terminal.Gui.ListView.#ctor*"></a>
  426. <h4 id="Terminal_Gui_ListView__ctor_Terminal_Gui_Rect_System_Collections_IList_" data-uid="Terminal.Gui.ListView.#ctor(Terminal.Gui.Rect,System.Collections.IList)">ListView(Rect, IList)</h4>
  427. <div class="markdown level1 summary">
  428. Initializes a new instance of <a class="xref" href="Terminal.Gui.ListView.html">ListView</a> that will display the contents of the object implementing the <span class="xref">System.Collections.IList</span> interface with an absolute position.
  429. </div>
  430. <div class="markdown level1 conceptual"></div>
  431. <h5 class="decalaration">Declaration</h5>
  432. <div class="codewrapper">
  433. <pre><code class="lang-csharp hljs">public ListView(Rect rect, IList source)</code></pre>
  434. </div>
  435. <h5 class="parameters">Parameters</h5>
  436. <table class="table table-bordered table-striped table-condensed">
  437. <thead>
  438. <tr>
  439. <th>Type</th>
  440. <th>Name</th>
  441. <th>Description</th>
  442. </tr>
  443. </thead>
  444. <tbody>
  445. <tr>
  446. <td><a class="xref" href="Terminal.Gui.Rect.html">Rect</a></td>
  447. <td><span class="parametername">rect</span></td>
  448. <td>Frame for the listview.</td>
  449. </tr>
  450. <tr>
  451. <td><span class="xref">System.Collections.IList</span></td>
  452. <td><span class="parametername">source</span></td>
  453. <td>An IList data source, if the elements of the IList are strings or ustrings, the string is rendered, otherwise the ToString() method is invoked on the result.</td>
  454. </tr>
  455. </tbody>
  456. </table>
  457. <a id="Terminal_Gui_ListView__ctor_" data-uid="Terminal.Gui.ListView.#ctor*"></a>
  458. <h4 id="Terminal_Gui_ListView__ctor_Terminal_Gui_Rect_Terminal_Gui_IListDataSource_" data-uid="Terminal.Gui.ListView.#ctor(Terminal.Gui.Rect,Terminal.Gui.IListDataSource)">ListView(Rect, IListDataSource)</h4>
  459. <div class="markdown level1 summary">
  460. Initializes a new instance of <a class="xref" href="Terminal.Gui.ListView.html">ListView</a> with the provided data source and an absolute position
  461. </div>
  462. <div class="markdown level1 conceptual"></div>
  463. <h5 class="decalaration">Declaration</h5>
  464. <div class="codewrapper">
  465. <pre><code class="lang-csharp hljs">public ListView(Rect rect, IListDataSource source)</code></pre>
  466. </div>
  467. <h5 class="parameters">Parameters</h5>
  468. <table class="table table-bordered table-striped table-condensed">
  469. <thead>
  470. <tr>
  471. <th>Type</th>
  472. <th>Name</th>
  473. <th>Description</th>
  474. </tr>
  475. </thead>
  476. <tbody>
  477. <tr>
  478. <td><a class="xref" href="Terminal.Gui.Rect.html">Rect</a></td>
  479. <td><span class="parametername">rect</span></td>
  480. <td>Frame for the listview.</td>
  481. </tr>
  482. <tr>
  483. <td><a class="xref" href="Terminal.Gui.IListDataSource.html">IListDataSource</a></td>
  484. <td><span class="parametername">source</span></td>
  485. <td>IListDataSource object that provides a mechanism to render the data. The number of elements on the collection should not change, if you must change, set the &quot;Source&quot; property to reset the internal settings of the ListView.</td>
  486. </tr>
  487. </tbody>
  488. </table>
  489. <h3 id="properties">Properties
  490. </h3>
  491. <a id="Terminal_Gui_ListView_AllowsMarking_" data-uid="Terminal.Gui.ListView.AllowsMarking*"></a>
  492. <h4 id="Terminal_Gui_ListView_AllowsMarking" data-uid="Terminal.Gui.ListView.AllowsMarking">AllowsMarking</h4>
  493. <div class="markdown level1 summary">
  494. Gets or sets whether this <a class="xref" href="Terminal.Gui.ListView.html">ListView</a> allows items to be marked.
  495. </div>
  496. <div class="markdown level1 conceptual"></div>
  497. <h5 class="decalaration">Declaration</h5>
  498. <div class="codewrapper">
  499. <pre><code class="lang-csharp hljs">public bool AllowsMarking { get; set; }</code></pre>
  500. </div>
  501. <h5 class="propertyValue">Property Value</h5>
  502. <table class="table table-bordered table-striped table-condensed">
  503. <thead>
  504. <tr>
  505. <th>Type</th>
  506. <th>Description</th>
  507. </tr>
  508. </thead>
  509. <tbody>
  510. <tr>
  511. <td><span class="xref">System.Boolean</span></td>
  512. <td><code>true</code> if allows marking elements of the list; otherwise, <code>false</code>.
  513. </td>
  514. </tr>
  515. </tbody>
  516. </table>
  517. <h5 id="Terminal_Gui_ListView_AllowsMarking_remarks">Remarks</h5>
  518. <div class="markdown level1 remarks">
  519. If set to true, <a class="xref" href="Terminal.Gui.ListView.html">ListView</a> will render items marked items with &quot;[x]&quot;, and unmarked items with &quot;[ ]&quot;
  520. spaces. SPACE key will toggle marking.
  521. </div>
  522. <a id="Terminal_Gui_ListView_AllowsMultipleSelection_" data-uid="Terminal.Gui.ListView.AllowsMultipleSelection*"></a>
  523. <h4 id="Terminal_Gui_ListView_AllowsMultipleSelection" data-uid="Terminal.Gui.ListView.AllowsMultipleSelection">AllowsMultipleSelection</h4>
  524. <div class="markdown level1 summary">
  525. If set to true allows more than one item to be selected. If false only allow one item selected.
  526. </div>
  527. <div class="markdown level1 conceptual"></div>
  528. <h5 class="decalaration">Declaration</h5>
  529. <div class="codewrapper">
  530. <pre><code class="lang-csharp hljs">public bool AllowsMultipleSelection { get; set; }</code></pre>
  531. </div>
  532. <h5 class="propertyValue">Property Value</h5>
  533. <table class="table table-bordered table-striped table-condensed">
  534. <thead>
  535. <tr>
  536. <th>Type</th>
  537. <th>Description</th>
  538. </tr>
  539. </thead>
  540. <tbody>
  541. <tr>
  542. <td><span class="xref">System.Boolean</span></td>
  543. <td></td>
  544. </tr>
  545. </tbody>
  546. </table>
  547. <a id="Terminal_Gui_ListView_SelectedItem_" data-uid="Terminal.Gui.ListView.SelectedItem*"></a>
  548. <h4 id="Terminal_Gui_ListView_SelectedItem" data-uid="Terminal.Gui.ListView.SelectedItem">SelectedItem</h4>
  549. <div class="markdown level1 summary">
  550. Gets or sets the index of the currently selected item.
  551. </div>
  552. <div class="markdown level1 conceptual"></div>
  553. <h5 class="decalaration">Declaration</h5>
  554. <div class="codewrapper">
  555. <pre><code class="lang-csharp hljs">public int SelectedItem { get; set; }</code></pre>
  556. </div>
  557. <h5 class="propertyValue">Property Value</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 selected item.</td>
  569. </tr>
  570. </tbody>
  571. </table>
  572. <a id="Terminal_Gui_ListView_Source_" data-uid="Terminal.Gui.ListView.Source*"></a>
  573. <h4 id="Terminal_Gui_ListView_Source" data-uid="Terminal.Gui.ListView.Source">Source</h4>
  574. <div class="markdown level1 summary">
  575. Gets or sets the <a class="xref" href="Terminal.Gui.IListDataSource.html">IListDataSource</a> backing this <a class="xref" href="Terminal.Gui.ListView.html">ListView</a>, enabling custom rendering.
  576. </div>
  577. <div class="markdown level1 conceptual"></div>
  578. <h5 class="decalaration">Declaration</h5>
  579. <div class="codewrapper">
  580. <pre><code class="lang-csharp hljs">public IListDataSource Source { get; set; }</code></pre>
  581. </div>
  582. <h5 class="propertyValue">Property Value</h5>
  583. <table class="table table-bordered table-striped table-condensed">
  584. <thead>
  585. <tr>
  586. <th>Type</th>
  587. <th>Description</th>
  588. </tr>
  589. </thead>
  590. <tbody>
  591. <tr>
  592. <td><a class="xref" href="Terminal.Gui.IListDataSource.html">IListDataSource</a></td>
  593. <td>The source.</td>
  594. </tr>
  595. </tbody>
  596. </table>
  597. <h5 id="Terminal_Gui_ListView_Source_remarks">Remarks</h5>
  598. <div class="markdown level1 remarks">
  599. Use <a class="xref" href="Terminal.Gui.ListView.html#Terminal_Gui_ListView_SetSource_System_Collections_IList_">SetSource(IList)</a> to set a new <span class="xref">System.Collections.IList</span> source.
  600. </div>
  601. <a id="Terminal_Gui_ListView_TopItem_" data-uid="Terminal.Gui.ListView.TopItem*"></a>
  602. <h4 id="Terminal_Gui_ListView_TopItem" data-uid="Terminal.Gui.ListView.TopItem">TopItem</h4>
  603. <div class="markdown level1 summary">
  604. Gets or sets the item that is displayed at the top of the <a class="xref" href="Terminal.Gui.ListView.html">ListView</a>.
  605. </div>
  606. <div class="markdown level1 conceptual"></div>
  607. <h5 class="decalaration">Declaration</h5>
  608. <div class="codewrapper">
  609. <pre><code class="lang-csharp hljs">public int TopItem { get; set; }</code></pre>
  610. </div>
  611. <h5 class="propertyValue">Property Value</h5>
  612. <table class="table table-bordered table-striped table-condensed">
  613. <thead>
  614. <tr>
  615. <th>Type</th>
  616. <th>Description</th>
  617. </tr>
  618. </thead>
  619. <tbody>
  620. <tr>
  621. <td><span class="xref">System.Int32</span></td>
  622. <td>The top item.</td>
  623. </tr>
  624. </tbody>
  625. </table>
  626. <h3 id="methods">Methods
  627. </h3>
  628. <a id="Terminal_Gui_ListView_AllowsAll_" data-uid="Terminal.Gui.ListView.AllowsAll*"></a>
  629. <h4 id="Terminal_Gui_ListView_AllowsAll" data-uid="Terminal.Gui.ListView.AllowsAll">AllowsAll()</h4>
  630. <div class="markdown level1 summary">
  631. Prevents marking if it&apos;s not allowed mark and if it&apos;s not allows multiple selection.
  632. </div>
  633. <div class="markdown level1 conceptual"></div>
  634. <h5 class="decalaration">Declaration</h5>
  635. <div class="codewrapper">
  636. <pre><code class="lang-csharp hljs">public virtual bool AllowsAll()</code></pre>
  637. </div>
  638. <h5 class="returns">Returns</h5>
  639. <table class="table table-bordered table-striped table-condensed">
  640. <thead>
  641. <tr>
  642. <th>Type</th>
  643. <th>Description</th>
  644. </tr>
  645. </thead>
  646. <tbody>
  647. <tr>
  648. <td><span class="xref">System.Boolean</span></td>
  649. <td></td>
  650. </tr>
  651. </tbody>
  652. </table>
  653. <a id="Terminal_Gui_ListView_MarkUnmarkRow_" data-uid="Terminal.Gui.ListView.MarkUnmarkRow*"></a>
  654. <h4 id="Terminal_Gui_ListView_MarkUnmarkRow" data-uid="Terminal.Gui.ListView.MarkUnmarkRow">MarkUnmarkRow()</h4>
  655. <div class="markdown level1 summary">
  656. Marks an unmarked row.
  657. </div>
  658. <div class="markdown level1 conceptual"></div>
  659. <h5 class="decalaration">Declaration</h5>
  660. <div class="codewrapper">
  661. <pre><code class="lang-csharp hljs">public virtual bool MarkUnmarkRow()</code></pre>
  662. </div>
  663. <h5 class="returns">Returns</h5>
  664. <table class="table table-bordered table-striped table-condensed">
  665. <thead>
  666. <tr>
  667. <th>Type</th>
  668. <th>Description</th>
  669. </tr>
  670. </thead>
  671. <tbody>
  672. <tr>
  673. <td><span class="xref">System.Boolean</span></td>
  674. <td></td>
  675. </tr>
  676. </tbody>
  677. </table>
  678. <a id="Terminal_Gui_ListView_MouseEvent_" data-uid="Terminal.Gui.ListView.MouseEvent*"></a>
  679. <h4 id="Terminal_Gui_ListView_MouseEvent_Terminal_Gui_MouseEvent_" data-uid="Terminal.Gui.ListView.MouseEvent(Terminal.Gui.MouseEvent)">MouseEvent(MouseEvent)</h4>
  680. <div class="markdown level1 summary"></div>
  681. <div class="markdown level1 conceptual"></div>
  682. <h5 class="decalaration">Declaration</h5>
  683. <div class="codewrapper">
  684. <pre><code class="lang-csharp hljs">public override bool MouseEvent(MouseEvent me)</code></pre>
  685. </div>
  686. <h5 class="parameters">Parameters</h5>
  687. <table class="table table-bordered table-striped table-condensed">
  688. <thead>
  689. <tr>
  690. <th>Type</th>
  691. <th>Name</th>
  692. <th>Description</th>
  693. </tr>
  694. </thead>
  695. <tbody>
  696. <tr>
  697. <td><a class="xref" href="Terminal.Gui.MouseEvent.html">MouseEvent</a></td>
  698. <td><span class="parametername">me</span></td>
  699. <td></td>
  700. </tr>
  701. </tbody>
  702. </table>
  703. <h5 class="returns">Returns</h5>
  704. <table class="table table-bordered table-striped table-condensed">
  705. <thead>
  706. <tr>
  707. <th>Type</th>
  708. <th>Description</th>
  709. </tr>
  710. </thead>
  711. <tbody>
  712. <tr>
  713. <td><span class="xref">System.Boolean</span></td>
  714. <td></td>
  715. </tr>
  716. </tbody>
  717. </table>
  718. <h5 class="overrides">Overrides</h5>
  719. <div><a class="xref" href="Terminal.Gui.Responder.html#Terminal_Gui_Responder_MouseEvent_Terminal_Gui_MouseEvent_">Responder.MouseEvent(MouseEvent)</a></div>
  720. <a id="Terminal_Gui_ListView_MoveDown_" data-uid="Terminal.Gui.ListView.MoveDown*"></a>
  721. <h4 id="Terminal_Gui_ListView_MoveDown" data-uid="Terminal.Gui.ListView.MoveDown">MoveDown()</h4>
  722. <div class="markdown level1 summary">
  723. Moves the selected item index to the next row.
  724. </div>
  725. <div class="markdown level1 conceptual"></div>
  726. <h5 class="decalaration">Declaration</h5>
  727. <div class="codewrapper">
  728. <pre><code class="lang-csharp hljs">public virtual bool MoveDown()</code></pre>
  729. </div>
  730. <h5 class="returns">Returns</h5>
  731. <table class="table table-bordered table-striped table-condensed">
  732. <thead>
  733. <tr>
  734. <th>Type</th>
  735. <th>Description</th>
  736. </tr>
  737. </thead>
  738. <tbody>
  739. <tr>
  740. <td><span class="xref">System.Boolean</span></td>
  741. <td></td>
  742. </tr>
  743. </tbody>
  744. </table>
  745. <a id="Terminal_Gui_ListView_MovePageDown_" data-uid="Terminal.Gui.ListView.MovePageDown*"></a>
  746. <h4 id="Terminal_Gui_ListView_MovePageDown" data-uid="Terminal.Gui.ListView.MovePageDown">MovePageDown()</h4>
  747. <div class="markdown level1 summary">
  748. Moves the selected item index to the previous page.
  749. </div>
  750. <div class="markdown level1 conceptual"></div>
  751. <h5 class="decalaration">Declaration</h5>
  752. <div class="codewrapper">
  753. <pre><code class="lang-csharp hljs">public virtual bool MovePageDown()</code></pre>
  754. </div>
  755. <h5 class="returns">Returns</h5>
  756. <table class="table table-bordered table-striped table-condensed">
  757. <thead>
  758. <tr>
  759. <th>Type</th>
  760. <th>Description</th>
  761. </tr>
  762. </thead>
  763. <tbody>
  764. <tr>
  765. <td><span class="xref">System.Boolean</span></td>
  766. <td></td>
  767. </tr>
  768. </tbody>
  769. </table>
  770. <a id="Terminal_Gui_ListView_MovePageUp_" data-uid="Terminal.Gui.ListView.MovePageUp*"></a>
  771. <h4 id="Terminal_Gui_ListView_MovePageUp" data-uid="Terminal.Gui.ListView.MovePageUp">MovePageUp()</h4>
  772. <div class="markdown level1 summary">
  773. Moves the selected item index to the next page.
  774. </div>
  775. <div class="markdown level1 conceptual"></div>
  776. <h5 class="decalaration">Declaration</h5>
  777. <div class="codewrapper">
  778. <pre><code class="lang-csharp hljs">public virtual bool MovePageUp()</code></pre>
  779. </div>
  780. <h5 class="returns">Returns</h5>
  781. <table class="table table-bordered table-striped table-condensed">
  782. <thead>
  783. <tr>
  784. <th>Type</th>
  785. <th>Description</th>
  786. </tr>
  787. </thead>
  788. <tbody>
  789. <tr>
  790. <td><span class="xref">System.Boolean</span></td>
  791. <td></td>
  792. </tr>
  793. </tbody>
  794. </table>
  795. <a id="Terminal_Gui_ListView_MoveUp_" data-uid="Terminal.Gui.ListView.MoveUp*"></a>
  796. <h4 id="Terminal_Gui_ListView_MoveUp" data-uid="Terminal.Gui.ListView.MoveUp">MoveUp()</h4>
  797. <div class="markdown level1 summary">
  798. Moves the selected item index to the previous row.
  799. </div>
  800. <div class="markdown level1 conceptual"></div>
  801. <h5 class="decalaration">Declaration</h5>
  802. <div class="codewrapper">
  803. <pre><code class="lang-csharp hljs">public virtual bool MoveUp()</code></pre>
  804. </div>
  805. <h5 class="returns">Returns</h5>
  806. <table class="table table-bordered table-striped table-condensed">
  807. <thead>
  808. <tr>
  809. <th>Type</th>
  810. <th>Description</th>
  811. </tr>
  812. </thead>
  813. <tbody>
  814. <tr>
  815. <td><span class="xref">System.Boolean</span></td>
  816. <td></td>
  817. </tr>
  818. </tbody>
  819. </table>
  820. <a id="Terminal_Gui_ListView_OnOpenSelectedItem_" data-uid="Terminal.Gui.ListView.OnOpenSelectedItem*"></a>
  821. <h4 id="Terminal_Gui_ListView_OnOpenSelectedItem" data-uid="Terminal.Gui.ListView.OnOpenSelectedItem">OnOpenSelectedItem()</h4>
  822. <div class="markdown level1 summary">
  823. Invokes the OnOpenSelectedItem event if it is defined.
  824. </div>
  825. <div class="markdown level1 conceptual"></div>
  826. <h5 class="decalaration">Declaration</h5>
  827. <div class="codewrapper">
  828. <pre><code class="lang-csharp hljs">public virtual bool OnOpenSelectedItem()</code></pre>
  829. </div>
  830. <h5 class="returns">Returns</h5>
  831. <table class="table table-bordered table-striped table-condensed">
  832. <thead>
  833. <tr>
  834. <th>Type</th>
  835. <th>Description</th>
  836. </tr>
  837. </thead>
  838. <tbody>
  839. <tr>
  840. <td><span class="xref">System.Boolean</span></td>
  841. <td></td>
  842. </tr>
  843. </tbody>
  844. </table>
  845. <a id="Terminal_Gui_ListView_OnSelectedChanged_" data-uid="Terminal.Gui.ListView.OnSelectedChanged*"></a>
  846. <h4 id="Terminal_Gui_ListView_OnSelectedChanged" data-uid="Terminal.Gui.ListView.OnSelectedChanged">OnSelectedChanged()</h4>
  847. <div class="markdown level1 summary">
  848. Invokes the SelectedChanged event if it is defined.
  849. </div>
  850. <div class="markdown level1 conceptual"></div>
  851. <h5 class="decalaration">Declaration</h5>
  852. <div class="codewrapper">
  853. <pre><code class="lang-csharp hljs">public virtual bool OnSelectedChanged()</code></pre>
  854. </div>
  855. <h5 class="returns">Returns</h5>
  856. <table class="table table-bordered table-striped table-condensed">
  857. <thead>
  858. <tr>
  859. <th>Type</th>
  860. <th>Description</th>
  861. </tr>
  862. </thead>
  863. <tbody>
  864. <tr>
  865. <td><span class="xref">System.Boolean</span></td>
  866. <td></td>
  867. </tr>
  868. </tbody>
  869. </table>
  870. <a id="Terminal_Gui_ListView_PositionCursor_" data-uid="Terminal.Gui.ListView.PositionCursor*"></a>
  871. <h4 id="Terminal_Gui_ListView_PositionCursor" data-uid="Terminal.Gui.ListView.PositionCursor">PositionCursor()</h4>
  872. <div class="markdown level1 summary"></div>
  873. <div class="markdown level1 conceptual"></div>
  874. <h5 class="decalaration">Declaration</h5>
  875. <div class="codewrapper">
  876. <pre><code class="lang-csharp hljs">public override void PositionCursor()</code></pre>
  877. </div>
  878. <h5 class="overrides">Overrides</h5>
  879. <div><a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_PositionCursor">View.PositionCursor()</a></div>
  880. <a id="Terminal_Gui_ListView_ProcessKey_" data-uid="Terminal.Gui.ListView.ProcessKey*"></a>
  881. <h4 id="Terminal_Gui_ListView_ProcessKey_Terminal_Gui_KeyEvent_" data-uid="Terminal.Gui.ListView.ProcessKey(Terminal.Gui.KeyEvent)">ProcessKey(KeyEvent)</h4>
  882. <div class="markdown level1 summary"></div>
  883. <div class="markdown level1 conceptual"></div>
  884. <h5 class="decalaration">Declaration</h5>
  885. <div class="codewrapper">
  886. <pre><code class="lang-csharp hljs">public override bool ProcessKey(KeyEvent kb)</code></pre>
  887. </div>
  888. <h5 class="parameters">Parameters</h5>
  889. <table class="table table-bordered table-striped table-condensed">
  890. <thead>
  891. <tr>
  892. <th>Type</th>
  893. <th>Name</th>
  894. <th>Description</th>
  895. </tr>
  896. </thead>
  897. <tbody>
  898. <tr>
  899. <td><a class="xref" href="Terminal.Gui.KeyEvent.html">KeyEvent</a></td>
  900. <td><span class="parametername">kb</span></td>
  901. <td></td>
  902. </tr>
  903. </tbody>
  904. </table>
  905. <h5 class="returns">Returns</h5>
  906. <table class="table table-bordered table-striped table-condensed">
  907. <thead>
  908. <tr>
  909. <th>Type</th>
  910. <th>Description</th>
  911. </tr>
  912. </thead>
  913. <tbody>
  914. <tr>
  915. <td><span class="xref">System.Boolean</span></td>
  916. <td></td>
  917. </tr>
  918. </tbody>
  919. </table>
  920. <h5 class="overrides">Overrides</h5>
  921. <div><a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_ProcessKey_Terminal_Gui_KeyEvent_">View.ProcessKey(KeyEvent)</a></div>
  922. <a id="Terminal_Gui_ListView_Redraw_" data-uid="Terminal.Gui.ListView.Redraw*"></a>
  923. <h4 id="Terminal_Gui_ListView_Redraw_Terminal_Gui_Rect_" data-uid="Terminal.Gui.ListView.Redraw(Terminal.Gui.Rect)">Redraw(Rect)</h4>
  924. <div class="markdown level1 summary"></div>
  925. <div class="markdown level1 conceptual"></div>
  926. <h5 class="decalaration">Declaration</h5>
  927. <div class="codewrapper">
  928. <pre><code class="lang-csharp hljs">public override void Redraw(Rect bounds)</code></pre>
  929. </div>
  930. <h5 class="parameters">Parameters</h5>
  931. <table class="table table-bordered table-striped table-condensed">
  932. <thead>
  933. <tr>
  934. <th>Type</th>
  935. <th>Name</th>
  936. <th>Description</th>
  937. </tr>
  938. </thead>
  939. <tbody>
  940. <tr>
  941. <td><a class="xref" href="Terminal.Gui.Rect.html">Rect</a></td>
  942. <td><span class="parametername">bounds</span></td>
  943. <td></td>
  944. </tr>
  945. </tbody>
  946. </table>
  947. <h5 class="overrides">Overrides</h5>
  948. <div><a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Redraw_Terminal_Gui_Rect_">View.Redraw(Rect)</a></div>
  949. <a id="Terminal_Gui_ListView_SetSource_" data-uid="Terminal.Gui.ListView.SetSource*"></a>
  950. <h4 id="Terminal_Gui_ListView_SetSource_System_Collections_IList_" data-uid="Terminal.Gui.ListView.SetSource(System.Collections.IList)">SetSource(IList)</h4>
  951. <div class="markdown level1 summary">
  952. Sets the source of the <a class="xref" href="Terminal.Gui.ListView.html">ListView</a> to an <span class="xref">System.Collections.IList</span>.
  953. </div>
  954. <div class="markdown level1 conceptual"></div>
  955. <h5 class="decalaration">Declaration</h5>
  956. <div class="codewrapper">
  957. <pre><code class="lang-csharp hljs">public void SetSource(IList source)</code></pre>
  958. </div>
  959. <h5 class="parameters">Parameters</h5>
  960. <table class="table table-bordered table-striped table-condensed">
  961. <thead>
  962. <tr>
  963. <th>Type</th>
  964. <th>Name</th>
  965. <th>Description</th>
  966. </tr>
  967. </thead>
  968. <tbody>
  969. <tr>
  970. <td><span class="xref">System.Collections.IList</span></td>
  971. <td><span class="parametername">source</span></td>
  972. <td></td>
  973. </tr>
  974. </tbody>
  975. </table>
  976. <h5 id="Terminal_Gui_ListView_SetSource_System_Collections_IList__remarks">Remarks</h5>
  977. <div class="markdown level1 remarks">
  978. Use the <a class="xref" href="Terminal.Gui.ListView.html#Terminal_Gui_ListView_Source">Source</a> property to set a new <a class="xref" href="Terminal.Gui.IListDataSource.html">IListDataSource</a> source and use custome rendering.
  979. </div>
  980. <a id="Terminal_Gui_ListView_SetSourceAsync_" data-uid="Terminal.Gui.ListView.SetSourceAsync*"></a>
  981. <h4 id="Terminal_Gui_ListView_SetSourceAsync_System_Collections_IList_" data-uid="Terminal.Gui.ListView.SetSourceAsync(System.Collections.IList)">SetSourceAsync(IList)</h4>
  982. <div class="markdown level1 summary">
  983. Sets the source to an <span class="xref">System.Collections.IList</span> value asynchronously.
  984. </div>
  985. <div class="markdown level1 conceptual"></div>
  986. <h5 class="decalaration">Declaration</h5>
  987. <div class="codewrapper">
  988. <pre><code class="lang-csharp hljs">public Task SetSourceAsync(IList source)</code></pre>
  989. </div>
  990. <h5 class="parameters">Parameters</h5>
  991. <table class="table table-bordered table-striped table-condensed">
  992. <thead>
  993. <tr>
  994. <th>Type</th>
  995. <th>Name</th>
  996. <th>Description</th>
  997. </tr>
  998. </thead>
  999. <tbody>
  1000. <tr>
  1001. <td><span class="xref">System.Collections.IList</span></td>
  1002. <td><span class="parametername">source</span></td>
  1003. <td></td>
  1004. </tr>
  1005. </tbody>
  1006. </table>
  1007. <h5 class="returns">Returns</h5>
  1008. <table class="table table-bordered table-striped table-condensed">
  1009. <thead>
  1010. <tr>
  1011. <th>Type</th>
  1012. <th>Description</th>
  1013. </tr>
  1014. </thead>
  1015. <tbody>
  1016. <tr>
  1017. <td><span class="xref">System.Threading.Tasks.Task</span></td>
  1018. <td>An item implementing the IList interface.</td>
  1019. </tr>
  1020. </tbody>
  1021. </table>
  1022. <h5 id="Terminal_Gui_ListView_SetSourceAsync_System_Collections_IList__remarks">Remarks</h5>
  1023. <div class="markdown level1 remarks">
  1024. Use the <a class="xref" href="Terminal.Gui.ListView.html#Terminal_Gui_ListView_Source">Source</a> property to set a new <a class="xref" href="Terminal.Gui.IListDataSource.html">IListDataSource</a> source and use custome rendering.
  1025. </div>
  1026. <h3 id="events">Events
  1027. </h3>
  1028. <h4 id="Terminal_Gui_ListView_OpenSelectedItem" data-uid="Terminal.Gui.ListView.OpenSelectedItem">OpenSelectedItem</h4>
  1029. <div class="markdown level1 summary">
  1030. This event is raised when the user Double Clicks on an item or presses ENTER to open the selected item.
  1031. </div>
  1032. <div class="markdown level1 conceptual"></div>
  1033. <h5 class="decalaration">Declaration</h5>
  1034. <div class="codewrapper">
  1035. <pre><code class="lang-csharp hljs">public event EventHandler&lt;ListViewItemEventArgs&gt; OpenSelectedItem</code></pre>
  1036. </div>
  1037. <h5 class="eventType">Event Type</h5>
  1038. <table class="table table-bordered table-striped table-condensed">
  1039. <thead>
  1040. <tr>
  1041. <th>Type</th>
  1042. <th>Description</th>
  1043. </tr>
  1044. </thead>
  1045. <tbody>
  1046. <tr>
  1047. <td><span class="xref">System.EventHandler</span>&lt;<a class="xref" href="Terminal.Gui.ListViewItemEventArgs.html">ListViewItemEventArgs</a>&gt;</td>
  1048. <td></td>
  1049. </tr>
  1050. </tbody>
  1051. </table>
  1052. <h4 id="Terminal_Gui_ListView_SelectedChanged" data-uid="Terminal.Gui.ListView.SelectedChanged">SelectedChanged</h4>
  1053. <div class="markdown level1 summary">
  1054. This event is raised when the selected item in the <a class="xref" href="Terminal.Gui.ListView.html">ListView</a> has changed.
  1055. </div>
  1056. <div class="markdown level1 conceptual"></div>
  1057. <h5 class="decalaration">Declaration</h5>
  1058. <div class="codewrapper">
  1059. <pre><code class="lang-csharp hljs">public event EventHandler&lt;ListViewItemEventArgs&gt; SelectedChanged</code></pre>
  1060. </div>
  1061. <h5 class="eventType">Event Type</h5>
  1062. <table class="table table-bordered table-striped table-condensed">
  1063. <thead>
  1064. <tr>
  1065. <th>Type</th>
  1066. <th>Description</th>
  1067. </tr>
  1068. </thead>
  1069. <tbody>
  1070. <tr>
  1071. <td><span class="xref">System.EventHandler</span>&lt;<a class="xref" href="Terminal.Gui.ListViewItemEventArgs.html">ListViewItemEventArgs</a>&gt;</td>
  1072. <td></td>
  1073. </tr>
  1074. </tbody>
  1075. </table>
  1076. <h3 id="implements">Implements</h3>
  1077. <div>
  1078. <span class="xref">System.Collections.IEnumerable</span>
  1079. </div>
  1080. </article>
  1081. </div>
  1082. <div class="hidden-sm col-md-2" role="complementary">
  1083. <div class="sideaffix">
  1084. <div class="contribution">
  1085. <ul class="nav">
  1086. </ul>
  1087. </div>
  1088. <nav class="bs-docs-sidebar hidden-print hidden-xs hidden-sm affix" id="affix">
  1089. <!-- <p><a class="back-to-top" href="#top">Back to top</a><p> -->
  1090. </nav>
  1091. </div>
  1092. </div>
  1093. </div>
  1094. </div>
  1095. <footer>
  1096. <div class="grad-bottom"></div>
  1097. <div class="footer">
  1098. <div class="container">
  1099. <span class="pull-right">
  1100. <a href="#top">Back to top</a>
  1101. </span>
  1102. <span>Generated by <strong>DocFX</strong></span>
  1103. </div>
  1104. </div>
  1105. </footer>
  1106. </div>
  1107. <script type="text/javascript" src="../../styles/docfx.vendor.js"></script>
  1108. <script type="text/javascript" src="../../styles/docfx.js"></script>
  1109. <script type="text/javascript" src="../../styles/main.js"></script>
  1110. </body>
  1111. </html>