Terminal.Gui.ListView.html 67 KB

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