Terminal.Gui.ListView.html 106 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030
  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. <link rel="shortcut icon" href="../../favicon.ico">
  13. <link rel="stylesheet" href="../../styles/docfx.vendor.min.css">
  14. <link rel="stylesheet" href="../../styles/docfx.css">
  15. <link rel="stylesheet" href="../../styles/main.css">
  16. <meta property="docfx:navrel" content="../../toc.html">
  17. <meta property="docfx:tocrel" content="toc.html">
  18. <meta property="docfx:rel" content="../../">
  19. </head>
  20. <body data-spy="scroll" data-target="#affix" data-offset="120">
  21. <div id="wrapper">
  22. <header>
  23. <nav id="autocollapse" class="navbar navbar-inverse ng-scope" role="navigation">
  24. <div class="container">
  25. <div class="navbar-header">
  26. <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar">
  27. <span class="sr-only">Toggle navigation</span>
  28. <span class="icon-bar"></span>
  29. <span class="icon-bar"></span>
  30. <span class="icon-bar"></span>
  31. </button>
  32. <a class="navbar-brand" href="../../index.html">
  33. <img id="logo" class="svg" src="../../images/logo48.png" alt="">
  34. </a>
  35. </div>
  36. <div class="collapse navbar-collapse" id="navbar">
  37. <form class="navbar-form navbar-right" role="search" id="search">
  38. <div class="form-group">
  39. <input type="text" class="form-control" id="search-query" placeholder="Search" autocomplete="off">
  40. </div>
  41. </form>
  42. </div>
  43. </div>
  44. </nav>
  45. <div class="subnav navbar navbar-default">
  46. <div class="container hide-when-search" id="breadcrumb">
  47. <ul class="breadcrumb">
  48. <li></li>
  49. </ul>
  50. </div>
  51. </div>
  52. </header>
  53. <div class="container body-content">
  54. <div id="search-results">
  55. <div class="search-list">Search Results for <span></span></div>
  56. <div class="sr-items">
  57. <p><i class="glyphicon glyphicon-refresh index-loading"></i></p>
  58. </div>
  59. <ul id="pagination" data-first="First" data-prev="Previous" data-next="Next" data-last="Last"></ul>
  60. </div>
  61. </div>
  62. <div role="main" class="container body-content hide-when-search">
  63. <div class="sidenav hide-when-search">
  64. <a class="btn toc-toggle collapse" data-toggle="collapse" href="#sidetoggle" aria-expanded="false" aria-controls="sidetoggle">Show / Hide Table of Contents</a>
  65. <div class="sidetoggle collapse" id="sidetoggle">
  66. <div id="sidetoc"></div>
  67. </div>
  68. </div>
  69. <div class="article row grid-right">
  70. <div class="col-md-10">
  71. <article class="content wrap" id="_content" data-uid="Terminal.Gui.ListView">
  72. <h1 id="Terminal_Gui_ListView" data-uid="Terminal.Gui.ListView" class="text-break">Class ListView
  73. </h1>
  74. <div class="markdown level0 summary">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.</div>
  75. <div class="markdown level0 conceptual"></div>
  76. <div class="inheritance">
  77. <h5>Inheritance</h5>
  78. <div class="level0"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></div>
  79. <div class="level1"><a class="xref" href="Terminal.Gui.Responder.html">Responder</a></div>
  80. <div class="level2"><a class="xref" href="Terminal.Gui.View.html">View</a></div>
  81. <div class="level3"><span class="xref">ListView</span></div>
  82. </div>
  83. <div class="implements">
  84. <h5>Implements</h5>
  85. <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.idisposable">IDisposable</a></div>
  86. <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.componentmodel.isupportinitializenotification">ISupportInitializeNotification</a></div>
  87. <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.componentmodel.isupportinitialize">ISupportInitialize</a></div>
  88. </div>
  89. <div class="inheritedMembers">
  90. <h5>Inherited Members</h5>
  91. <div>
  92. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Added">View.Added</a>
  93. </div>
  94. <div>
  95. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Removed">View.Removed</a>
  96. </div>
  97. <div>
  98. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Enter">View.Enter</a>
  99. </div>
  100. <div>
  101. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Leave">View.Leave</a>
  102. </div>
  103. <div>
  104. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_MouseEnter">View.MouseEnter</a>
  105. </div>
  106. <div>
  107. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_MouseLeave">View.MouseLeave</a>
  108. </div>
  109. <div>
  110. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_MouseClick">View.MouseClick</a>
  111. </div>
  112. <div>
  113. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_CanFocusChanged">View.CanFocusChanged</a>
  114. </div>
  115. <div>
  116. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_EnabledChanged">View.EnabledChanged</a>
  117. </div>
  118. <div>
  119. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_VisibleChanged">View.VisibleChanged</a>
  120. </div>
  121. <div>
  122. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_HotKeyChanged">View.HotKeyChanged</a>
  123. </div>
  124. <div>
  125. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_HotKey">View.HotKey</a>
  126. </div>
  127. <div>
  128. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_HotKeySpecifier">View.HotKeySpecifier</a>
  129. </div>
  130. <div>
  131. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Shortcut">View.Shortcut</a>
  132. </div>
  133. <div>
  134. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_ShortcutTag">View.ShortcutTag</a>
  135. </div>
  136. <div>
  137. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_ShortcutAction">View.ShortcutAction</a>
  138. </div>
  139. <div>
  140. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Data">View.Data</a>
  141. </div>
  142. <div>
  143. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Driver">View.Driver</a>
  144. </div>
  145. <div>
  146. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Subviews">View.Subviews</a>
  147. </div>
  148. <div>
  149. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_TabIndexes">View.TabIndexes</a>
  150. </div>
  151. <div>
  152. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_TabIndex">View.TabIndex</a>
  153. </div>
  154. <div>
  155. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_TabStop">View.TabStop</a>
  156. </div>
  157. <div>
  158. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_CanFocus">View.CanFocus</a>
  159. </div>
  160. <div>
  161. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Id">View.Id</a>
  162. </div>
  163. <div>
  164. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_IsCurrentTop">View.IsCurrentTop</a>
  165. </div>
  166. <div>
  167. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_WantMousePositionReports">View.WantMousePositionReports</a>
  168. </div>
  169. <div>
  170. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_WantContinuousButtonPressed">View.WantContinuousButtonPressed</a>
  171. </div>
  172. <div>
  173. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Frame">View.Frame</a>
  174. </div>
  175. <div>
  176. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_LayoutStyle">View.LayoutStyle</a>
  177. </div>
  178. <div>
  179. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Bounds">View.Bounds</a>
  180. </div>
  181. <div>
  182. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_X">View.X</a>
  183. </div>
  184. <div>
  185. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Y">View.Y</a>
  186. </div>
  187. <div>
  188. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Width">View.Width</a>
  189. </div>
  190. <div>
  191. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Height">View.Height</a>
  192. </div>
  193. <div>
  194. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_ForceValidatePosDim">View.ForceValidatePosDim</a>
  195. </div>
  196. <div>
  197. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_GetMinWidthHeight_Terminal_Gui_Size__">View.GetMinWidthHeight(out Size)</a>
  198. </div>
  199. <div>
  200. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_SetMinWidthHeight">View.SetMinWidthHeight()</a>
  201. </div>
  202. <div>
  203. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_TextFormatter">View.TextFormatter</a>
  204. </div>
  205. <div>
  206. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_SuperView">View.SuperView</a>
  207. </div>
  208. <div>
  209. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_UpdateTextFormatterText">View.UpdateTextFormatterText()</a>
  210. </div>
  211. <div>
  212. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_ProcessResizeView">View.ProcessResizeView()</a>
  213. </div>
  214. <div>
  215. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_SetNeedsDisplay">View.SetNeedsDisplay()</a>
  216. </div>
  217. <div>
  218. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_ClearLayoutNeeded">View.ClearLayoutNeeded()</a>
  219. </div>
  220. <div>
  221. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_SetNeedsDisplay_Terminal_Gui_Rect_">View.SetNeedsDisplay(Rect)</a>
  222. </div>
  223. <div>
  224. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_SetChildNeedsDisplay">View.SetChildNeedsDisplay()</a>
  225. </div>
  226. <div>
  227. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Add_Terminal_Gui_View_">View.Add(View)</a>
  228. </div>
  229. <div>
  230. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Add_Terminal_Gui_View___">View.Add(params View[])</a>
  231. </div>
  232. <div>
  233. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_RemoveAll">View.RemoveAll()</a>
  234. </div>
  235. <div>
  236. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Remove_Terminal_Gui_View_">View.Remove(View)</a>
  237. </div>
  238. <div>
  239. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_BringSubviewToFront_Terminal_Gui_View_">View.BringSubviewToFront(View)</a>
  240. </div>
  241. <div>
  242. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_SendSubviewToBack_Terminal_Gui_View_">View.SendSubviewToBack(View)</a>
  243. </div>
  244. <div>
  245. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_SendSubviewBackwards_Terminal_Gui_View_">View.SendSubviewBackwards(View)</a>
  246. </div>
  247. <div>
  248. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_BringSubviewForward_Terminal_Gui_View_">View.BringSubviewForward(View)</a>
  249. </div>
  250. <div>
  251. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Clear">View.Clear()</a>
  252. </div>
  253. <div>
  254. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Clear_Terminal_Gui_Rect_">View.Clear(Rect)</a>
  255. </div>
  256. <div>
  257. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_ScreenToView_System_Int32_System_Int32_">View.ScreenToView(int, int)</a>
  258. </div>
  259. <div>
  260. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_ClipToBounds">View.ClipToBounds()</a>
  261. </div>
  262. <div>
  263. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_SetClip_Terminal_Gui_Rect_">View.SetClip(Rect)</a>
  264. </div>
  265. <div>
  266. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_DrawFrame_Terminal_Gui_Rect_System_Int32_System_Boolean_">View.DrawFrame(Rect, int, bool)</a>
  267. </div>
  268. <div>
  269. <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>
  270. </div>
  271. <div>
  272. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_DrawHotString_NStack_ustring_System_Boolean_Terminal_Gui_ColorScheme_">View.DrawHotString(ustring, bool, ColorScheme)</a>
  273. </div>
  274. <div>
  275. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Move_System_Int32_System_Int32_System_Boolean_">View.Move(int, int, bool)</a>
  276. </div>
  277. <div>
  278. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_HasFocus">View.HasFocus</a>
  279. </div>
  280. <div>
  281. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_OnAdded_Terminal_Gui_View_">View.OnAdded(View)</a>
  282. </div>
  283. <div>
  284. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_OnRemoved_Terminal_Gui_View_">View.OnRemoved(View)</a>
  285. </div>
  286. <div>
  287. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Focused">View.Focused</a>
  288. </div>
  289. <div>
  290. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_MostFocused">View.MostFocused</a>
  291. </div>
  292. <div>
  293. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_ColorScheme">View.ColorScheme</a>
  294. </div>
  295. <div>
  296. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_AddRune_System_Int32_System_Int32_System_Rune_">View.AddRune(int, int, Rune)</a>
  297. </div>
  298. <div>
  299. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_ClearNeedsDisplay">View.ClearNeedsDisplay()</a>
  300. </div>
  301. <div>
  302. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_DrawContent">View.DrawContent</a>
  303. </div>
  304. <div>
  305. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_OnDrawContent_Terminal_Gui_Rect_">View.OnDrawContent(Rect)</a>
  306. </div>
  307. <div>
  308. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_DrawContentComplete">View.DrawContentComplete</a>
  309. </div>
  310. <div>
  311. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_OnDrawContentComplete_Terminal_Gui_Rect_">View.OnDrawContentComplete(Rect)</a>
  312. </div>
  313. <div>
  314. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_SetFocus">View.SetFocus()</a>
  315. </div>
  316. <div>
  317. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_KeyPress">View.KeyPress</a>
  318. </div>
  319. <div>
  320. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_InvokeKeybindings_Terminal_Gui_KeyEvent_">View.InvokeKeybindings(KeyEvent)</a>
  321. </div>
  322. <div>
  323. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_AddKeyBinding_Terminal_Gui_Key_Terminal_Gui_Command___">View.AddKeyBinding(Key, params Command[])</a>
  324. </div>
  325. <div>
  326. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_ReplaceKeyBinding_Terminal_Gui_Key_Terminal_Gui_Key_">View.ReplaceKeyBinding(Key, Key)</a>
  327. </div>
  328. <div>
  329. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_ContainsKeyBinding_Terminal_Gui_Key_">View.ContainsKeyBinding(Key)</a>
  330. </div>
  331. <div>
  332. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_ClearKeybindings">View.ClearKeybindings()</a>
  333. </div>
  334. <div>
  335. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_ClearKeybinding_Terminal_Gui_Key_">View.ClearKeybinding(Key)</a>
  336. </div>
  337. <div>
  338. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_ClearKeybinding_Terminal_Gui_Command___">View.ClearKeybinding(params Command[])</a>
  339. </div>
  340. <div>
  341. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_AddCommand_Terminal_Gui_Command_System_Func_System_Nullable_System_Boolean___">View.AddCommand(Command, Func&lt;bool?&gt;)</a>
  342. </div>
  343. <div>
  344. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_GetSupportedCommands">View.GetSupportedCommands()</a>
  345. </div>
  346. <div>
  347. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_GetKeyFromCommand_Terminal_Gui_Command___">View.GetKeyFromCommand(params Command[])</a>
  348. </div>
  349. <div>
  350. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_ProcessHotKey_Terminal_Gui_KeyEvent_">View.ProcessHotKey(KeyEvent)</a>
  351. </div>
  352. <div>
  353. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_ProcessColdKey_Terminal_Gui_KeyEvent_">View.ProcessColdKey(KeyEvent)</a>
  354. </div>
  355. <div>
  356. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_KeyDown">View.KeyDown</a>
  357. </div>
  358. <div>
  359. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_OnKeyDown_Terminal_Gui_KeyEvent_">View.OnKeyDown(KeyEvent)</a>
  360. </div>
  361. <div>
  362. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_KeyUp">View.KeyUp</a>
  363. </div>
  364. <div>
  365. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_OnKeyUp_Terminal_Gui_KeyEvent_">View.OnKeyUp(KeyEvent)</a>
  366. </div>
  367. <div>
  368. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_EnsureFocus">View.EnsureFocus()</a>
  369. </div>
  370. <div>
  371. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_FocusFirst">View.FocusFirst()</a>
  372. </div>
  373. <div>
  374. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_FocusLast">View.FocusLast()</a>
  375. </div>
  376. <div>
  377. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_FocusPrev">View.FocusPrev()</a>
  378. </div>
  379. <div>
  380. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_FocusNext">View.FocusNext()</a>
  381. </div>
  382. <div>
  383. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_LayoutStarted">View.LayoutStarted</a>
  384. </div>
  385. <div>
  386. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_LayoutComplete">View.LayoutComplete</a>
  387. </div>
  388. <div>
  389. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Initialized">View.Initialized</a>
  390. </div>
  391. <div>
  392. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_LayoutSubviews">View.LayoutSubviews()</a>
  393. </div>
  394. <div>
  395. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Text">View.Text</a>
  396. </div>
  397. <div>
  398. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_AutoSize">View.AutoSize</a>
  399. </div>
  400. <div>
  401. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_PreserveTrailingSpaces">View.PreserveTrailingSpaces</a>
  402. </div>
  403. <div>
  404. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_TextAlignment">View.TextAlignment</a>
  405. </div>
  406. <div>
  407. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_VerticalTextAlignment">View.VerticalTextAlignment</a>
  408. </div>
  409. <div>
  410. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_TextDirection">View.TextDirection</a>
  411. </div>
  412. <div>
  413. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_IsInitialized">View.IsInitialized</a>
  414. </div>
  415. <div>
  416. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_IsAdded">View.IsAdded</a>
  417. </div>
  418. <div>
  419. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Enabled">View.Enabled</a>
  420. </div>
  421. <div>
  422. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_ClearOnVisibleFalse">View.ClearOnVisibleFalse</a>
  423. </div>
  424. <div>
  425. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Visible">View.Visible</a>
  426. </div>
  427. <div>
  428. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Border">View.Border</a>
  429. </div>
  430. <div>
  431. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_IgnoreBorderPropertyOnRedraw">View.IgnoreBorderPropertyOnRedraw</a>
  432. </div>
  433. <div>
  434. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_ToString">View.ToString()</a>
  435. </div>
  436. <div>
  437. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_GetAutoSize">View.GetAutoSize()</a>
  438. </div>
  439. <div>
  440. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_GetHotKeySpecifierLength_System_Boolean_">View.GetHotKeySpecifierLength(bool)</a>
  441. </div>
  442. <div>
  443. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_GetTextFormatterBoundsSize">View.GetTextFormatterBoundsSize()</a>
  444. </div>
  445. <div>
  446. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_GetBoundsTextFormatterSize">View.GetBoundsTextFormatterSize()</a>
  447. </div>
  448. <div>
  449. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_OnMouseEnter_Terminal_Gui_MouseEvent_">View.OnMouseEnter(MouseEvent)</a>
  450. </div>
  451. <div>
  452. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_OnMouseLeave_Terminal_Gui_MouseEvent_">View.OnMouseLeave(MouseEvent)</a>
  453. </div>
  454. <div>
  455. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_OnMouseEvent_Terminal_Gui_MouseEvent_">View.OnMouseEvent(MouseEvent)</a>
  456. </div>
  457. <div>
  458. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_OnMouseClick_Terminal_Gui_View_MouseEventArgs_">View.OnMouseClick(View.MouseEventArgs)</a>
  459. </div>
  460. <div>
  461. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_OnCanFocusChanged">View.OnCanFocusChanged()</a>
  462. </div>
  463. <div>
  464. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_OnEnabledChanged">View.OnEnabledChanged()</a>
  465. </div>
  466. <div>
  467. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_OnVisibleChanged">View.OnVisibleChanged()</a>
  468. </div>
  469. <div>
  470. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Dispose_System_Boolean_">View.Dispose(bool)</a>
  471. </div>
  472. <div>
  473. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_BeginInit">View.BeginInit()</a>
  474. </div>
  475. <div>
  476. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_EndInit">View.EndInit()</a>
  477. </div>
  478. <div>
  479. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_SetWidth_System_Int32_System_Int32__">View.SetWidth(int, out int)</a>
  480. </div>
  481. <div>
  482. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_SetHeight_System_Int32_System_Int32__">View.SetHeight(int, out int)</a>
  483. </div>
  484. <div>
  485. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_GetCurrentWidth_System_Int32__">View.GetCurrentWidth(out int)</a>
  486. </div>
  487. <div>
  488. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_GetCurrentHeight_System_Int32__">View.GetCurrentHeight(out int)</a>
  489. </div>
  490. <div>
  491. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_GetNormalColor">View.GetNormalColor()</a>
  492. </div>
  493. <div>
  494. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_GetFocusColor">View.GetFocusColor()</a>
  495. </div>
  496. <div>
  497. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_GetHotNormalColor">View.GetHotNormalColor()</a>
  498. </div>
  499. <div>
  500. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_GetTopSuperView">View.GetTopSuperView()</a>
  501. </div>
  502. <div>
  503. <a class="xref" href="Terminal.Gui.Responder.html#Terminal_Gui_Responder_Dispose">Responder.Dispose()</a>
  504. </div>
  505. <div>
  506. <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object)">object.Equals(object)</a>
  507. </div>
  508. <div>
  509. <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object-system-object)">object.Equals(object, object)</a>
  510. </div>
  511. <div>
  512. <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object.gethashcode">object.GetHashCode()</a>
  513. </div>
  514. <div>
  515. <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object.gettype">object.GetType()</a>
  516. </div>
  517. <div>
  518. <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone">object.MemberwiseClone()</a>
  519. </div>
  520. <div>
  521. <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object.referenceequals">object.ReferenceEquals(object, object)</a>
  522. </div>
  523. </div>
  524. <h6><strong>Namespace</strong>: <a class="xref" href="Terminal.html">Terminal</a>.<a class="xref" href="Terminal.Gui.html">Gui</a></h6>
  525. <h6><strong>Assembly</strong>: Terminal.Gui.dll</h6>
  526. <h5 id="Terminal_Gui_ListView_syntax">Syntax</h5>
  527. <div class="codewrapper">
  528. <pre><code class="lang-csharp hljs">public class ListView : View, IDisposable, ISupportInitializeNotification, ISupportInitialize</code></pre>
  529. </div>
  530. <h5 id="Terminal_Gui_ListView_remarks"><strong>Remarks</strong></h5>
  531. <div class="markdown level0 remarks"><p>
  532. The <a class="xref" href="Terminal.Gui.ListView.html">ListView</a> displays lists of data and allows the user to scroll through the data.
  533. Items in the can be activated firing an event (with the ENTER key or a mouse double-click).
  534. 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.
  535. </p>
  536. <p>
  537. By default <a class="xref" href="Terminal.Gui.ListView.html">ListView</a> uses <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object.tostring">ToString()</a> to render the items of any
  538. <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.ilist">IList</a> object (e.g. arrays, <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.list-1">List&lt;T&gt;</a>,
  539. and other collections). Alternatively, an object that implements <a class="xref" href="Terminal.Gui.IListDataSource.html">IListDataSource</a>
  540. can be provided giving full control of what is rendered.
  541. </p>
  542. <p>
  543. <a class="xref" href="Terminal.Gui.ListView.html">ListView</a> can display any object that implements the <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.ilist">IList</a> interface.
  544. <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a> values are converted into <span class="xref">NStack.ustring</span> values before rendering, and other values are
  545. converted into <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a> by calling <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object.tostring">ToString()</a> and then converting to <span class="xref">NStack.ustring</span> .
  546. </p>
  547. <p>
  548. 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
  549. 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>
  550. an <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.ilist">IList</a> is being used.
  551. </p>
  552. <p>
  553. 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
  554. [x] or [ ] and bind the SPACE key to toggle the selection. To implement a different
  555. marking style set <a class="xref" href="Terminal.Gui.ListView.html#Terminal_Gui_ListView_AllowsMarking">AllowsMarking</a> to false and implement custom rendering.
  556. </p>
  557. <p>
  558. Searching the ListView with the keyboard is supported. Users type the
  559. first characters of an item, and the first item that starts with what the user types will be selected.
  560. </p></div>
  561. <h3 id="constructors">Constructors
  562. </h3>
  563. <span class="small pull-right mobile-hide">
  564. <span class="divider">|</span>
  565. <a href="https://github.com/gui-cs/Terminal.Gui/new/develop/docfx/overrides/new?filename=Terminal_Gui_ListView__ctor.md&amp;value=---%0Auid%3A%20Terminal.Gui.ListView.%23ctor%0Asummary%3A%20&#39;*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax&#39;%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Edit this page</a>
  566. </span>
  567. <span class="small pull-right mobile-hide">
  568. <a href="tig:tig/Terminal.Gui/blob/v2_develop/Terminal.Gui/Views/ListView.cs/#L286">View Source</a>
  569. </span>
  570. <a id="Terminal_Gui_ListView__ctor_" data-uid="Terminal.Gui.ListView.#ctor*"></a>
  571. <h4 id="Terminal_Gui_ListView__ctor" data-uid="Terminal.Gui.ListView.#ctor">ListView()</h4>
  572. <div class="markdown level1 summary">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.</div>
  573. <div class="markdown level1 conceptual"></div>
  574. <h5 class="declaration">Declaration</h5>
  575. <div class="codewrapper">
  576. <pre><code class="lang-csharp hljs">public ListView()</code></pre>
  577. </div>
  578. <span class="small pull-right mobile-hide">
  579. <span class="divider">|</span>
  580. <a href="https://github.com/gui-cs/Terminal.Gui/new/develop/docfx/overrides/new?filename=Terminal_Gui_ListView__ctor_System_Collections_IList_.md&amp;value=---%0Auid%3A%20Terminal.Gui.ListView.%23ctor(System.Collections.IList)%0Asummary%3A%20&#39;*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax&#39;%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Edit this page</a>
  581. </span>
  582. <span class="small pull-right mobile-hide">
  583. <a href="tig:tig/Terminal.Gui/blob/v2_develop/Terminal.Gui/Views/ListView.cs/#L267">View Source</a>
  584. </span>
  585. <a id="Terminal_Gui_ListView__ctor_" data-uid="Terminal.Gui.ListView.#ctor*"></a>
  586. <h4 id="Terminal_Gui_ListView__ctor_System_Collections_IList_" data-uid="Terminal.Gui.ListView.#ctor(System.Collections.IList)">ListView(IList)</h4>
  587. <div class="markdown level1 summary">Initializes a new instance of <a class="xref" href="Terminal.Gui.ListView.html">ListView</a> that will display the
  588. contents of the object implementing the <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.ilist">IList</a> interface,
  589. with relative positioning.</div>
  590. <div class="markdown level1 conceptual"></div>
  591. <h5 class="declaration">Declaration</h5>
  592. <div class="codewrapper">
  593. <pre><code class="lang-csharp hljs">public ListView(IList source)</code></pre>
  594. </div>
  595. <h5 class="parameters">Parameters</h5>
  596. <table class="table table-bordered table-condensed">
  597. <thead>
  598. <tr>
  599. <th>Type</th>
  600. <th>Name</th>
  601. <th>Description</th>
  602. </tr>
  603. </thead>
  604. <tbody>
  605. <tr>
  606. <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.ilist">IList</a></td>
  607. <td><span class="parametername">source</span></td>
  608. <td>An <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.ilist">IList</a> data source, if the elements are strings or ustrings,
  609. the string is rendered, otherwise the ToString() method is invoked on the result.</td>
  610. </tr>
  611. </tbody>
  612. </table>
  613. <span class="small pull-right mobile-hide">
  614. <span class="divider">|</span>
  615. <a href="https://github.com/gui-cs/Terminal.Gui/new/develop/docfx/overrides/new?filename=Terminal_Gui_ListView__ctor_Terminal_Gui_IListDataSource_.md&amp;value=---%0Auid%3A%20Terminal.Gui.ListView.%23ctor(Terminal.Gui.IListDataSource)%0Asummary%3A%20&#39;*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax&#39;%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Edit this page</a>
  616. </span>
  617. <span class="small pull-right mobile-hide">
  618. <a href="tig:tig/Terminal.Gui/blob/v2_develop/Terminal.Gui/Views/ListView.cs/#L277">View Source</a>
  619. </span>
  620. <a id="Terminal_Gui_ListView__ctor_" data-uid="Terminal.Gui.ListView.#ctor*"></a>
  621. <h4 id="Terminal_Gui_ListView__ctor_Terminal_Gui_IListDataSource_" data-uid="Terminal.Gui.ListView.#ctor(Terminal.Gui.IListDataSource)">ListView(IListDataSource)</h4>
  622. <div class="markdown level1 summary">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.</div>
  623. <div class="markdown level1 conceptual"></div>
  624. <h5 class="declaration">Declaration</h5>
  625. <div class="codewrapper">
  626. <pre><code class="lang-csharp hljs">public ListView(IListDataSource source)</code></pre>
  627. </div>
  628. <h5 class="parameters">Parameters</h5>
  629. <table class="table table-bordered table-condensed">
  630. <thead>
  631. <tr>
  632. <th>Type</th>
  633. <th>Name</th>
  634. <th>Description</th>
  635. </tr>
  636. </thead>
  637. <tbody>
  638. <tr>
  639. <td><a class="xref" href="Terminal.Gui.IListDataSource.html">IListDataSource</a></td>
  640. <td><span class="parametername">source</span></td>
  641. <td><a class="xref" href="Terminal.Gui.IListDataSource.html">IListDataSource</a> object that provides a mechanism to render the data.
  642. The number of elements on the collection should not change, if you must change, set
  643. the "Source" property to reset the internal settings of the ListView.</td>
  644. </tr>
  645. </tbody>
  646. </table>
  647. <span class="small pull-right mobile-hide">
  648. <span class="divider">|</span>
  649. <a href="https://github.com/gui-cs/Terminal.Gui/new/develop/docfx/overrides/new?filename=Terminal_Gui_ListView__ctor_Terminal_Gui_Rect_System_Collections_IList_.md&amp;value=---%0Auid%3A%20Terminal.Gui.ListView.%23ctor(Terminal.Gui.Rect%2CSystem.Collections.IList)%0Asummary%3A%20&#39;*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax&#39;%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Edit this page</a>
  650. </span>
  651. <span class="small pull-right mobile-hide">
  652. <a href="tig:tig/Terminal.Gui/blob/v2_develop/Terminal.Gui/Views/ListView.cs/#L297">View Source</a>
  653. </span>
  654. <a id="Terminal_Gui_ListView__ctor_" data-uid="Terminal.Gui.ListView.#ctor*"></a>
  655. <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>
  656. <div class="markdown level1 summary">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 <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.ilist">IList</a> interface with an absolute position.</div>
  657. <div class="markdown level1 conceptual"></div>
  658. <h5 class="declaration">Declaration</h5>
  659. <div class="codewrapper">
  660. <pre><code class="lang-csharp hljs">public ListView(Rect rect, IList source)</code></pre>
  661. </div>
  662. <h5 class="parameters">Parameters</h5>
  663. <table class="table table-bordered table-condensed">
  664. <thead>
  665. <tr>
  666. <th>Type</th>
  667. <th>Name</th>
  668. <th>Description</th>
  669. </tr>
  670. </thead>
  671. <tbody>
  672. <tr>
  673. <td><a class="xref" href="Terminal.Gui.Rect.html">Rect</a></td>
  674. <td><span class="parametername">rect</span></td>
  675. <td>Frame for the listview.</td>
  676. </tr>
  677. <tr>
  678. <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.ilist">IList</a></td>
  679. <td><span class="parametername">source</span></td>
  680. <td>An IList data source, if the elements of the IList are strings or ustrings,
  681. the string is rendered, otherwise the ToString() method is invoked on the result.</td>
  682. </tr>
  683. </tbody>
  684. </table>
  685. <span class="small pull-right mobile-hide">
  686. <span class="divider">|</span>
  687. <a href="https://github.com/gui-cs/Terminal.Gui/new/develop/docfx/overrides/new?filename=Terminal_Gui_ListView__ctor_Terminal_Gui_Rect_Terminal_Gui_IListDataSource_.md&amp;value=---%0Auid%3A%20Terminal.Gui.ListView.%23ctor(Terminal.Gui.Rect%2CTerminal.Gui.IListDataSource)%0Asummary%3A%20&#39;*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax&#39;%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Edit this page</a>
  688. </span>
  689. <span class="small pull-right mobile-hide">
  690. <a href="tig:tig/Terminal.Gui/blob/v2_develop/Terminal.Gui/Views/ListView.cs/#L309">View Source</a>
  691. </span>
  692. <a id="Terminal_Gui_ListView__ctor_" data-uid="Terminal.Gui.ListView.#ctor*"></a>
  693. <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>
  694. <div class="markdown level1 summary">Initializes a new instance of <a class="xref" href="Terminal.Gui.ListView.html">ListView</a> with the provided data source and an absolute position</div>
  695. <div class="markdown level1 conceptual"></div>
  696. <h5 class="declaration">Declaration</h5>
  697. <div class="codewrapper">
  698. <pre><code class="lang-csharp hljs">public ListView(Rect rect, IListDataSource source)</code></pre>
  699. </div>
  700. <h5 class="parameters">Parameters</h5>
  701. <table class="table table-bordered table-condensed">
  702. <thead>
  703. <tr>
  704. <th>Type</th>
  705. <th>Name</th>
  706. <th>Description</th>
  707. </tr>
  708. </thead>
  709. <tbody>
  710. <tr>
  711. <td><a class="xref" href="Terminal.Gui.Rect.html">Rect</a></td>
  712. <td><span class="parametername">rect</span></td>
  713. <td>Frame for the listview.</td>
  714. </tr>
  715. <tr>
  716. <td><a class="xref" href="Terminal.Gui.IListDataSource.html">IListDataSource</a></td>
  717. <td><span class="parametername">source</span></td>
  718. <td>IListDataSource object that provides a mechanism to render the data.
  719. The number of elements on the collection should not change, if you must change,
  720. set the "Source" property to reset the internal settings of the ListView.</td>
  721. </tr>
  722. </tbody>
  723. </table>
  724. <h3 id="properties">Properties
  725. </h3>
  726. <span class="small pull-right mobile-hide">
  727. <span class="divider">|</span>
  728. <a href="https://github.com/gui-cs/Terminal.Gui/new/develop/docfx/overrides/new?filename=Terminal_Gui_ListView_AllowsMarking.md&amp;value=---%0Auid%3A%20Terminal.Gui.ListView.AllowsMarking%0Asummary%3A%20&#39;*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax&#39;%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Edit this page</a>
  729. </span>
  730. <span class="small pull-right mobile-hide">
  731. <a href="tig:tig/Terminal.Gui/blob/v2_develop/Terminal.Gui/Views/ListView.cs/#L164">View Source</a>
  732. </span>
  733. <a id="Terminal_Gui_ListView_AllowsMarking_" data-uid="Terminal.Gui.ListView.AllowsMarking*"></a>
  734. <h4 id="Terminal_Gui_ListView_AllowsMarking" data-uid="Terminal.Gui.ListView.AllowsMarking">AllowsMarking</h4>
  735. <div class="markdown level1 summary">Gets or sets whether this <a class="xref" href="Terminal.Gui.ListView.html">ListView</a> allows items to be marked.</div>
  736. <div class="markdown level1 conceptual"></div>
  737. <h5 class="declaration">Declaration</h5>
  738. <div class="codewrapper">
  739. <pre><code class="lang-csharp hljs">public bool AllowsMarking { get; set; }</code></pre>
  740. </div>
  741. <h5 class="propertyValue">Property Value</h5>
  742. <table class="table table-bordered table-condensed">
  743. <thead>
  744. <tr>
  745. <th>Type</th>
  746. <th>Description</th>
  747. </tr>
  748. </thead>
  749. <tbody>
  750. <tr>
  751. <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
  752. <td>Set to <a href="https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool">true</a> to allow marking elements of the list.</td>
  753. </tr>
  754. </tbody>
  755. </table>
  756. <h5 id="Terminal_Gui_ListView_AllowsMarking_remarks">Remarks</h5>
  757. <div class="markdown level1 remarks">If set to <a href="https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool">true</a>, <a class="xref" href="Terminal.Gui.ListView.html">ListView</a> will render items marked items with "[x]", and unmarked items with "[ ]"
  758. spaces. SPACE key will toggle marking. The default is <a href="https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool">false</a>.</div>
  759. <span class="small pull-right mobile-hide">
  760. <span class="divider">|</span>
  761. <a href="https://github.com/gui-cs/Terminal.Gui/new/develop/docfx/overrides/new?filename=Terminal_Gui_ListView_AllowsMultipleSelection.md&amp;value=---%0Auid%3A%20Terminal.Gui.ListView.AllowsMultipleSelection%0Asummary%3A%20&#39;*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax&#39;%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Edit this page</a>
  762. </span>
  763. <span class="small pull-right mobile-hide">
  764. <a href="tig:tig/Terminal.Gui/blob/v2_develop/Terminal.Gui/Views/ListView.cs/#L182">View Source</a>
  765. </span>
  766. <a id="Terminal_Gui_ListView_AllowsMultipleSelection_" data-uid="Terminal.Gui.ListView.AllowsMultipleSelection*"></a>
  767. <h4 id="Terminal_Gui_ListView_AllowsMultipleSelection" data-uid="Terminal.Gui.ListView.AllowsMultipleSelection">AllowsMultipleSelection</h4>
  768. <div class="markdown level1 summary">If set to <a href="https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool">true</a> more than one item can be selected. If <a href="https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool">false</a> selecting
  769. an item will cause all others to be un-selected. The default is <a href="https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool">false</a>.</div>
  770. <div class="markdown level1 conceptual"></div>
  771. <h5 class="declaration">Declaration</h5>
  772. <div class="codewrapper">
  773. <pre><code class="lang-csharp hljs">public bool AllowsMultipleSelection { get; set; }</code></pre>
  774. </div>
  775. <h5 class="propertyValue">Property Value</h5>
  776. <table class="table table-bordered table-condensed">
  777. <thead>
  778. <tr>
  779. <th>Type</th>
  780. <th>Description</th>
  781. </tr>
  782. </thead>
  783. <tbody>
  784. <tr>
  785. <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
  786. <td></td>
  787. </tr>
  788. </tbody>
  789. </table>
  790. <span class="small pull-right mobile-hide">
  791. <span class="divider">|</span>
  792. <a href="https://github.com/gui-cs/Terminal.Gui/new/develop/docfx/overrides/new?filename=Terminal_Gui_ListView_KeystrokeNavigator.md&amp;value=---%0Auid%3A%20Terminal.Gui.ListView.KeystrokeNavigator%0Asummary%3A%20&#39;*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax&#39;%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Edit this page</a>
  793. </span>
  794. <span class="small pull-right mobile-hide">
  795. <a href="tig:tig/Terminal.Gui/blob/v2_develop/Terminal.Gui/Views/ListView.cs/#L414">View Source</a>
  796. </span>
  797. <a id="Terminal_Gui_ListView_KeystrokeNavigator_" data-uid="Terminal.Gui.ListView.KeystrokeNavigator*"></a>
  798. <h4 id="Terminal_Gui_ListView_KeystrokeNavigator" data-uid="Terminal.Gui.ListView.KeystrokeNavigator">KeystrokeNavigator</h4>
  799. <div class="markdown level1 summary">Gets the <a class="xref" href="Terminal.Gui.CollectionNavigator.html">CollectionNavigator</a> that searches the <a class="xref" href="Terminal.Gui.ListView.html#Terminal_Gui_ListView_Source">Source</a> collection as
  800. the user types.</div>
  801. <div class="markdown level1 conceptual"></div>
  802. <h5 class="declaration">Declaration</h5>
  803. <div class="codewrapper">
  804. <pre><code class="lang-csharp hljs">public CollectionNavigator KeystrokeNavigator { get; }</code></pre>
  805. </div>
  806. <h5 class="propertyValue">Property Value</h5>
  807. <table class="table table-bordered table-condensed">
  808. <thead>
  809. <tr>
  810. <th>Type</th>
  811. <th>Description</th>
  812. </tr>
  813. </thead>
  814. <tbody>
  815. <tr>
  816. <td><a class="xref" href="Terminal.Gui.CollectionNavigator.html">CollectionNavigator</a></td>
  817. <td></td>
  818. </tr>
  819. </tbody>
  820. </table>
  821. <span class="small pull-right mobile-hide">
  822. <span class="divider">|</span>
  823. <a href="https://github.com/gui-cs/Terminal.Gui/new/develop/docfx/overrides/new?filename=Terminal_Gui_ListView_LeftItem.md&amp;value=---%0Auid%3A%20Terminal.Gui.ListView.LeftItem%0Asummary%3A%20&#39;*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax&#39;%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Edit this page</a>
  824. </span>
  825. <span class="small pull-right mobile-hide">
  826. <a href="tig:tig/Terminal.Gui/blob/v2_develop/Terminal.Gui/Views/ListView.cs/#L219">View Source</a>
  827. </span>
  828. <a id="Terminal_Gui_ListView_LeftItem_" data-uid="Terminal.Gui.ListView.LeftItem*"></a>
  829. <h4 id="Terminal_Gui_ListView_LeftItem" data-uid="Terminal.Gui.ListView.LeftItem">LeftItem</h4>
  830. <div class="markdown level1 summary">Gets or sets the leftmost column that is currently visible (when scrolling horizontally).</div>
  831. <div class="markdown level1 conceptual"></div>
  832. <h5 class="declaration">Declaration</h5>
  833. <div class="codewrapper">
  834. <pre><code class="lang-csharp hljs">public int LeftItem { get; set; }</code></pre>
  835. </div>
  836. <h5 class="propertyValue">Property Value</h5>
  837. <table class="table table-bordered table-condensed">
  838. <thead>
  839. <tr>
  840. <th>Type</th>
  841. <th>Description</th>
  842. </tr>
  843. </thead>
  844. <tbody>
  845. <tr>
  846. <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
  847. <td>The left position.</td>
  848. </tr>
  849. </tbody>
  850. </table>
  851. <span class="small pull-right mobile-hide">
  852. <span class="divider">|</span>
  853. <a href="https://github.com/gui-cs/Terminal.Gui/new/develop/docfx/overrides/new?filename=Terminal_Gui_ListView_Maxlength.md&amp;value=---%0Auid%3A%20Terminal.Gui.ListView.Maxlength%0Asummary%3A%20&#39;*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax&#39;%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Edit this page</a>
  854. </span>
  855. <span class="small pull-right mobile-hide">
  856. <a href="tig:tig/Terminal.Gui/blob/v2_develop/Terminal.Gui/Views/ListView.cs/#L235">View Source</a>
  857. </span>
  858. <a id="Terminal_Gui_ListView_Maxlength_" data-uid="Terminal.Gui.ListView.Maxlength*"></a>
  859. <h4 id="Terminal_Gui_ListView_Maxlength" data-uid="Terminal.Gui.ListView.Maxlength">Maxlength</h4>
  860. <div class="markdown level1 summary">Gets the widest item in the list.</div>
  861. <div class="markdown level1 conceptual"></div>
  862. <h5 class="declaration">Declaration</h5>
  863. <div class="codewrapper">
  864. <pre><code class="lang-csharp hljs">public int Maxlength { get; }</code></pre>
  865. </div>
  866. <h5 class="propertyValue">Property Value</h5>
  867. <table class="table table-bordered table-condensed">
  868. <thead>
  869. <tr>
  870. <th>Type</th>
  871. <th>Description</th>
  872. </tr>
  873. </thead>
  874. <tbody>
  875. <tr>
  876. <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
  877. <td></td>
  878. </tr>
  879. </tbody>
  880. </table>
  881. <span class="small pull-right mobile-hide">
  882. <span class="divider">|</span>
  883. <a href="https://github.com/gui-cs/Terminal.Gui/new/develop/docfx/overrides/new?filename=Terminal_Gui_ListView_SelectedItem.md&amp;value=---%0Auid%3A%20Terminal.Gui.ListView.SelectedItem%0Asummary%3A%20&#39;*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax&#39;%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Edit this page</a>
  884. </span>
  885. <span class="small pull-right mobile-hide">
  886. <a href="tig:tig/Terminal.Gui/blob/v2_develop/Terminal.Gui/Views/ListView.cs/#L241">View Source</a>
  887. </span>
  888. <a id="Terminal_Gui_ListView_SelectedItem_" data-uid="Terminal.Gui.ListView.SelectedItem*"></a>
  889. <h4 id="Terminal_Gui_ListView_SelectedItem" data-uid="Terminal.Gui.ListView.SelectedItem">SelectedItem</h4>
  890. <div class="markdown level1 summary">Gets or sets the index of the currently selected item.</div>
  891. <div class="markdown level1 conceptual"></div>
  892. <h5 class="declaration">Declaration</h5>
  893. <div class="codewrapper">
  894. <pre><code class="lang-csharp hljs">public int SelectedItem { get; set; }</code></pre>
  895. </div>
  896. <h5 class="propertyValue">Property Value</h5>
  897. <table class="table table-bordered table-condensed">
  898. <thead>
  899. <tr>
  900. <th>Type</th>
  901. <th>Description</th>
  902. </tr>
  903. </thead>
  904. <tbody>
  905. <tr>
  906. <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
  907. <td>The selected item.</td>
  908. </tr>
  909. </tbody>
  910. </table>
  911. <span class="small pull-right mobile-hide">
  912. <span class="divider">|</span>
  913. <a href="https://github.com/gui-cs/Terminal.Gui/new/develop/docfx/overrides/new?filename=Terminal_Gui_ListView_Source.md&amp;value=---%0Auid%3A%20Terminal.Gui.ListView.Source%0Asummary%3A%20&#39;*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax&#39;%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Edit this page</a>
  914. </span>
  915. <span class="small pull-right mobile-hide">
  916. <a href="tig:tig/Terminal.Gui/blob/v2_develop/Terminal.Gui/Views/ListView.cs/#L109">View Source</a>
  917. </span>
  918. <a id="Terminal_Gui_ListView_Source_" data-uid="Terminal.Gui.ListView.Source*"></a>
  919. <h4 id="Terminal_Gui_ListView_Source" data-uid="Terminal.Gui.ListView.Source">Source</h4>
  920. <div class="markdown level1 summary">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.</div>
  921. <div class="markdown level1 conceptual"></div>
  922. <h5 class="declaration">Declaration</h5>
  923. <div class="codewrapper">
  924. <pre><code class="lang-csharp hljs">public IListDataSource Source { get; set; }</code></pre>
  925. </div>
  926. <h5 class="propertyValue">Property Value</h5>
  927. <table class="table table-bordered table-condensed">
  928. <thead>
  929. <tr>
  930. <th>Type</th>
  931. <th>Description</th>
  932. </tr>
  933. </thead>
  934. <tbody>
  935. <tr>
  936. <td><a class="xref" href="Terminal.Gui.IListDataSource.html">IListDataSource</a></td>
  937. <td>The source.</td>
  938. </tr>
  939. </tbody>
  940. </table>
  941. <h5 id="Terminal_Gui_ListView_Source_remarks">Remarks</h5>
  942. <div class="markdown level1 remarks">Use <a class="xref" href="Terminal.Gui.ListView.html#Terminal_Gui_ListView_SetSource_System_Collections_IList_">SetSource(IList)</a> to set a new <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.ilist">IList</a> source.</div>
  943. <span class="small pull-right mobile-hide">
  944. <span class="divider">|</span>
  945. <a href="https://github.com/gui-cs/Terminal.Gui/new/develop/docfx/overrides/new?filename=Terminal_Gui_ListView_TopItem.md&amp;value=---%0Auid%3A%20Terminal.Gui.ListView.TopItem%0Asummary%3A%20&#39;*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax&#39;%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Edit this page</a>
  946. </span>
  947. <span class="small pull-right mobile-hide">
  948. <a href="tig:tig/Terminal.Gui/blob/v2_develop/Terminal.Gui/Views/ListView.cs/#L202">View Source</a>
  949. </span>
  950. <a id="Terminal_Gui_ListView_TopItem_" data-uid="Terminal.Gui.ListView.TopItem*"></a>
  951. <h4 id="Terminal_Gui_ListView_TopItem" data-uid="Terminal.Gui.ListView.TopItem">TopItem</h4>
  952. <div class="markdown level1 summary">Gets or sets the item that is displayed at the top of the <a class="xref" href="Terminal.Gui.ListView.html">ListView</a>.</div>
  953. <div class="markdown level1 conceptual"></div>
  954. <h5 class="declaration">Declaration</h5>
  955. <div class="codewrapper">
  956. <pre><code class="lang-csharp hljs">public int TopItem { get; set; }</code></pre>
  957. </div>
  958. <h5 class="propertyValue">Property Value</h5>
  959. <table class="table table-bordered table-condensed">
  960. <thead>
  961. <tr>
  962. <th>Type</th>
  963. <th>Description</th>
  964. </tr>
  965. </thead>
  966. <tbody>
  967. <tr>
  968. <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
  969. <td>The top item.</td>
  970. </tr>
  971. </tbody>
  972. </table>
  973. <h3 id="methods">Methods
  974. </h3>
  975. <span class="small pull-right mobile-hide">
  976. <span class="divider">|</span>
  977. <a href="https://github.com/gui-cs/Terminal.Gui/new/develop/docfx/overrides/new?filename=Terminal_Gui_ListView_AllowsAll.md&amp;value=---%0Auid%3A%20Terminal.Gui.ListView.AllowsAll%0Asummary%3A%20&#39;*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax&#39;%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Edit this page</a>
  978. </span>
  979. <span class="small pull-right mobile-hide">
  980. <a href="tig:tig/Terminal.Gui/blob/v2_develop/Terminal.Gui/Views/ListView.cs/#L447">View Source</a>
  981. </span>
  982. <a id="Terminal_Gui_ListView_AllowsAll_" data-uid="Terminal.Gui.ListView.AllowsAll*"></a>
  983. <h4 id="Terminal_Gui_ListView_AllowsAll" data-uid="Terminal.Gui.ListView.AllowsAll">AllowsAll()</h4>
  984. <div class="markdown level1 summary">If <a class="xref" href="Terminal.Gui.ListView.html#Terminal_Gui_ListView_AllowsMarking">AllowsMarking</a> and <a class="xref" href="Terminal.Gui.ListView.html#Terminal_Gui_ListView_AllowsMultipleSelection">AllowsMultipleSelection</a> are both <a href="https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool">true</a>,
  985. unmarks all marked items other than the currently selected.</div>
  986. <div class="markdown level1 conceptual"></div>
  987. <h5 class="declaration">Declaration</h5>
  988. <div class="codewrapper">
  989. <pre><code class="lang-csharp hljs">public virtual bool AllowsAll()</code></pre>
  990. </div>
  991. <h5 class="returns">Returns</h5>
  992. <table class="table table-bordered table-condensed">
  993. <thead>
  994. <tr>
  995. <th>Type</th>
  996. <th>Description</th>
  997. </tr>
  998. </thead>
  999. <tbody>
  1000. <tr>
  1001. <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
  1002. <td><a href="https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool">true</a> if unmarking was successful.</td>
  1003. </tr>
  1004. </tbody>
  1005. </table>
  1006. <span class="small pull-right mobile-hide">
  1007. <span class="divider">|</span>
  1008. <a href="https://github.com/gui-cs/Terminal.Gui/new/develop/docfx/overrides/new?filename=Terminal_Gui_ListView_EnsureSelectedItemVisible.md&amp;value=---%0Auid%3A%20Terminal.Gui.ListView.EnsureSelectedItemVisible%0Asummary%3A%20&#39;*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax&#39;%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Edit this page</a>
  1009. </span>
  1010. <span class="small pull-right mobile-hide">
  1011. <a href="tig:tig/Terminal.Gui/blob/v2_develop/Terminal.Gui/Views/ListView.cs/#L749">View Source</a>
  1012. </span>
  1013. <a id="Terminal_Gui_ListView_EnsureSelectedItemVisible_" data-uid="Terminal.Gui.ListView.EnsureSelectedItemVisible*"></a>
  1014. <h4 id="Terminal_Gui_ListView_EnsureSelectedItemVisible" data-uid="Terminal.Gui.ListView.EnsureSelectedItemVisible">EnsureSelectedItemVisible()</h4>
  1015. <div class="markdown level1 summary">Ensures the selected item is always visible on the screen.</div>
  1016. <div class="markdown level1 conceptual"></div>
  1017. <h5 class="declaration">Declaration</h5>
  1018. <div class="codewrapper">
  1019. <pre><code class="lang-csharp hljs">public void EnsureSelectedItemVisible()</code></pre>
  1020. </div>
  1021. <span class="small pull-right mobile-hide">
  1022. <span class="divider">|</span>
  1023. <a href="https://github.com/gui-cs/Terminal.Gui/new/develop/docfx/overrides/new?filename=Terminal_Gui_ListView_MarkUnmarkRow.md&amp;value=---%0Auid%3A%20Terminal.Gui.ListView.MarkUnmarkRow%0Asummary%3A%20&#39;*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax&#39;%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Edit this page</a>
  1024. </span>
  1025. <span class="small pull-right mobile-hide">
  1026. <a href="tig:tig/Terminal.Gui/blob/v2_develop/Terminal.Gui/Views/ListView.cs/#L466">View Source</a>
  1027. </span>
  1028. <a id="Terminal_Gui_ListView_MarkUnmarkRow_" data-uid="Terminal.Gui.ListView.MarkUnmarkRow*"></a>
  1029. <h4 id="Terminal_Gui_ListView_MarkUnmarkRow" data-uid="Terminal.Gui.ListView.MarkUnmarkRow">MarkUnmarkRow()</h4>
  1030. <div class="markdown level1 summary">Marks the <a class="xref" href="Terminal.Gui.ListView.html#Terminal_Gui_ListView_SelectedItem">SelectedItem</a> if it is not already marked.</div>
  1031. <div class="markdown level1 conceptual"></div>
  1032. <h5 class="declaration">Declaration</h5>
  1033. <div class="codewrapper">
  1034. <pre><code class="lang-csharp hljs">public virtual bool MarkUnmarkRow()</code></pre>
  1035. </div>
  1036. <h5 class="returns">Returns</h5>
  1037. <table class="table table-bordered table-condensed">
  1038. <thead>
  1039. <tr>
  1040. <th>Type</th>
  1041. <th>Description</th>
  1042. </tr>
  1043. </thead>
  1044. <tbody>
  1045. <tr>
  1046. <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
  1047. <td><a href="https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool">true</a> if the <a class="xref" href="Terminal.Gui.ListView.html#Terminal_Gui_ListView_SelectedItem">SelectedItem</a> was marked.</td>
  1048. </tr>
  1049. </tbody>
  1050. </table>
  1051. <span class="small pull-right mobile-hide">
  1052. <span class="divider">|</span>
  1053. <a href="https://github.com/gui-cs/Terminal.Gui/new/develop/docfx/overrides/new?filename=Terminal_Gui_ListView_MouseEvent_Terminal_Gui_MouseEvent_.md&amp;value=---%0Auid%3A%20Terminal.Gui.ListView.MouseEvent(Terminal.Gui.MouseEvent)%0Asummary%3A%20&#39;*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax&#39;%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Edit this page</a>
  1054. </span>
  1055. <span class="small pull-right mobile-hide">
  1056. <a href="tig:tig/Terminal.Gui/blob/v2_develop/Terminal.Gui/Views/ListView.cs/#L769">View Source</a>
  1057. </span>
  1058. <a id="Terminal_Gui_ListView_MouseEvent_" data-uid="Terminal.Gui.ListView.MouseEvent*"></a>
  1059. <h4 id="Terminal_Gui_ListView_MouseEvent_Terminal_Gui_MouseEvent_" data-uid="Terminal.Gui.ListView.MouseEvent(Terminal.Gui.MouseEvent)">MouseEvent(MouseEvent)</h4>
  1060. <div class="markdown level1 summary">Method invoked when a mouse event is generated</div>
  1061. <div class="markdown level1 conceptual"></div>
  1062. <h5 class="declaration">Declaration</h5>
  1063. <div class="codewrapper">
  1064. <pre><code class="lang-csharp hljs">public override bool MouseEvent(MouseEvent me)</code></pre>
  1065. </div>
  1066. <h5 class="parameters">Parameters</h5>
  1067. <table class="table table-bordered table-condensed">
  1068. <thead>
  1069. <tr>
  1070. <th>Type</th>
  1071. <th>Name</th>
  1072. <th>Description</th>
  1073. </tr>
  1074. </thead>
  1075. <tbody>
  1076. <tr>
  1077. <td><a class="xref" href="Terminal.Gui.MouseEvent.html">MouseEvent</a></td>
  1078. <td><span class="parametername">me</span></td>
  1079. <td></td>
  1080. </tr>
  1081. </tbody>
  1082. </table>
  1083. <h5 class="returns">Returns</h5>
  1084. <table class="table table-bordered table-condensed">
  1085. <thead>
  1086. <tr>
  1087. <th>Type</th>
  1088. <th>Description</th>
  1089. </tr>
  1090. </thead>
  1091. <tbody>
  1092. <tr>
  1093. <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
  1094. <td><code>true</code>, if the event was handled, <code>false</code> otherwise.</td>
  1095. </tr>
  1096. </tbody>
  1097. </table>
  1098. <h5 class="overrides">Overrides</h5>
  1099. <div><a class="xref" href="Terminal.Gui.Responder.html#Terminal_Gui_Responder_MouseEvent_Terminal_Gui_MouseEvent_">Responder.MouseEvent(MouseEvent)</a></div>
  1100. <span class="small pull-right mobile-hide">
  1101. <span class="divider">|</span>
  1102. <a href="https://github.com/gui-cs/Terminal.Gui/new/develop/docfx/overrides/new?filename=Terminal_Gui_ListView_MoveDown.md&amp;value=---%0Auid%3A%20Terminal.Gui.ListView.MoveDown%0Asummary%3A%20&#39;*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax&#39;%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Edit this page</a>
  1103. </span>
  1104. <span class="small pull-right mobile-hide">
  1105. <a href="tig:tig/Terminal.Gui/blob/v2_develop/Terminal.Gui/Views/ListView.cs/#L524">View Source</a>
  1106. </span>
  1107. <a id="Terminal_Gui_ListView_MoveDown_" data-uid="Terminal.Gui.ListView.MoveDown*"></a>
  1108. <h4 id="Terminal_Gui_ListView_MoveDown" data-uid="Terminal.Gui.ListView.MoveDown">MoveDown()</h4>
  1109. <div class="markdown level1 summary">Changes the <a class="xref" href="Terminal.Gui.ListView.html#Terminal_Gui_ListView_SelectedItem">SelectedItem</a> to the next item in the list,
  1110. scrolling the list if needed.</div>
  1111. <div class="markdown level1 conceptual"></div>
  1112. <h5 class="declaration">Declaration</h5>
  1113. <div class="codewrapper">
  1114. <pre><code class="lang-csharp hljs">public virtual bool MoveDown()</code></pre>
  1115. </div>
  1116. <h5 class="returns">Returns</h5>
  1117. <table class="table table-bordered table-condensed">
  1118. <thead>
  1119. <tr>
  1120. <th>Type</th>
  1121. <th>Description</th>
  1122. </tr>
  1123. </thead>
  1124. <tbody>
  1125. <tr>
  1126. <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
  1127. <td></td>
  1128. </tr>
  1129. </tbody>
  1130. </table>
  1131. <span class="small pull-right mobile-hide">
  1132. <span class="divider">|</span>
  1133. <a href="https://github.com/gui-cs/Terminal.Gui/new/develop/docfx/overrides/new?filename=Terminal_Gui_ListView_MoveEnd.md&amp;value=---%0Auid%3A%20Terminal.Gui.ListView.MoveEnd%0Asummary%3A%20&#39;*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax&#39;%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Edit this page</a>
  1134. </span>
  1135. <span class="small pull-right mobile-hide">
  1136. <a href="tig:tig/Terminal.Gui/blob/v2_develop/Terminal.Gui/Views/ListView.cs/#L602">View Source</a>
  1137. </span>
  1138. <a id="Terminal_Gui_ListView_MoveEnd_" data-uid="Terminal.Gui.ListView.MoveEnd*"></a>
  1139. <h4 id="Terminal_Gui_ListView_MoveEnd" data-uid="Terminal.Gui.ListView.MoveEnd">MoveEnd()</h4>
  1140. <div class="markdown level1 summary">Changes the <a class="xref" href="Terminal.Gui.ListView.html#Terminal_Gui_ListView_SelectedItem">SelectedItem</a> to last item in the list,
  1141. scrolling the list if needed.</div>
  1142. <div class="markdown level1 conceptual"></div>
  1143. <h5 class="declaration">Declaration</h5>
  1144. <div class="codewrapper">
  1145. <pre><code class="lang-csharp hljs">public virtual bool MoveEnd()</code></pre>
  1146. </div>
  1147. <h5 class="returns">Returns</h5>
  1148. <table class="table table-bordered table-condensed">
  1149. <thead>
  1150. <tr>
  1151. <th>Type</th>
  1152. <th>Description</th>
  1153. </tr>
  1154. </thead>
  1155. <tbody>
  1156. <tr>
  1157. <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
  1158. <td></td>
  1159. </tr>
  1160. </tbody>
  1161. </table>
  1162. <span class="small pull-right mobile-hide">
  1163. <span class="divider">|</span>
  1164. <a href="https://github.com/gui-cs/Terminal.Gui/new/develop/docfx/overrides/new?filename=Terminal_Gui_ListView_MoveHome.md&amp;value=---%0Auid%3A%20Terminal.Gui.ListView.MoveHome%0Asummary%3A%20&#39;*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax&#39;%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Edit this page</a>
  1165. </span>
  1166. <span class="small pull-right mobile-hide">
  1167. <a href="tig:tig/Terminal.Gui/blob/v2_develop/Terminal.Gui/Views/ListView.cs/#L621">View Source</a>
  1168. </span>
  1169. <a id="Terminal_Gui_ListView_MoveHome_" data-uid="Terminal.Gui.ListView.MoveHome*"></a>
  1170. <h4 id="Terminal_Gui_ListView_MoveHome" data-uid="Terminal.Gui.ListView.MoveHome">MoveHome()</h4>
  1171. <div class="markdown level1 summary">Changes the <a class="xref" href="Terminal.Gui.ListView.html#Terminal_Gui_ListView_SelectedItem">SelectedItem</a> to the first item in the list,
  1172. scrolling the list if needed.</div>
  1173. <div class="markdown level1 conceptual"></div>
  1174. <h5 class="declaration">Declaration</h5>
  1175. <div class="codewrapper">
  1176. <pre><code class="lang-csharp hljs">public virtual bool MoveHome()</code></pre>
  1177. </div>
  1178. <h5 class="returns">Returns</h5>
  1179. <table class="table table-bordered table-condensed">
  1180. <thead>
  1181. <tr>
  1182. <th>Type</th>
  1183. <th>Description</th>
  1184. </tr>
  1185. </thead>
  1186. <tbody>
  1187. <tr>
  1188. <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
  1189. <td></td>
  1190. </tr>
  1191. </tbody>
  1192. </table>
  1193. <span class="small pull-right mobile-hide">
  1194. <span class="divider">|</span>
  1195. <a href="https://github.com/gui-cs/Terminal.Gui/new/develop/docfx/overrides/new?filename=Terminal_Gui_ListView_MovePageDown.md&amp;value=---%0Auid%3A%20Terminal.Gui.ListView.MovePageDown%0Asummary%3A%20&#39;*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax&#39;%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Edit this page</a>
  1196. </span>
  1197. <span class="small pull-right mobile-hide">
  1198. <a href="tig:tig/Terminal.Gui/blob/v2_develop/Terminal.Gui/Views/ListView.cs/#L501">View Source</a>
  1199. </span>
  1200. <a id="Terminal_Gui_ListView_MovePageDown_" data-uid="Terminal.Gui.ListView.MovePageDown*"></a>
  1201. <h4 id="Terminal_Gui_ListView_MovePageDown" data-uid="Terminal.Gui.ListView.MovePageDown">MovePageDown()</h4>
  1202. <div class="markdown level1 summary">Changes the <a class="xref" href="Terminal.Gui.ListView.html#Terminal_Gui_ListView_SelectedItem">SelectedItem</a> to the item just below the bottom
  1203. of the visible list, scrolling if needed.</div>
  1204. <div class="markdown level1 conceptual"></div>
  1205. <h5 class="declaration">Declaration</h5>
  1206. <div class="codewrapper">
  1207. <pre><code class="lang-csharp hljs">public virtual bool MovePageDown()</code></pre>
  1208. </div>
  1209. <h5 class="returns">Returns</h5>
  1210. <table class="table table-bordered table-condensed">
  1211. <thead>
  1212. <tr>
  1213. <th>Type</th>
  1214. <th>Description</th>
  1215. </tr>
  1216. </thead>
  1217. <tbody>
  1218. <tr>
  1219. <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
  1220. <td></td>
  1221. </tr>
  1222. </tbody>
  1223. </table>
  1224. <span class="small pull-right mobile-hide">
  1225. <span class="divider">|</span>
  1226. <a href="https://github.com/gui-cs/Terminal.Gui/new/develop/docfx/overrides/new?filename=Terminal_Gui_ListView_MovePageUp.md&amp;value=---%0Auid%3A%20Terminal.Gui.ListView.MovePageUp%0Asummary%3A%20&#39;*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax&#39;%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Edit this page</a>
  1227. </span>
  1228. <span class="small pull-right mobile-hide">
  1229. <a href="tig:tig/Terminal.Gui/blob/v2_develop/Terminal.Gui/Views/ListView.cs/#L481">View Source</a>
  1230. </span>
  1231. <a id="Terminal_Gui_ListView_MovePageUp_" data-uid="Terminal.Gui.ListView.MovePageUp*"></a>
  1232. <h4 id="Terminal_Gui_ListView_MovePageUp" data-uid="Terminal.Gui.ListView.MovePageUp">MovePageUp()</h4>
  1233. <div class="markdown level1 summary">Changes the <a class="xref" href="Terminal.Gui.ListView.html#Terminal_Gui_ListView_SelectedItem">SelectedItem</a> to the item at the top of the visible list.</div>
  1234. <div class="markdown level1 conceptual"></div>
  1235. <h5 class="declaration">Declaration</h5>
  1236. <div class="codewrapper">
  1237. <pre><code class="lang-csharp hljs">public virtual bool MovePageUp()</code></pre>
  1238. </div>
  1239. <h5 class="returns">Returns</h5>
  1240. <table class="table table-bordered table-condensed">
  1241. <thead>
  1242. <tr>
  1243. <th>Type</th>
  1244. <th>Description</th>
  1245. </tr>
  1246. </thead>
  1247. <tbody>
  1248. <tr>
  1249. <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
  1250. <td></td>
  1251. </tr>
  1252. </tbody>
  1253. </table>
  1254. <span class="small pull-right mobile-hide">
  1255. <span class="divider">|</span>
  1256. <a href="https://github.com/gui-cs/Terminal.Gui/new/develop/docfx/overrides/new?filename=Terminal_Gui_ListView_MoveUp.md&amp;value=---%0Auid%3A%20Terminal.Gui.ListView.MoveUp%0Asummary%3A%20&#39;*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax&#39;%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Edit this page</a>
  1257. </span>
  1258. <span class="small pull-right mobile-hide">
  1259. <a href="tig:tig/Terminal.Gui/blob/v2_develop/Terminal.Gui/Views/ListView.cs/#L565">View Source</a>
  1260. </span>
  1261. <a id="Terminal_Gui_ListView_MoveUp_" data-uid="Terminal.Gui.ListView.MoveUp*"></a>
  1262. <h4 id="Terminal_Gui_ListView_MoveUp" data-uid="Terminal.Gui.ListView.MoveUp">MoveUp()</h4>
  1263. <div class="markdown level1 summary">Changes the <a class="xref" href="Terminal.Gui.ListView.html#Terminal_Gui_ListView_SelectedItem">SelectedItem</a> to the previous item in the list,
  1264. scrolling the list if needed.</div>
  1265. <div class="markdown level1 conceptual"></div>
  1266. <h5 class="declaration">Declaration</h5>
  1267. <div class="codewrapper">
  1268. <pre><code class="lang-csharp hljs">public virtual bool MoveUp()</code></pre>
  1269. </div>
  1270. <h5 class="returns">Returns</h5>
  1271. <table class="table table-bordered table-condensed">
  1272. <thead>
  1273. <tr>
  1274. <th>Type</th>
  1275. <th>Description</th>
  1276. </tr>
  1277. </thead>
  1278. <tbody>
  1279. <tr>
  1280. <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
  1281. <td></td>
  1282. </tr>
  1283. </tbody>
  1284. </table>
  1285. <span class="small pull-right mobile-hide">
  1286. <span class="divider">|</span>
  1287. <a href="https://github.com/gui-cs/Terminal.Gui/new/develop/docfx/overrides/new?filename=Terminal_Gui_ListView_OnEnter_Terminal_Gui_View_.md&amp;value=---%0Auid%3A%20Terminal.Gui.ListView.OnEnter(Terminal.Gui.View)%0Asummary%3A%20&#39;*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax&#39;%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Edit this page</a>
  1288. </span>
  1289. <span class="small pull-right mobile-hide">
  1290. <a href="tig:tig/Terminal.Gui/blob/v2_develop/Terminal.Gui/Views/ListView.cs/#L725">View Source</a>
  1291. </span>
  1292. <a id="Terminal_Gui_ListView_OnEnter_" data-uid="Terminal.Gui.ListView.OnEnter*"></a>
  1293. <h4 id="Terminal_Gui_ListView_OnEnter_Terminal_Gui_View_" data-uid="Terminal.Gui.ListView.OnEnter(Terminal.Gui.View)">OnEnter(View)</h4>
  1294. <div class="markdown level1 summary">Method invoked when a view gets focus.</div>
  1295. <div class="markdown level1 conceptual"></div>
  1296. <h5 class="declaration">Declaration</h5>
  1297. <div class="codewrapper">
  1298. <pre><code class="lang-csharp hljs">public override bool OnEnter(View view)</code></pre>
  1299. </div>
  1300. <h5 class="parameters">Parameters</h5>
  1301. <table class="table table-bordered table-condensed">
  1302. <thead>
  1303. <tr>
  1304. <th>Type</th>
  1305. <th>Name</th>
  1306. <th>Description</th>
  1307. </tr>
  1308. </thead>
  1309. <tbody>
  1310. <tr>
  1311. <td><a class="xref" href="Terminal.Gui.View.html">View</a></td>
  1312. <td><span class="parametername">view</span></td>
  1313. <td>The view that is losing focus.</td>
  1314. </tr>
  1315. </tbody>
  1316. </table>
  1317. <h5 class="returns">Returns</h5>
  1318. <table class="table table-bordered table-condensed">
  1319. <thead>
  1320. <tr>
  1321. <th>Type</th>
  1322. <th>Description</th>
  1323. </tr>
  1324. </thead>
  1325. <tbody>
  1326. <tr>
  1327. <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
  1328. <td><code>true</code>, if the event was handled, <code>false</code> otherwise.</td>
  1329. </tr>
  1330. </tbody>
  1331. </table>
  1332. <h5 class="overrides">Overrides</h5>
  1333. <div><a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_OnEnter_Terminal_Gui_View_">View.OnEnter(View)</a></div>
  1334. <span class="small pull-right mobile-hide">
  1335. <span class="divider">|</span>
  1336. <a href="https://github.com/gui-cs/Terminal.Gui/new/develop/docfx/overrides/new?filename=Terminal_Gui_ListView_OnLeave_Terminal_Gui_View_.md&amp;value=---%0Auid%3A%20Terminal.Gui.ListView.OnLeave(Terminal.Gui.View)%0Asummary%3A%20&#39;*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax&#39;%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Edit this page</a>
  1337. </span>
  1338. <span class="small pull-right mobile-hide">
  1339. <a href="tig:tig/Terminal.Gui/blob/v2_develop/Terminal.Gui/Views/ListView.cs/#L737">View Source</a>
  1340. </span>
  1341. <a id="Terminal_Gui_ListView_OnLeave_" data-uid="Terminal.Gui.ListView.OnLeave*"></a>
  1342. <h4 id="Terminal_Gui_ListView_OnLeave_Terminal_Gui_View_" data-uid="Terminal.Gui.ListView.OnLeave(Terminal.Gui.View)">OnLeave(View)</h4>
  1343. <div class="markdown level1 summary">Method invoked when a view loses focus.</div>
  1344. <div class="markdown level1 conceptual"></div>
  1345. <h5 class="declaration">Declaration</h5>
  1346. <div class="codewrapper">
  1347. <pre><code class="lang-csharp hljs">public override bool OnLeave(View view)</code></pre>
  1348. </div>
  1349. <h5 class="parameters">Parameters</h5>
  1350. <table class="table table-bordered table-condensed">
  1351. <thead>
  1352. <tr>
  1353. <th>Type</th>
  1354. <th>Name</th>
  1355. <th>Description</th>
  1356. </tr>
  1357. </thead>
  1358. <tbody>
  1359. <tr>
  1360. <td><a class="xref" href="Terminal.Gui.View.html">View</a></td>
  1361. <td><span class="parametername">view</span></td>
  1362. <td>The view that is getting focus.</td>
  1363. </tr>
  1364. </tbody>
  1365. </table>
  1366. <h5 class="returns">Returns</h5>
  1367. <table class="table table-bordered table-condensed">
  1368. <thead>
  1369. <tr>
  1370. <th>Type</th>
  1371. <th>Description</th>
  1372. </tr>
  1373. </thead>
  1374. <tbody>
  1375. <tr>
  1376. <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
  1377. <td><code>true</code>, if the event was handled, <code>false</code> otherwise.</td>
  1378. </tr>
  1379. </tbody>
  1380. </table>
  1381. <h5 class="overrides">Overrides</h5>
  1382. <div><a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_OnLeave_Terminal_Gui_View_">View.OnLeave(View)</a></div>
  1383. <span class="small pull-right mobile-hide">
  1384. <span class="divider">|</span>
  1385. <a href="https://github.com/gui-cs/Terminal.Gui/new/develop/docfx/overrides/new?filename=Terminal_Gui_ListView_OnOpenSelectedItem.md&amp;value=---%0Auid%3A%20Terminal.Gui.ListView.OnOpenSelectedItem%0Asummary%3A%20&#39;*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax&#39;%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Edit this page</a>
  1386. </span>
  1387. <span class="small pull-right mobile-hide">
  1388. <a href="tig:tig/Terminal.Gui/blob/v2_develop/Terminal.Gui/Views/ListView.cs/#L702">View Source</a>
  1389. </span>
  1390. <a id="Terminal_Gui_ListView_OnOpenSelectedItem_" data-uid="Terminal.Gui.ListView.OnOpenSelectedItem*"></a>
  1391. <h4 id="Terminal_Gui_ListView_OnOpenSelectedItem" data-uid="Terminal.Gui.ListView.OnOpenSelectedItem">OnOpenSelectedItem()</h4>
  1392. <div class="markdown level1 summary">Invokes the <a class="xref" href="Terminal.Gui.ListView.html#Terminal_Gui_ListView_OpenSelectedItem">OpenSelectedItem</a> event if it is defined.</div>
  1393. <div class="markdown level1 conceptual"></div>
  1394. <h5 class="declaration">Declaration</h5>
  1395. <div class="codewrapper">
  1396. <pre><code class="lang-csharp hljs">public virtual bool OnOpenSelectedItem()</code></pre>
  1397. </div>
  1398. <h5 class="returns">Returns</h5>
  1399. <table class="table table-bordered table-condensed">
  1400. <thead>
  1401. <tr>
  1402. <th>Type</th>
  1403. <th>Description</th>
  1404. </tr>
  1405. </thead>
  1406. <tbody>
  1407. <tr>
  1408. <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
  1409. <td></td>
  1410. </tr>
  1411. </tbody>
  1412. </table>
  1413. <span class="small pull-right mobile-hide">
  1414. <span class="divider">|</span>
  1415. <a href="https://github.com/gui-cs/Terminal.Gui/new/develop/docfx/overrides/new?filename=Terminal_Gui_ListView_OnRowRender_Terminal_Gui_ListViewRowEventArgs_.md&amp;value=---%0Auid%3A%20Terminal.Gui.ListView.OnRowRender(Terminal.Gui.ListViewRowEventArgs)%0Asummary%3A%20&#39;*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax&#39;%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Edit this page</a>
  1416. </span>
  1417. <span class="small pull-right mobile-hide">
  1418. <a href="tig:tig/Terminal.Gui/blob/v2_develop/Terminal.Gui/Views/ListView.cs/#L719">View Source</a>
  1419. </span>
  1420. <a id="Terminal_Gui_ListView_OnRowRender_" data-uid="Terminal.Gui.ListView.OnRowRender*"></a>
  1421. <h4 id="Terminal_Gui_ListView_OnRowRender_Terminal_Gui_ListViewRowEventArgs_" data-uid="Terminal.Gui.ListView.OnRowRender(Terminal.Gui.ListViewRowEventArgs)">OnRowRender(ListViewRowEventArgs)</h4>
  1422. <div class="markdown level1 summary">Virtual method that will invoke the <a class="xref" href="Terminal.Gui.ListView.html#Terminal_Gui_ListView_RowRender">RowRender</a>.</div>
  1423. <div class="markdown level1 conceptual"></div>
  1424. <h5 class="declaration">Declaration</h5>
  1425. <div class="codewrapper">
  1426. <pre><code class="lang-csharp hljs">public virtual void OnRowRender(ListViewRowEventArgs rowEventArgs)</code></pre>
  1427. </div>
  1428. <h5 class="parameters">Parameters</h5>
  1429. <table class="table table-bordered table-condensed">
  1430. <thead>
  1431. <tr>
  1432. <th>Type</th>
  1433. <th>Name</th>
  1434. <th>Description</th>
  1435. </tr>
  1436. </thead>
  1437. <tbody>
  1438. <tr>
  1439. <td><a class="xref" href="Terminal.Gui.ListViewRowEventArgs.html">ListViewRowEventArgs</a></td>
  1440. <td><span class="parametername">rowEventArgs</span></td>
  1441. <td></td>
  1442. </tr>
  1443. </tbody>
  1444. </table>
  1445. <span class="small pull-right mobile-hide">
  1446. <span class="divider">|</span>
  1447. <a href="https://github.com/gui-cs/Terminal.Gui/new/develop/docfx/overrides/new?filename=Terminal_Gui_ListView_OnSelectedChanged.md&amp;value=---%0Auid%3A%20Terminal.Gui.ListView.OnSelectedChanged%0Asummary%3A%20&#39;*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax&#39;%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Edit this page</a>
  1448. </span>
  1449. <span class="small pull-right mobile-hide">
  1450. <a href="tig:tig/Terminal.Gui/blob/v2_develop/Terminal.Gui/Views/ListView.cs/#L684">View Source</a>
  1451. </span>
  1452. <a id="Terminal_Gui_ListView_OnSelectedChanged_" data-uid="Terminal.Gui.ListView.OnSelectedChanged*"></a>
  1453. <h4 id="Terminal_Gui_ListView_OnSelectedChanged" data-uid="Terminal.Gui.ListView.OnSelectedChanged">OnSelectedChanged()</h4>
  1454. <div class="markdown level1 summary">Invokes the <a class="xref" href="Terminal.Gui.ListView.html#Terminal_Gui_ListView_SelectedItemChanged">SelectedItemChanged</a> event if it is defined.</div>
  1455. <div class="markdown level1 conceptual"></div>
  1456. <h5 class="declaration">Declaration</h5>
  1457. <div class="codewrapper">
  1458. <pre><code class="lang-csharp hljs">public virtual bool OnSelectedChanged()</code></pre>
  1459. </div>
  1460. <h5 class="returns">Returns</h5>
  1461. <table class="table table-bordered table-condensed">
  1462. <thead>
  1463. <tr>
  1464. <th>Type</th>
  1465. <th>Description</th>
  1466. </tr>
  1467. </thead>
  1468. <tbody>
  1469. <tr>
  1470. <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
  1471. <td></td>
  1472. </tr>
  1473. </tbody>
  1474. </table>
  1475. <span class="small pull-right mobile-hide">
  1476. <span class="divider">|</span>
  1477. <a href="https://github.com/gui-cs/Terminal.Gui/new/develop/docfx/overrides/new?filename=Terminal_Gui_ListView_PositionCursor.md&amp;value=---%0Auid%3A%20Terminal.Gui.ListView.PositionCursor%0Asummary%3A%20&#39;*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax&#39;%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Edit this page</a>
  1478. </span>
  1479. <span class="small pull-right mobile-hide">
  1480. <a href="tig:tig/Terminal.Gui/blob/v2_develop/Terminal.Gui/Views/ListView.cs/#L760">View Source</a>
  1481. </span>
  1482. <a id="Terminal_Gui_ListView_PositionCursor_" data-uid="Terminal.Gui.ListView.PositionCursor*"></a>
  1483. <h4 id="Terminal_Gui_ListView_PositionCursor" data-uid="Terminal.Gui.ListView.PositionCursor">PositionCursor()</h4>
  1484. <div class="markdown level1 summary">Positions the cursor in the right position based on the currently focused view in the chain.</div>
  1485. <div class="markdown level1 conceptual"></div>
  1486. <h5 class="declaration">Declaration</h5>
  1487. <div class="codewrapper">
  1488. <pre><code class="lang-csharp hljs">public override void PositionCursor()</code></pre>
  1489. </div>
  1490. <h5 class="overrides">Overrides</h5>
  1491. <div><a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_PositionCursor">View.PositionCursor()</a></div>
  1492. <span class="small pull-right mobile-hide">
  1493. <span class="divider">|</span>
  1494. <a href="https://github.com/gui-cs/Terminal.Gui/new/develop/docfx/overrides/new?filename=Terminal_Gui_ListView_ProcessKey_Terminal_Gui_KeyEvent_.md&amp;value=---%0Auid%3A%20Terminal.Gui.ListView.ProcessKey(Terminal.Gui.KeyEvent)%0Asummary%3A%20&#39;*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax&#39;%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Edit this page</a>
  1495. </span>
  1496. <span class="small pull-right mobile-hide">
  1497. <a href="tig:tig/Terminal.Gui/blob/v2_develop/Terminal.Gui/Views/ListView.cs/#L417">View Source</a>
  1498. </span>
  1499. <a id="Terminal_Gui_ListView_ProcessKey_" data-uid="Terminal.Gui.ListView.ProcessKey*"></a>
  1500. <h4 id="Terminal_Gui_ListView_ProcessKey_Terminal_Gui_KeyEvent_" data-uid="Terminal.Gui.ListView.ProcessKey(Terminal.Gui.KeyEvent)">ProcessKey(KeyEvent)</h4>
  1501. <div class="markdown level1 summary">If the view is focused, gives the view a
  1502. chance to process the keystroke.</div>
  1503. <div class="markdown level1 conceptual"></div>
  1504. <h5 class="declaration">Declaration</h5>
  1505. <div class="codewrapper">
  1506. <pre><code class="lang-csharp hljs">public override bool ProcessKey(KeyEvent kb)</code></pre>
  1507. </div>
  1508. <h5 class="parameters">Parameters</h5>
  1509. <table class="table table-bordered table-condensed">
  1510. <thead>
  1511. <tr>
  1512. <th>Type</th>
  1513. <th>Name</th>
  1514. <th>Description</th>
  1515. </tr>
  1516. </thead>
  1517. <tbody>
  1518. <tr>
  1519. <td><a class="xref" href="Terminal.Gui.KeyEvent.html">KeyEvent</a></td>
  1520. <td><span class="parametername">kb</span></td>
  1521. <td></td>
  1522. </tr>
  1523. </tbody>
  1524. </table>
  1525. <h5 class="returns">Returns</h5>
  1526. <table class="table table-bordered table-condensed">
  1527. <thead>
  1528. <tr>
  1529. <th>Type</th>
  1530. <th>Description</th>
  1531. </tr>
  1532. </thead>
  1533. <tbody>
  1534. <tr>
  1535. <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
  1536. <td></td>
  1537. </tr>
  1538. </tbody>
  1539. </table>
  1540. <h5 class="overrides">Overrides</h5>
  1541. <div><a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_ProcessKey_Terminal_Gui_KeyEvent_">View.ProcessKey(KeyEvent)</a></div>
  1542. <h5 id="Terminal_Gui_ListView_ProcessKey_Terminal_Gui_KeyEvent__remarks">Remarks</h5>
  1543. <div class="markdown level1 remarks"><p>
  1544. Views can override this method if they are
  1545. interested in processing the given keystroke.
  1546. If they consume the keystroke, they must
  1547. return true to stop the keystroke from being
  1548. processed by other widgets or consumed by the
  1549. widget engine. If they return false, the
  1550. keystroke will be passed using the ProcessColdKey
  1551. method to other views to process.
  1552. </p>
  1553. <p>
  1554. The View implementation does nothing but return false,
  1555. so it is not necessary to call base.ProcessKey if you
  1556. derive directly from View, but you should if you derive
  1557. other View subclasses.
  1558. </p></div>
  1559. <span class="small pull-right mobile-hide">
  1560. <span class="divider">|</span>
  1561. <a href="https://github.com/gui-cs/Terminal.Gui/new/develop/docfx/overrides/new?filename=Terminal_Gui_ListView_Redraw_Terminal_Gui_Rect_.md&amp;value=---%0Auid%3A%20Terminal.Gui.ListView.Redraw(Terminal.Gui.Rect)%0Asummary%3A%20&#39;*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax&#39;%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Edit this page</a>
  1562. </span>
  1563. <span class="small pull-right mobile-hide">
  1564. <a href="tig:tig/Terminal.Gui/blob/v2_develop/Terminal.Gui/Views/ListView.cs/#L352">View Source</a>
  1565. </span>
  1566. <a id="Terminal_Gui_ListView_Redraw_" data-uid="Terminal.Gui.ListView.Redraw*"></a>
  1567. <h4 id="Terminal_Gui_ListView_Redraw_Terminal_Gui_Rect_" data-uid="Terminal.Gui.ListView.Redraw(Terminal.Gui.Rect)">Redraw(Rect)</h4>
  1568. <div class="markdown level1 summary">Redraws this view and its subviews; only redraws the views that have been flagged for a re-display.</div>
  1569. <div class="markdown level1 conceptual"></div>
  1570. <h5 class="declaration">Declaration</h5>
  1571. <div class="codewrapper">
  1572. <pre><code class="lang-csharp hljs">public override void Redraw(Rect bounds)</code></pre>
  1573. </div>
  1574. <h5 class="parameters">Parameters</h5>
  1575. <table class="table table-bordered table-condensed">
  1576. <thead>
  1577. <tr>
  1578. <th>Type</th>
  1579. <th>Name</th>
  1580. <th>Description</th>
  1581. </tr>
  1582. </thead>
  1583. <tbody>
  1584. <tr>
  1585. <td><a class="xref" href="Terminal.Gui.Rect.html">Rect</a></td>
  1586. <td><span class="parametername">bounds</span></td>
  1587. <td>The bounds (view-relative region) to redraw.</td>
  1588. </tr>
  1589. </tbody>
  1590. </table>
  1591. <h5 class="overrides">Overrides</h5>
  1592. <div><a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Redraw_Terminal_Gui_Rect_">View.Redraw(Rect)</a></div>
  1593. <h5 id="Terminal_Gui_ListView_Redraw_Terminal_Gui_Rect__remarks">Remarks</h5>
  1594. <div class="markdown level1 remarks"><p>
  1595. Always use <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Bounds">Bounds</a> (view-relative) when calling <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Redraw_Terminal_Gui_Rect_">Redraw(Rect)</a>, NOT <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Frame">Frame</a> (superview-relative).
  1596. </p>
  1597. <p>
  1598. Views should set the color that they want to use on entry, as otherwise this will inherit
  1599. the last color that was set globally on the driver.
  1600. </p>
  1601. <p>
  1602. Overrides of <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Redraw_Terminal_Gui_Rect_">Redraw(Rect)</a> must ensure they do not set <code>Driver.Clip</code> to a clip region
  1603. larger than the <ref name="bounds"></ref> parameter, as this will cause the driver to clip the entire region.
  1604. </p></div>
  1605. <span class="small pull-right mobile-hide">
  1606. <span class="divider">|</span>
  1607. <a href="https://github.com/gui-cs/Terminal.Gui/new/develop/docfx/overrides/new?filename=Terminal_Gui_ListView_ScrollDown_System_Int32_.md&amp;value=---%0Auid%3A%20Terminal.Gui.ListView.ScrollDown(System.Int32)%0Asummary%3A%20&#39;*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax&#39;%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Edit this page</a>
  1608. </span>
  1609. <span class="small pull-right mobile-hide">
  1610. <a href="tig:tig/Terminal.Gui/blob/v2_develop/Terminal.Gui/Views/ListView.cs/#L637">View Source</a>
  1611. </span>
  1612. <a id="Terminal_Gui_ListView_ScrollDown_" data-uid="Terminal.Gui.ListView.ScrollDown*"></a>
  1613. <h4 id="Terminal_Gui_ListView_ScrollDown_System_Int32_" data-uid="Terminal.Gui.ListView.ScrollDown(System.Int32)">ScrollDown(int)</h4>
  1614. <div class="markdown level1 summary">Scrolls the view down by <code class="paramref">items</code> items.</div>
  1615. <div class="markdown level1 conceptual"></div>
  1616. <h5 class="declaration">Declaration</h5>
  1617. <div class="codewrapper">
  1618. <pre><code class="lang-csharp hljs">public virtual bool ScrollDown(int items)</code></pre>
  1619. </div>
  1620. <h5 class="parameters">Parameters</h5>
  1621. <table class="table table-bordered table-condensed">
  1622. <thead>
  1623. <tr>
  1624. <th>Type</th>
  1625. <th>Name</th>
  1626. <th>Description</th>
  1627. </tr>
  1628. </thead>
  1629. <tbody>
  1630. <tr>
  1631. <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
  1632. <td><span class="parametername">items</span></td>
  1633. <td>Number of items to scroll down.</td>
  1634. </tr>
  1635. </tbody>
  1636. </table>
  1637. <h5 class="returns">Returns</h5>
  1638. <table class="table table-bordered table-condensed">
  1639. <thead>
  1640. <tr>
  1641. <th>Type</th>
  1642. <th>Description</th>
  1643. </tr>
  1644. </thead>
  1645. <tbody>
  1646. <tr>
  1647. <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
  1648. <td></td>
  1649. </tr>
  1650. </tbody>
  1651. </table>
  1652. <span class="small pull-right mobile-hide">
  1653. <span class="divider">|</span>
  1654. <a href="https://github.com/gui-cs/Terminal.Gui/new/develop/docfx/overrides/new?filename=Terminal_Gui_ListView_ScrollLeft_System_Int32_.md&amp;value=---%0Auid%3A%20Terminal.Gui.ListView.ScrollLeft(System.Int32)%0Asummary%3A%20&#39;*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax&#39;%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Edit this page</a>
  1655. </span>
  1656. <span class="small pull-right mobile-hide">
  1657. <a href="tig:tig/Terminal.Gui/blob/v2_develop/Terminal.Gui/Views/ListView.cs/#L670">View Source</a>
  1658. </span>
  1659. <a id="Terminal_Gui_ListView_ScrollLeft_" data-uid="Terminal.Gui.ListView.ScrollLeft*"></a>
  1660. <h4 id="Terminal_Gui_ListView_ScrollLeft_System_Int32_" data-uid="Terminal.Gui.ListView.ScrollLeft(System.Int32)">ScrollLeft(int)</h4>
  1661. <div class="markdown level1 summary">Scrolls the view left.</div>
  1662. <div class="markdown level1 conceptual"></div>
  1663. <h5 class="declaration">Declaration</h5>
  1664. <div class="codewrapper">
  1665. <pre><code class="lang-csharp hljs">public virtual bool ScrollLeft(int cols)</code></pre>
  1666. </div>
  1667. <h5 class="parameters">Parameters</h5>
  1668. <table class="table table-bordered table-condensed">
  1669. <thead>
  1670. <tr>
  1671. <th>Type</th>
  1672. <th>Name</th>
  1673. <th>Description</th>
  1674. </tr>
  1675. </thead>
  1676. <tbody>
  1677. <tr>
  1678. <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
  1679. <td><span class="parametername">cols</span></td>
  1680. <td>Number of columns to scroll left.</td>
  1681. </tr>
  1682. </tbody>
  1683. </table>
  1684. <h5 class="returns">Returns</h5>
  1685. <table class="table table-bordered table-condensed">
  1686. <thead>
  1687. <tr>
  1688. <th>Type</th>
  1689. <th>Description</th>
  1690. </tr>
  1691. </thead>
  1692. <tbody>
  1693. <tr>
  1694. <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
  1695. <td></td>
  1696. </tr>
  1697. </tbody>
  1698. </table>
  1699. <span class="small pull-right mobile-hide">
  1700. <span class="divider">|</span>
  1701. <a href="https://github.com/gui-cs/Terminal.Gui/new/develop/docfx/overrides/new?filename=Terminal_Gui_ListView_ScrollRight_System_Int32_.md&amp;value=---%0Auid%3A%20Terminal.Gui.ListView.ScrollRight(System.Int32)%0Asummary%3A%20&#39;*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax&#39;%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Edit this page</a>
  1702. </span>
  1703. <span class="small pull-right mobile-hide">
  1704. <a href="tig:tig/Terminal.Gui/blob/v2_develop/Terminal.Gui/Views/ListView.cs/#L659">View Source</a>
  1705. </span>
  1706. <a id="Terminal_Gui_ListView_ScrollRight_" data-uid="Terminal.Gui.ListView.ScrollRight*"></a>
  1707. <h4 id="Terminal_Gui_ListView_ScrollRight_System_Int32_" data-uid="Terminal.Gui.ListView.ScrollRight(System.Int32)">ScrollRight(int)</h4>
  1708. <div class="markdown level1 summary">Scrolls the view right.</div>
  1709. <div class="markdown level1 conceptual"></div>
  1710. <h5 class="declaration">Declaration</h5>
  1711. <div class="codewrapper">
  1712. <pre><code class="lang-csharp hljs">public virtual bool ScrollRight(int cols)</code></pre>
  1713. </div>
  1714. <h5 class="parameters">Parameters</h5>
  1715. <table class="table table-bordered table-condensed">
  1716. <thead>
  1717. <tr>
  1718. <th>Type</th>
  1719. <th>Name</th>
  1720. <th>Description</th>
  1721. </tr>
  1722. </thead>
  1723. <tbody>
  1724. <tr>
  1725. <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
  1726. <td><span class="parametername">cols</span></td>
  1727. <td>Number of columns to scroll right.</td>
  1728. </tr>
  1729. </tbody>
  1730. </table>
  1731. <h5 class="returns">Returns</h5>
  1732. <table class="table table-bordered table-condensed">
  1733. <thead>
  1734. <tr>
  1735. <th>Type</th>
  1736. <th>Description</th>
  1737. </tr>
  1738. </thead>
  1739. <tbody>
  1740. <tr>
  1741. <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
  1742. <td></td>
  1743. </tr>
  1744. </tbody>
  1745. </table>
  1746. <span class="small pull-right mobile-hide">
  1747. <span class="divider">|</span>
  1748. <a href="https://github.com/gui-cs/Terminal.Gui/new/develop/docfx/overrides/new?filename=Terminal_Gui_ListView_ScrollUp_System_Int32_.md&amp;value=---%0Auid%3A%20Terminal.Gui.ListView.ScrollUp(System.Int32)%0Asummary%3A%20&#39;*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax&#39;%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Edit this page</a>
  1749. </span>
  1750. <span class="small pull-right mobile-hide">
  1751. <a href="tig:tig/Terminal.Gui/blob/v2_develop/Terminal.Gui/Views/ListView.cs/#L648">View Source</a>
  1752. </span>
  1753. <a id="Terminal_Gui_ListView_ScrollUp_" data-uid="Terminal.Gui.ListView.ScrollUp*"></a>
  1754. <h4 id="Terminal_Gui_ListView_ScrollUp_System_Int32_" data-uid="Terminal.Gui.ListView.ScrollUp(System.Int32)">ScrollUp(int)</h4>
  1755. <div class="markdown level1 summary">Scrolls the view up by <code class="paramref">items</code> items.</div>
  1756. <div class="markdown level1 conceptual"></div>
  1757. <h5 class="declaration">Declaration</h5>
  1758. <div class="codewrapper">
  1759. <pre><code class="lang-csharp hljs">public virtual bool ScrollUp(int items)</code></pre>
  1760. </div>
  1761. <h5 class="parameters">Parameters</h5>
  1762. <table class="table table-bordered table-condensed">
  1763. <thead>
  1764. <tr>
  1765. <th>Type</th>
  1766. <th>Name</th>
  1767. <th>Description</th>
  1768. </tr>
  1769. </thead>
  1770. <tbody>
  1771. <tr>
  1772. <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
  1773. <td><span class="parametername">items</span></td>
  1774. <td>Number of items to scroll up.</td>
  1775. </tr>
  1776. </tbody>
  1777. </table>
  1778. <h5 class="returns">Returns</h5>
  1779. <table class="table table-bordered table-condensed">
  1780. <thead>
  1781. <tr>
  1782. <th>Type</th>
  1783. <th>Description</th>
  1784. </tr>
  1785. </thead>
  1786. <tbody>
  1787. <tr>
  1788. <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
  1789. <td></td>
  1790. </tr>
  1791. </tbody>
  1792. </table>
  1793. <span class="small pull-right mobile-hide">
  1794. <span class="divider">|</span>
  1795. <a href="https://github.com/gui-cs/Terminal.Gui/new/develop/docfx/overrides/new?filename=Terminal_Gui_ListView_SetSource_System_Collections_IList_.md&amp;value=---%0Auid%3A%20Terminal.Gui.ListView.SetSource(System.Collections.IList)%0Asummary%3A%20&#39;*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax&#39;%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Edit this page</a>
  1796. </span>
  1797. <span class="small pull-right mobile-hide">
  1798. <a href="tig:tig/Terminal.Gui/blob/v2_develop/Terminal.Gui/Views/ListView.cs/#L128">View Source</a>
  1799. </span>
  1800. <a id="Terminal_Gui_ListView_SetSource_" data-uid="Terminal.Gui.ListView.SetSource*"></a>
  1801. <h4 id="Terminal_Gui_ListView_SetSource_System_Collections_IList_" data-uid="Terminal.Gui.ListView.SetSource(System.Collections.IList)">SetSource(IList)</h4>
  1802. <div class="markdown level1 summary">Sets the source of the <a class="xref" href="Terminal.Gui.ListView.html">ListView</a> to an <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.ilist">IList</a>.</div>
  1803. <div class="markdown level1 conceptual"></div>
  1804. <h5 class="declaration">Declaration</h5>
  1805. <div class="codewrapper">
  1806. <pre><code class="lang-csharp hljs">public void SetSource(IList source)</code></pre>
  1807. </div>
  1808. <h5 class="parameters">Parameters</h5>
  1809. <table class="table table-bordered table-condensed">
  1810. <thead>
  1811. <tr>
  1812. <th>Type</th>
  1813. <th>Name</th>
  1814. <th>Description</th>
  1815. </tr>
  1816. </thead>
  1817. <tbody>
  1818. <tr>
  1819. <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.ilist">IList</a></td>
  1820. <td><span class="parametername">source</span></td>
  1821. <td></td>
  1822. </tr>
  1823. </tbody>
  1824. </table>
  1825. <h5 id="Terminal_Gui_ListView_SetSource_System_Collections_IList__remarks">Remarks</h5>
  1826. <div class="markdown level1 remarks">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.</div>
  1827. <span class="small pull-right mobile-hide">
  1828. <span class="divider">|</span>
  1829. <a href="https://github.com/gui-cs/Terminal.Gui/new/develop/docfx/overrides/new?filename=Terminal_Gui_ListView_SetSourceAsync_System_Collections_IList_.md&amp;value=---%0Auid%3A%20Terminal.Gui.ListView.SetSourceAsync(System.Collections.IList)%0Asummary%3A%20&#39;*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax&#39;%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Edit this page</a>
  1830. </span>
  1831. <span class="small pull-right mobile-hide">
  1832. <a href="tig:tig/Terminal.Gui/blob/v2_develop/Terminal.Gui/Views/ListView.cs/#L144">View Source</a>
  1833. </span>
  1834. <a id="Terminal_Gui_ListView_SetSourceAsync_" data-uid="Terminal.Gui.ListView.SetSourceAsync*"></a>
  1835. <h4 id="Terminal_Gui_ListView_SetSourceAsync_System_Collections_IList_" data-uid="Terminal.Gui.ListView.SetSourceAsync(System.Collections.IList)">SetSourceAsync(IList)</h4>
  1836. <div class="markdown level1 summary">Sets the source to an <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.ilist">IList</a> value asynchronously.</div>
  1837. <div class="markdown level1 conceptual"></div>
  1838. <h5 class="declaration">Declaration</h5>
  1839. <div class="codewrapper">
  1840. <pre><code class="lang-csharp hljs">public Task SetSourceAsync(IList source)</code></pre>
  1841. </div>
  1842. <h5 class="parameters">Parameters</h5>
  1843. <table class="table table-bordered table-condensed">
  1844. <thead>
  1845. <tr>
  1846. <th>Type</th>
  1847. <th>Name</th>
  1848. <th>Description</th>
  1849. </tr>
  1850. </thead>
  1851. <tbody>
  1852. <tr>
  1853. <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.ilist">IList</a></td>
  1854. <td><span class="parametername">source</span></td>
  1855. <td></td>
  1856. </tr>
  1857. </tbody>
  1858. </table>
  1859. <h5 class="returns">Returns</h5>
  1860. <table class="table table-bordered table-condensed">
  1861. <thead>
  1862. <tr>
  1863. <th>Type</th>
  1864. <th>Description</th>
  1865. </tr>
  1866. </thead>
  1867. <tbody>
  1868. <tr>
  1869. <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.tasks.task">Task</a></td>
  1870. <td>An item implementing the IList interface.</td>
  1871. </tr>
  1872. </tbody>
  1873. </table>
  1874. <h5 id="Terminal_Gui_ListView_SetSourceAsync_System_Collections_IList__remarks">Remarks</h5>
  1875. <div class="markdown level1 remarks">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 custom rendering.</div>
  1876. <h3 id="events">Events
  1877. </h3>
  1878. <span class="small pull-right mobile-hide">
  1879. <span class="divider">|</span>
  1880. <a href="https://github.com/gui-cs/Terminal.Gui/new/develop/docfx/overrides/new?filename=Terminal_Gui_ListView_OpenSelectedItem.md&amp;value=---%0Auid%3A%20Terminal.Gui.ListView.OpenSelectedItem%0Asummary%3A%20&#39;*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax&#39;%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Edit this page</a>
  1881. </span>
  1882. <span class="small pull-right mobile-hide">
  1883. <a href="tig:tig/Terminal.Gui/blob/v2_develop/Terminal.Gui/Views/ListView.cs/#L403">View Source</a>
  1884. </span>
  1885. <h4 id="Terminal_Gui_ListView_OpenSelectedItem" data-uid="Terminal.Gui.ListView.OpenSelectedItem">OpenSelectedItem</h4>
  1886. <div class="markdown level1 summary">This event is raised when the user Double Clicks on an item or presses ENTER to open the selected item.</div>
  1887. <div class="markdown level1 conceptual"></div>
  1888. <h5 class="declaration">Declaration</h5>
  1889. <div class="codewrapper">
  1890. <pre><code class="lang-csharp hljs">public event Action&lt;ListViewItemEventArgs&gt; OpenSelectedItem</code></pre>
  1891. </div>
  1892. <h5 class="eventType">Event Type</h5>
  1893. <table class="table table-bordered table-condensed">
  1894. <thead>
  1895. <tr>
  1896. <th>Type</th>
  1897. <th>Description</th>
  1898. </tr>
  1899. </thead>
  1900. <tbody>
  1901. <tr>
  1902. <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.action-1">Action</a>&lt;<a class="xref" href="Terminal.Gui.ListViewItemEventArgs.html">ListViewItemEventArgs</a>&gt;</td>
  1903. <td></td>
  1904. </tr>
  1905. </tbody>
  1906. </table>
  1907. <span class="small pull-right mobile-hide">
  1908. <span class="divider">|</span>
  1909. <a href="https://github.com/gui-cs/Terminal.Gui/new/develop/docfx/overrides/new?filename=Terminal_Gui_ListView_RowRender.md&amp;value=---%0Auid%3A%20Terminal.Gui.ListView.RowRender%0Asummary%3A%20&#39;*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax&#39;%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Edit this page</a>
  1910. </span>
  1911. <span class="small pull-right mobile-hide">
  1912. <a href="tig:tig/Terminal.Gui/blob/v2_develop/Terminal.Gui/Views/ListView.cs/#L408">View Source</a>
  1913. </span>
  1914. <h4 id="Terminal_Gui_ListView_RowRender" data-uid="Terminal.Gui.ListView.RowRender">RowRender</h4>
  1915. <div class="markdown level1 summary">This event is invoked when this <a class="xref" href="Terminal.Gui.ListView.html">ListView</a> is being drawn before rendering.</div>
  1916. <div class="markdown level1 conceptual"></div>
  1917. <h5 class="declaration">Declaration</h5>
  1918. <div class="codewrapper">
  1919. <pre><code class="lang-csharp hljs">public event Action&lt;ListViewRowEventArgs&gt; RowRender</code></pre>
  1920. </div>
  1921. <h5 class="eventType">Event Type</h5>
  1922. <table class="table table-bordered table-condensed">
  1923. <thead>
  1924. <tr>
  1925. <th>Type</th>
  1926. <th>Description</th>
  1927. </tr>
  1928. </thead>
  1929. <tbody>
  1930. <tr>
  1931. <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.action-1">Action</a>&lt;<a class="xref" href="Terminal.Gui.ListViewRowEventArgs.html">ListViewRowEventArgs</a>&gt;</td>
  1932. <td></td>
  1933. </tr>
  1934. </tbody>
  1935. </table>
  1936. <span class="small pull-right mobile-hide">
  1937. <span class="divider">|</span>
  1938. <a href="https://github.com/gui-cs/Terminal.Gui/new/develop/docfx/overrides/new?filename=Terminal_Gui_ListView_SelectedItemChanged.md&amp;value=---%0Auid%3A%20Terminal.Gui.ListView.SelectedItemChanged%0Asummary%3A%20&#39;*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax&#39;%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Edit this page</a>
  1939. </span>
  1940. <span class="small pull-right mobile-hide">
  1941. <a href="tig:tig/Terminal.Gui/blob/v2_develop/Terminal.Gui/Views/ListView.cs/#L398">View Source</a>
  1942. </span>
  1943. <h4 id="Terminal_Gui_ListView_SelectedItemChanged" data-uid="Terminal.Gui.ListView.SelectedItemChanged">SelectedItemChanged</h4>
  1944. <div class="markdown level1 summary">This event is raised when the selected item in the <a class="xref" href="Terminal.Gui.ListView.html">ListView</a> has changed.</div>
  1945. <div class="markdown level1 conceptual"></div>
  1946. <h5 class="declaration">Declaration</h5>
  1947. <div class="codewrapper">
  1948. <pre><code class="lang-csharp hljs">public event Action&lt;ListViewItemEventArgs&gt; SelectedItemChanged</code></pre>
  1949. </div>
  1950. <h5 class="eventType">Event Type</h5>
  1951. <table class="table table-bordered table-condensed">
  1952. <thead>
  1953. <tr>
  1954. <th>Type</th>
  1955. <th>Description</th>
  1956. </tr>
  1957. </thead>
  1958. <tbody>
  1959. <tr>
  1960. <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.action-1">Action</a>&lt;<a class="xref" href="Terminal.Gui.ListViewItemEventArgs.html">ListViewItemEventArgs</a>&gt;</td>
  1961. <td></td>
  1962. </tr>
  1963. </tbody>
  1964. </table>
  1965. <h3 id="implements">Implements</h3>
  1966. <div>
  1967. <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.idisposable">IDisposable</a>
  1968. </div>
  1969. <div>
  1970. <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.componentmodel.isupportinitializenotification">ISupportInitializeNotification</a>
  1971. </div>
  1972. <div>
  1973. <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.componentmodel.isupportinitialize">ISupportInitialize</a>
  1974. </div>
  1975. </article>
  1976. </div>
  1977. <div class="hidden-sm col-md-2" role="complementary">
  1978. <div class="sideaffix">
  1979. <div class="contribution">
  1980. <ul class="nav">
  1981. <li>
  1982. <a href="https://github.com/gui-cs/Terminal.Gui/new/develop/docfx/overrides/new?filename=Terminal_Gui_ListView.md&amp;value=---%0Auid%3A%20Terminal.Gui.ListView%0Asummary%3A%20&#39;*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax&#39;%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A" class="contribution-link">Edit this page</a>
  1983. </li>
  1984. <li>
  1985. <a href="tig:tig/Terminal.Gui/blob/v2_develop/Terminal.Gui/Views/ListView.cs/#L97" class="contribution-link">View Source</a>
  1986. </li>
  1987. </ul>
  1988. </div>
  1989. <nav class="bs-docs-sidebar hidden-print hidden-xs hidden-sm affix" id="affix">
  1990. <h5>In this article</h5>
  1991. <div></div>
  1992. </nav>
  1993. </div>
  1994. </div>
  1995. </div>
  1996. </div>
  1997. <footer>
  1998. <div class="grad-bottom"></div>
  1999. <div class="footer">
  2000. <div class="container">
  2001. <span class="pull-right">
  2002. <a href="#top">Back to top</a>
  2003. </span>
  2004. <span>Generated by <strong>DocFX</strong></span>
  2005. </div>
  2006. </div>
  2007. </footer>
  2008. </div>
  2009. <script type="text/javascript" src="../../styles/docfx.vendor.min.js"></script>
  2010. <script type="text/javascript" src="../../styles/docfx.js"></script>
  2011. <script type="text/javascript" src="../../styles/main.js"></script>
  2012. </body>
  2013. </html>