Terminal.Gui.ListView.html 67 KB

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