Terminal.Gui.ListView.html 69 KB

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