Terminal.Gui.TreeView-1.html 79 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051
  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 TreeView&lt;T&gt;
  8. </title>
  9. <meta name="viewport" content="width=device-width">
  10. <meta name="title" content="Class TreeView&lt;T&gt;
  11. ">
  12. <meta name="generator" content="docfx 2.56.7.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.TreeView`1">
  73. <h1 id="Terminal_Gui_TreeView_1" data-uid="Terminal.Gui.TreeView`1" class="text-break">Class TreeView&lt;T&gt;
  74. </h1>
  75. <div class="markdown level0 summary">
  76. Hierarchical tree view with expandable branches. Branch objects are dynamically determined
  77. when expanded using a user defined <a class="xref" href="Terminal.Gui.Trees.ITreeBuilder-1.html">ITreeBuilder&lt;T&gt;</a>
  78. <a href="https://migueldeicaza.github.io/gui.cs/articles/treeview.html">See TreeView Deep Dive for more information</a>.
  79. </div>
  80. <div class="markdown level0 conceptual"></div>
  81. <div class="inheritance">
  82. <h5>Inheritance</h5>
  83. <div class="level0"><span class="xref">System.Object</span></div>
  84. <div class="level1"><a class="xref" href="Terminal.Gui.Responder.html">Responder</a></div>
  85. <div class="level2"><a class="xref" href="Terminal.Gui.View.html">View</a></div>
  86. <div class="level3"><span class="xref">TreeView&lt;T&gt;</span></div>
  87. <div class="level4"><a class="xref" href="Terminal.Gui.TreeView.html">TreeView</a></div>
  88. </div>
  89. <div classs="implements">
  90. <h5>Implements</h5>
  91. <div><span class="xref">System.IDisposable</span></div>
  92. <div><span class="xref">System.ComponentModel.ISupportInitializeNotification</span></div>
  93. <div><span class="xref">System.ComponentModel.ISupportInitialize</span></div>
  94. <div><a class="xref" href="Terminal.Gui.ITreeView.html">ITreeView</a></div>
  95. </div>
  96. <div class="inheritedMembers">
  97. <h5>Inherited Members</h5>
  98. <div>
  99. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Added">View.Added</a>
  100. </div>
  101. <div>
  102. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Removed">View.Removed</a>
  103. </div>
  104. <div>
  105. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Enter">View.Enter</a>
  106. </div>
  107. <div>
  108. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Leave">View.Leave</a>
  109. </div>
  110. <div>
  111. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_MouseEnter">View.MouseEnter</a>
  112. </div>
  113. <div>
  114. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_MouseLeave">View.MouseLeave</a>
  115. </div>
  116. <div>
  117. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_MouseClick">View.MouseClick</a>
  118. </div>
  119. <div>
  120. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_HotKey">View.HotKey</a>
  121. </div>
  122. <div>
  123. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_HotKeySpecifier">View.HotKeySpecifier</a>
  124. </div>
  125. <div>
  126. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Shortcut">View.Shortcut</a>
  127. </div>
  128. <div>
  129. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_ShortcutTag">View.ShortcutTag</a>
  130. </div>
  131. <div>
  132. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_ShortcutAction">View.ShortcutAction</a>
  133. </div>
  134. <div>
  135. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Data">View.Data</a>
  136. </div>
  137. <div>
  138. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Driver">View.Driver</a>
  139. </div>
  140. <div>
  141. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Subviews">View.Subviews</a>
  142. </div>
  143. <div>
  144. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_TabIndexes">View.TabIndexes</a>
  145. </div>
  146. <div>
  147. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_TabIndex">View.TabIndex</a>
  148. </div>
  149. <div>
  150. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_TabStop">View.TabStop</a>
  151. </div>
  152. <div>
  153. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_CanFocus">View.CanFocus</a>
  154. </div>
  155. <div>
  156. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Id">View.Id</a>
  157. </div>
  158. <div>
  159. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_IsCurrentTop">View.IsCurrentTop</a>
  160. </div>
  161. <div>
  162. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_WantMousePositionReports">View.WantMousePositionReports</a>
  163. </div>
  164. <div>
  165. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_WantContinuousButtonPressed">View.WantContinuousButtonPressed</a>
  166. </div>
  167. <div>
  168. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Frame">View.Frame</a>
  169. </div>
  170. <div>
  171. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_LayoutStyle">View.LayoutStyle</a>
  172. </div>
  173. <div>
  174. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Bounds">View.Bounds</a>
  175. </div>
  176. <div>
  177. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_X">View.X</a>
  178. </div>
  179. <div>
  180. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Y">View.Y</a>
  181. </div>
  182. <div>
  183. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Width">View.Width</a>
  184. </div>
  185. <div>
  186. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Height">View.Height</a>
  187. </div>
  188. <div>
  189. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_SuperView">View.SuperView</a>
  190. </div>
  191. <div>
  192. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_SetNeedsDisplay">View.SetNeedsDisplay()</a>
  193. </div>
  194. <div>
  195. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_ClearLayoutNeeded">View.ClearLayoutNeeded()</a>
  196. </div>
  197. <div>
  198. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_SetNeedsDisplay_Terminal_Gui_Rect_">View.SetNeedsDisplay(Rect)</a>
  199. </div>
  200. <div>
  201. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_SetChildNeedsDisplay">View.SetChildNeedsDisplay()</a>
  202. </div>
  203. <div>
  204. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Add_Terminal_Gui_View_">View.Add(View)</a>
  205. </div>
  206. <div>
  207. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Add_Terminal_Gui_View___">View.Add(View[])</a>
  208. </div>
  209. <div>
  210. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_RemoveAll">View.RemoveAll()</a>
  211. </div>
  212. <div>
  213. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Remove_Terminal_Gui_View_">View.Remove(View)</a>
  214. </div>
  215. <div>
  216. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_BringSubviewToFront_Terminal_Gui_View_">View.BringSubviewToFront(View)</a>
  217. </div>
  218. <div>
  219. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_SendSubviewToBack_Terminal_Gui_View_">View.SendSubviewToBack(View)</a>
  220. </div>
  221. <div>
  222. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_SendSubviewBackwards_Terminal_Gui_View_">View.SendSubviewBackwards(View)</a>
  223. </div>
  224. <div>
  225. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_BringSubviewForward_Terminal_Gui_View_">View.BringSubviewForward(View)</a>
  226. </div>
  227. <div>
  228. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Clear">View.Clear()</a>
  229. </div>
  230. <div>
  231. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Clear_Terminal_Gui_Rect_">View.Clear(Rect)</a>
  232. </div>
  233. <div>
  234. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_ScreenToView_System_Int32_System_Int32_">View.ScreenToView(Int32, Int32)</a>
  235. </div>
  236. <div>
  237. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_ClipToBounds">View.ClipToBounds()</a>
  238. </div>
  239. <div>
  240. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_SetClip_Terminal_Gui_Rect_">View.SetClip(Rect)</a>
  241. </div>
  242. <div>
  243. <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>
  244. </div>
  245. <div>
  246. <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>
  247. </div>
  248. <div>
  249. <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>
  250. </div>
  251. <div>
  252. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Move_System_Int32_System_Int32_">View.Move(Int32, Int32)</a>
  253. </div>
  254. <div>
  255. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_HasFocus">View.HasFocus</a>
  256. </div>
  257. <div>
  258. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_OnAdded_Terminal_Gui_View_">View.OnAdded(View)</a>
  259. </div>
  260. <div>
  261. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_OnRemoved_Terminal_Gui_View_">View.OnRemoved(View)</a>
  262. </div>
  263. <div>
  264. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_OnEnter_Terminal_Gui_View_">View.OnEnter(View)</a>
  265. </div>
  266. <div>
  267. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_OnLeave_Terminal_Gui_View_">View.OnLeave(View)</a>
  268. </div>
  269. <div>
  270. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Focused">View.Focused</a>
  271. </div>
  272. <div>
  273. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_MostFocused">View.MostFocused</a>
  274. </div>
  275. <div>
  276. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_ColorScheme">View.ColorScheme</a>
  277. </div>
  278. <div>
  279. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_AddRune_System_Int32_System_Int32_System_Rune_">View.AddRune(Int32, Int32, Rune)</a>
  280. </div>
  281. <div>
  282. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_ClearNeedsDisplay">View.ClearNeedsDisplay()</a>
  283. </div>
  284. <div>
  285. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_DrawContent">View.DrawContent</a>
  286. </div>
  287. <div>
  288. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_OnDrawContent_Terminal_Gui_Rect_">View.OnDrawContent(Rect)</a>
  289. </div>
  290. <div>
  291. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_SetFocus">View.SetFocus()</a>
  292. </div>
  293. <div>
  294. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_KeyPress">View.KeyPress</a>
  295. </div>
  296. <div>
  297. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_ProcessHotKey_Terminal_Gui_KeyEvent_">View.ProcessHotKey(KeyEvent)</a>
  298. </div>
  299. <div>
  300. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_ProcessColdKey_Terminal_Gui_KeyEvent_">View.ProcessColdKey(KeyEvent)</a>
  301. </div>
  302. <div>
  303. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_KeyDown">View.KeyDown</a>
  304. </div>
  305. <div>
  306. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_OnKeyDown_Terminal_Gui_KeyEvent_">View.OnKeyDown(KeyEvent)</a>
  307. </div>
  308. <div>
  309. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_KeyUp">View.KeyUp</a>
  310. </div>
  311. <div>
  312. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_OnKeyUp_Terminal_Gui_KeyEvent_">View.OnKeyUp(KeyEvent)</a>
  313. </div>
  314. <div>
  315. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_EnsureFocus">View.EnsureFocus()</a>
  316. </div>
  317. <div>
  318. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_FocusFirst">View.FocusFirst()</a>
  319. </div>
  320. <div>
  321. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_FocusLast">View.FocusLast()</a>
  322. </div>
  323. <div>
  324. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_FocusPrev">View.FocusPrev()</a>
  325. </div>
  326. <div>
  327. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_FocusNext">View.FocusNext()</a>
  328. </div>
  329. <div>
  330. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_LayoutStarted">View.LayoutStarted</a>
  331. </div>
  332. <div>
  333. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_LayoutComplete">View.LayoutComplete</a>
  334. </div>
  335. <div>
  336. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Initialized">View.Initialized</a>
  337. </div>
  338. <div>
  339. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_LayoutSubviews">View.LayoutSubviews()</a>
  340. </div>
  341. <div>
  342. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Text">View.Text</a>
  343. </div>
  344. <div>
  345. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_AutoSize">View.AutoSize</a>
  346. </div>
  347. <div>
  348. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_TextAlignment">View.TextAlignment</a>
  349. </div>
  350. <div>
  351. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_VerticalTextAlignment">View.VerticalTextAlignment</a>
  352. </div>
  353. <div>
  354. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_TextDirection">View.TextDirection</a>
  355. </div>
  356. <div>
  357. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_IsInitialized">View.IsInitialized</a>
  358. </div>
  359. <div>
  360. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_ToString">View.ToString()</a>
  361. </div>
  362. <div>
  363. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_OnMouseEnter_Terminal_Gui_MouseEvent_">View.OnMouseEnter(MouseEvent)</a>
  364. </div>
  365. <div>
  366. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_OnMouseLeave_Terminal_Gui_MouseEvent_">View.OnMouseLeave(MouseEvent)</a>
  367. </div>
  368. <div>
  369. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_OnMouseEvent_Terminal_Gui_MouseEvent_">View.OnMouseEvent(MouseEvent)</a>
  370. </div>
  371. <div>
  372. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_OnMouseClick_Terminal_Gui_View_MouseEventArgs_">View.OnMouseClick(View.MouseEventArgs)</a>
  373. </div>
  374. <div>
  375. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Dispose_System_Boolean_">View.Dispose(Boolean)</a>
  376. </div>
  377. <div>
  378. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_BeginInit">View.BeginInit()</a>
  379. </div>
  380. <div>
  381. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_EndInit">View.EndInit()</a>
  382. </div>
  383. <div>
  384. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Visible">View.Visible</a>
  385. </div>
  386. <div>
  387. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_SetWidth_System_Int32_System_Int32__">View.SetWidth(Int32, Int32)</a>
  388. </div>
  389. <div>
  390. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_SetHeight_System_Int32_System_Int32__">View.SetHeight(Int32, Int32)</a>
  391. </div>
  392. <div>
  393. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_GetCurrentWidth_System_Int32__">View.GetCurrentWidth(Int32)</a>
  394. </div>
  395. <div>
  396. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_GetCurrentHeight_System_Int32__">View.GetCurrentHeight(Int32)</a>
  397. </div>
  398. <div>
  399. <a class="xref" href="Terminal.Gui.Responder.html#Terminal_Gui_Responder_Dispose">Responder.Dispose()</a>
  400. </div>
  401. <div>
  402. <span class="xref">System.Object.Equals(System.Object)</span>
  403. </div>
  404. <div>
  405. <span class="xref">System.Object.Equals(System.Object, System.Object)</span>
  406. </div>
  407. <div>
  408. <span class="xref">System.Object.GetHashCode()</span>
  409. </div>
  410. <div>
  411. <span class="xref">System.Object.GetType()</span>
  412. </div>
  413. <div>
  414. <span class="xref">System.Object.MemberwiseClone()</span>
  415. </div>
  416. <div>
  417. <span class="xref">System.Object.ReferenceEquals(System.Object, System.Object)</span>
  418. </div>
  419. </div>
  420. <h6><strong>Namespace</strong>: <a class="xref" href="Terminal.Gui.html">Terminal.Gui</a></h6>
  421. <h6><strong>Assembly</strong>: Terminal.Gui.dll</h6>
  422. <h5 id="Terminal_Gui_TreeView_1_syntax">Syntax</h5>
  423. <div class="codewrapper">
  424. <pre><code class="lang-csharp hljs">public class TreeView&lt;T&gt; : View, IDisposable, ISupportInitializeNotification, ISupportInitialize, ITreeView where T : class</code></pre>
  425. </div>
  426. <h5 class="typeParameters">Type Parameters</h5>
  427. <table class="table table-bordered table-striped table-condensed">
  428. <thead>
  429. <tr>
  430. <th>Name</th>
  431. <th>Description</th>
  432. </tr>
  433. </thead>
  434. <tbody>
  435. <tr>
  436. <td><span class="parametername">T</span></td>
  437. <td></td>
  438. </tr>
  439. </tbody>
  440. </table>
  441. <h3 id="constructors">Constructors
  442. </h3>
  443. <a id="Terminal_Gui_TreeView_1__ctor_" data-uid="Terminal.Gui.TreeView`1.#ctor*"></a>
  444. <h4 id="Terminal_Gui_TreeView_1__ctor" data-uid="Terminal.Gui.TreeView`1.#ctor">TreeView()</h4>
  445. <div class="markdown level1 summary">
  446. Creates a new tree view with absolute positioning.
  447. Use <a class="xref" href="Terminal.Gui.TreeView-1.html#Terminal_Gui_TreeView_1_AddObjects_System_Collections_Generic_IEnumerable__0__">AddObjects(IEnumerable&lt;T&gt;)</a> to set set root objects for the tree.
  448. Children will not be rendered until you set <a class="xref" href="Terminal.Gui.TreeView-1.html#Terminal_Gui_TreeView_1_TreeBuilder">TreeBuilder</a>
  449. </div>
  450. <div class="markdown level1 conceptual"></div>
  451. <h5 class="decalaration">Declaration</h5>
  452. <div class="codewrapper">
  453. <pre><code class="lang-csharp hljs">public TreeView()</code></pre>
  454. </div>
  455. <a id="Terminal_Gui_TreeView_1__ctor_" data-uid="Terminal.Gui.TreeView`1.#ctor*"></a>
  456. <h4 id="Terminal_Gui_TreeView_1__ctor_Terminal_Gui_Trees_ITreeBuilder__0__" data-uid="Terminal.Gui.TreeView`1.#ctor(Terminal.Gui.Trees.ITreeBuilder{`0})">TreeView(ITreeBuilder&lt;T&gt;)</h4>
  457. <div class="markdown level1 summary">
  458. Initialises <a class="xref" href="Terminal.Gui.TreeView-1.html#Terminal_Gui_TreeView_1_TreeBuilder">TreeBuilder</a>.Creates a new tree view with absolute
  459. positioning. Use <a class="xref" href="Terminal.Gui.TreeView-1.html#Terminal_Gui_TreeView_1_AddObjects_System_Collections_Generic_IEnumerable__0__">AddObjects(IEnumerable&lt;T&gt;)</a> to set set root
  460. objects for the tree.
  461. </div>
  462. <div class="markdown level1 conceptual"></div>
  463. <h5 class="decalaration">Declaration</h5>
  464. <div class="codewrapper">
  465. <pre><code class="lang-csharp hljs">public TreeView(ITreeBuilder&lt;T&gt; builder)</code></pre>
  466. </div>
  467. <h5 class="parameters">Parameters</h5>
  468. <table class="table table-bordered table-striped table-condensed">
  469. <thead>
  470. <tr>
  471. <th>Type</th>
  472. <th>Name</th>
  473. <th>Description</th>
  474. </tr>
  475. </thead>
  476. <tbody>
  477. <tr>
  478. <td><a class="xref" href="Terminal.Gui.Trees.ITreeBuilder-1.html">ITreeBuilder</a>&lt;T&gt;</td>
  479. <td><span class="parametername">builder</span></td>
  480. <td></td>
  481. </tr>
  482. </tbody>
  483. </table>
  484. <h3 id="fields">Fields
  485. </h3>
  486. <h4 id="Terminal_Gui_TreeView_1_NoBuilderError" data-uid="Terminal.Gui.TreeView`1.NoBuilderError">NoBuilderError</h4>
  487. <div class="markdown level1 summary">
  488. Error message to display when the control is not properly initialized at draw time
  489. (nodes added but no tree builder set)
  490. </div>
  491. <div class="markdown level1 conceptual"></div>
  492. <h5 class="decalaration">Declaration</h5>
  493. <div class="codewrapper">
  494. <pre><code class="lang-csharp hljs">public static ustring NoBuilderError</code></pre>
  495. </div>
  496. <h5 class="fieldValue">Field Value</h5>
  497. <table class="table table-bordered table-striped table-condensed">
  498. <thead>
  499. <tr>
  500. <th>Type</th>
  501. <th>Description</th>
  502. </tr>
  503. </thead>
  504. <tbody>
  505. <tr>
  506. <td><span class="xref">NStack.ustring</span></td>
  507. <td></td>
  508. </tr>
  509. </tbody>
  510. </table>
  511. <h3 id="properties">Properties
  512. </h3>
  513. <a id="Terminal_Gui_TreeView_1_AllowLetterBasedNavigation_" data-uid="Terminal.Gui.TreeView`1.AllowLetterBasedNavigation*"></a>
  514. <h4 id="Terminal_Gui_TreeView_1_AllowLetterBasedNavigation" data-uid="Terminal.Gui.TreeView`1.AllowLetterBasedNavigation">AllowLetterBasedNavigation</h4>
  515. <div class="markdown level1 summary">
  516. True makes a letter key press navigate to the next visible branch that begins with
  517. that letter/digit
  518. </div>
  519. <div class="markdown level1 conceptual"></div>
  520. <h5 class="decalaration">Declaration</h5>
  521. <div class="codewrapper">
  522. <pre><code class="lang-csharp hljs">public bool AllowLetterBasedNavigation { get; set; }</code></pre>
  523. </div>
  524. <h5 class="propertyValue">Property Value</h5>
  525. <table class="table table-bordered table-striped table-condensed">
  526. <thead>
  527. <tr>
  528. <th>Type</th>
  529. <th>Description</th>
  530. </tr>
  531. </thead>
  532. <tbody>
  533. <tr>
  534. <td><span class="xref">System.Boolean</span></td>
  535. <td></td>
  536. </tr>
  537. </tbody>
  538. </table>
  539. <a id="Terminal_Gui_TreeView_1_AspectGetter_" data-uid="Terminal.Gui.TreeView`1.AspectGetter*"></a>
  540. <h4 id="Terminal_Gui_TreeView_1_AspectGetter" data-uid="Terminal.Gui.TreeView`1.AspectGetter">AspectGetter</h4>
  541. <div class="markdown level1 summary">
  542. Returns the string representation of model objects hosted in the tree. Default
  543. implementation is to call <span class="xref">System.Object.ToString()</span>
  544. </div>
  545. <div class="markdown level1 conceptual"></div>
  546. <h5 class="decalaration">Declaration</h5>
  547. <div class="codewrapper">
  548. <pre><code class="lang-csharp hljs">public AspectGetterDelegate&lt;T&gt; AspectGetter { get; set; }</code></pre>
  549. </div>
  550. <h5 class="propertyValue">Property Value</h5>
  551. <table class="table table-bordered table-striped table-condensed">
  552. <thead>
  553. <tr>
  554. <th>Type</th>
  555. <th>Description</th>
  556. </tr>
  557. </thead>
  558. <tbody>
  559. <tr>
  560. <td><a class="xref" href="Terminal.Gui.Trees.AspectGetterDelegate-1.html">AspectGetterDelegate</a>&lt;T&gt;</td>
  561. <td></td>
  562. </tr>
  563. </tbody>
  564. </table>
  565. <a id="Terminal_Gui_TreeView_1_ContentHeight_" data-uid="Terminal.Gui.TreeView`1.ContentHeight*"></a>
  566. <h4 id="Terminal_Gui_TreeView_1_ContentHeight" data-uid="Terminal.Gui.TreeView`1.ContentHeight">ContentHeight</h4>
  567. <div class="markdown level1 summary">
  568. The current number of rows in the tree (ignoring the controls bounds)
  569. </div>
  570. <div class="markdown level1 conceptual"></div>
  571. <h5 class="decalaration">Declaration</h5>
  572. <div class="codewrapper">
  573. <pre><code class="lang-csharp hljs">public int ContentHeight { get; }</code></pre>
  574. </div>
  575. <h5 class="propertyValue">Property Value</h5>
  576. <table class="table table-bordered table-striped table-condensed">
  577. <thead>
  578. <tr>
  579. <th>Type</th>
  580. <th>Description</th>
  581. </tr>
  582. </thead>
  583. <tbody>
  584. <tr>
  585. <td><span class="xref">System.Int32</span></td>
  586. <td></td>
  587. </tr>
  588. </tbody>
  589. </table>
  590. <a id="Terminal_Gui_TreeView_1_MultiSelect_" data-uid="Terminal.Gui.TreeView`1.MultiSelect*"></a>
  591. <h4 id="Terminal_Gui_TreeView_1_MultiSelect" data-uid="Terminal.Gui.TreeView`1.MultiSelect">MultiSelect</h4>
  592. <div class="markdown level1 summary">
  593. True to allow multiple objects to be selected at once
  594. </div>
  595. <div class="markdown level1 conceptual"></div>
  596. <h5 class="decalaration">Declaration</h5>
  597. <div class="codewrapper">
  598. <pre><code class="lang-csharp hljs">public bool MultiSelect { get; set; }</code></pre>
  599. </div>
  600. <h5 class="propertyValue">Property Value</h5>
  601. <table class="table table-bordered table-striped table-condensed">
  602. <thead>
  603. <tr>
  604. <th>Type</th>
  605. <th>Description</th>
  606. </tr>
  607. </thead>
  608. <tbody>
  609. <tr>
  610. <td><span class="xref">System.Boolean</span></td>
  611. <td></td>
  612. </tr>
  613. </tbody>
  614. </table>
  615. <a id="Terminal_Gui_TreeView_1_ObjectActivationButton_" data-uid="Terminal.Gui.TreeView`1.ObjectActivationButton*"></a>
  616. <h4 id="Terminal_Gui_TreeView_1_ObjectActivationButton" data-uid="Terminal.Gui.TreeView`1.ObjectActivationButton">ObjectActivationButton</h4>
  617. <div class="markdown level1 summary">
  618. Mouse event to trigger <a class="xref" href="Terminal.Gui.TreeView-1.html#Terminal_Gui_TreeView_1_ObjectActivated">ObjectActivated</a>.
  619. Defaults to double click (<a class="xref" href="Terminal.Gui.MouseFlags.html#Terminal_Gui_MouseFlags_Button1DoubleClicked">Button1DoubleClicked</a>).
  620. Set to null to disable this feature.
  621. </div>
  622. <div class="markdown level1 conceptual"></div>
  623. <h5 class="decalaration">Declaration</h5>
  624. <div class="codewrapper">
  625. <pre><code class="lang-csharp hljs">public MouseFlags? ObjectActivationButton { get; set; }</code></pre>
  626. </div>
  627. <h5 class="propertyValue">Property Value</h5>
  628. <table class="table table-bordered table-striped table-condensed">
  629. <thead>
  630. <tr>
  631. <th>Type</th>
  632. <th>Description</th>
  633. </tr>
  634. </thead>
  635. <tbody>
  636. <tr>
  637. <td><span class="xref">System.Nullable</span>&lt;<a class="xref" href="Terminal.Gui.MouseFlags.html">MouseFlags</a>&gt;</td>
  638. <td></td>
  639. </tr>
  640. </tbody>
  641. </table>
  642. <a id="Terminal_Gui_TreeView_1_ObjectActivationKey_" data-uid="Terminal.Gui.TreeView`1.ObjectActivationKey*"></a>
  643. <h4 id="Terminal_Gui_TreeView_1_ObjectActivationKey" data-uid="Terminal.Gui.TreeView`1.ObjectActivationKey">ObjectActivationKey</h4>
  644. <div class="markdown level1 summary">
  645. Key which when pressed triggers <a class="xref" href="Terminal.Gui.TreeView-1.html#Terminal_Gui_TreeView_1_ObjectActivated">ObjectActivated</a>.
  646. Defaults to Enter
  647. </div>
  648. <div class="markdown level1 conceptual"></div>
  649. <h5 class="decalaration">Declaration</h5>
  650. <div class="codewrapper">
  651. <pre><code class="lang-csharp hljs">public Key ObjectActivationKey { get; set; }</code></pre>
  652. </div>
  653. <h5 class="propertyValue">Property Value</h5>
  654. <table class="table table-bordered table-striped table-condensed">
  655. <thead>
  656. <tr>
  657. <th>Type</th>
  658. <th>Description</th>
  659. </tr>
  660. </thead>
  661. <tbody>
  662. <tr>
  663. <td><a class="xref" href="Terminal.Gui.Key.html">Key</a></td>
  664. <td></td>
  665. </tr>
  666. </tbody>
  667. </table>
  668. <a id="Terminal_Gui_TreeView_1_Objects_" data-uid="Terminal.Gui.TreeView`1.Objects*"></a>
  669. <h4 id="Terminal_Gui_TreeView_1_Objects" data-uid="Terminal.Gui.TreeView`1.Objects">Objects</h4>
  670. <div class="markdown level1 summary">
  671. The root objects in the tree, note that this collection is of root objects only
  672. </div>
  673. <div class="markdown level1 conceptual"></div>
  674. <h5 class="decalaration">Declaration</h5>
  675. <div class="codewrapper">
  676. <pre><code class="lang-csharp hljs">public IEnumerable&lt;T&gt; Objects { get; }</code></pre>
  677. </div>
  678. <h5 class="propertyValue">Property Value</h5>
  679. <table class="table table-bordered table-striped table-condensed">
  680. <thead>
  681. <tr>
  682. <th>Type</th>
  683. <th>Description</th>
  684. </tr>
  685. </thead>
  686. <tbody>
  687. <tr>
  688. <td><span class="xref">System.Collections.Generic.IEnumerable</span>&lt;T&gt;</td>
  689. <td></td>
  690. </tr>
  691. </tbody>
  692. </table>
  693. <a id="Terminal_Gui_TreeView_1_ScrollOffsetHorizontal_" data-uid="Terminal.Gui.TreeView`1.ScrollOffsetHorizontal*"></a>
  694. <h4 id="Terminal_Gui_TreeView_1_ScrollOffsetHorizontal" data-uid="Terminal.Gui.TreeView`1.ScrollOffsetHorizontal">ScrollOffsetHorizontal</h4>
  695. <div class="markdown level1 summary">
  696. The amount of tree view that has been scrolled to the right (horizontally)
  697. </div>
  698. <div class="markdown level1 conceptual"></div>
  699. <h5 class="decalaration">Declaration</h5>
  700. <div class="codewrapper">
  701. <pre><code class="lang-csharp hljs">public int ScrollOffsetHorizontal { get; set; }</code></pre>
  702. </div>
  703. <h5 class="propertyValue">Property Value</h5>
  704. <table class="table table-bordered table-striped table-condensed">
  705. <thead>
  706. <tr>
  707. <th>Type</th>
  708. <th>Description</th>
  709. </tr>
  710. </thead>
  711. <tbody>
  712. <tr>
  713. <td><span class="xref">System.Int32</span></td>
  714. <td></td>
  715. </tr>
  716. </tbody>
  717. </table>
  718. <h5 id="Terminal_Gui_TreeView_1_ScrollOffsetHorizontal_remarks">Remarks</h5>
  719. <div class="markdown level1 remarks">Setting a value of less than 0 will result in a offset of 0. To see changes
  720. in the UI call <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_SetNeedsDisplay">SetNeedsDisplay()</a></div>
  721. <a id="Terminal_Gui_TreeView_1_ScrollOffsetVertical_" data-uid="Terminal.Gui.TreeView`1.ScrollOffsetVertical*"></a>
  722. <h4 id="Terminal_Gui_TreeView_1_ScrollOffsetVertical" data-uid="Terminal.Gui.TreeView`1.ScrollOffsetVertical">ScrollOffsetVertical</h4>
  723. <div class="markdown level1 summary">
  724. The amount of tree view that has been scrolled off the top of the screen (by the user
  725. scrolling down)
  726. </div>
  727. <div class="markdown level1 conceptual"></div>
  728. <h5 class="decalaration">Declaration</h5>
  729. <div class="codewrapper">
  730. <pre><code class="lang-csharp hljs">public int ScrollOffsetVertical { get; set; }</code></pre>
  731. </div>
  732. <h5 class="propertyValue">Property Value</h5>
  733. <table class="table table-bordered table-striped table-condensed">
  734. <thead>
  735. <tr>
  736. <th>Type</th>
  737. <th>Description</th>
  738. </tr>
  739. </thead>
  740. <tbody>
  741. <tr>
  742. <td><span class="xref">System.Int32</span></td>
  743. <td></td>
  744. </tr>
  745. </tbody>
  746. </table>
  747. <h5 id="Terminal_Gui_TreeView_1_ScrollOffsetVertical_remarks">Remarks</h5>
  748. <div class="markdown level1 remarks">Setting a value of less than 0 will result in a offset of 0. To see changes
  749. in the UI call <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_SetNeedsDisplay">SetNeedsDisplay()</a></div>
  750. <a id="Terminal_Gui_TreeView_1_SelectedObject_" data-uid="Terminal.Gui.TreeView`1.SelectedObject*"></a>
  751. <h4 id="Terminal_Gui_TreeView_1_SelectedObject" data-uid="Terminal.Gui.TreeView`1.SelectedObject">SelectedObject</h4>
  752. <div class="markdown level1 summary">
  753. The currently selected object in the tree. When <a class="xref" href="Terminal.Gui.TreeView-1.html#Terminal_Gui_TreeView_1_MultiSelect">MultiSelect</a> is true this
  754. is the object at which the cursor is at
  755. </div>
  756. <div class="markdown level1 conceptual"></div>
  757. <h5 class="decalaration">Declaration</h5>
  758. <div class="codewrapper">
  759. <pre><code class="lang-csharp hljs">public T SelectedObject { get; set; }</code></pre>
  760. </div>
  761. <h5 class="propertyValue">Property Value</h5>
  762. <table class="table table-bordered table-striped table-condensed">
  763. <thead>
  764. <tr>
  765. <th>Type</th>
  766. <th>Description</th>
  767. </tr>
  768. </thead>
  769. <tbody>
  770. <tr>
  771. <td><span class="xref">T</span></td>
  772. <td></td>
  773. </tr>
  774. </tbody>
  775. </table>
  776. <a id="Terminal_Gui_TreeView_1_Style_" data-uid="Terminal.Gui.TreeView`1.Style*"></a>
  777. <h4 id="Terminal_Gui_TreeView_1_Style" data-uid="Terminal.Gui.TreeView`1.Style">Style</h4>
  778. <div class="markdown level1 summary">
  779. Contains options for changing how the tree is rendered
  780. </div>
  781. <div class="markdown level1 conceptual"></div>
  782. <h5 class="decalaration">Declaration</h5>
  783. <div class="codewrapper">
  784. <pre><code class="lang-csharp hljs">public TreeStyle Style { get; set; }</code></pre>
  785. </div>
  786. <h5 class="propertyValue">Property Value</h5>
  787. <table class="table table-bordered table-striped table-condensed">
  788. <thead>
  789. <tr>
  790. <th>Type</th>
  791. <th>Description</th>
  792. </tr>
  793. </thead>
  794. <tbody>
  795. <tr>
  796. <td><a class="xref" href="Terminal.Gui.Trees.TreeStyle.html">TreeStyle</a></td>
  797. <td></td>
  798. </tr>
  799. </tbody>
  800. </table>
  801. <a id="Terminal_Gui_TreeView_1_TreeBuilder_" data-uid="Terminal.Gui.TreeView`1.TreeBuilder*"></a>
  802. <h4 id="Terminal_Gui_TreeView_1_TreeBuilder" data-uid="Terminal.Gui.TreeView`1.TreeBuilder">TreeBuilder</h4>
  803. <div class="markdown level1 summary">
  804. Determines how sub branches of the tree are dynamically built at runtime as the user
  805. expands root nodes
  806. </div>
  807. <div class="markdown level1 conceptual"></div>
  808. <h5 class="decalaration">Declaration</h5>
  809. <div class="codewrapper">
  810. <pre><code class="lang-csharp hljs">public ITreeBuilder&lt;T&gt; TreeBuilder { get; set; }</code></pre>
  811. </div>
  812. <h5 class="propertyValue">Property Value</h5>
  813. <table class="table table-bordered table-striped table-condensed">
  814. <thead>
  815. <tr>
  816. <th>Type</th>
  817. <th>Description</th>
  818. </tr>
  819. </thead>
  820. <tbody>
  821. <tr>
  822. <td><a class="xref" href="Terminal.Gui.Trees.ITreeBuilder-1.html">ITreeBuilder</a>&lt;T&gt;</td>
  823. <td></td>
  824. </tr>
  825. </tbody>
  826. </table>
  827. <h3 id="methods">Methods
  828. </h3>
  829. <a id="Terminal_Gui_TreeView_1_AddObject_" data-uid="Terminal.Gui.TreeView`1.AddObject*"></a>
  830. <h4 id="Terminal_Gui_TreeView_1_AddObject__0_" data-uid="Terminal.Gui.TreeView`1.AddObject(`0)">AddObject(T)</h4>
  831. <div class="markdown level1 summary">
  832. Adds a new root level object unless it is already a root of the tree
  833. </div>
  834. <div class="markdown level1 conceptual"></div>
  835. <h5 class="decalaration">Declaration</h5>
  836. <div class="codewrapper">
  837. <pre><code class="lang-csharp hljs">public void AddObject(T o)</code></pre>
  838. </div>
  839. <h5 class="parameters">Parameters</h5>
  840. <table class="table table-bordered table-striped table-condensed">
  841. <thead>
  842. <tr>
  843. <th>Type</th>
  844. <th>Name</th>
  845. <th>Description</th>
  846. </tr>
  847. </thead>
  848. <tbody>
  849. <tr>
  850. <td><span class="xref">T</span></td>
  851. <td><span class="parametername">o</span></td>
  852. <td></td>
  853. </tr>
  854. </tbody>
  855. </table>
  856. <a id="Terminal_Gui_TreeView_1_AddObjects_" data-uid="Terminal.Gui.TreeView`1.AddObjects*"></a>
  857. <h4 id="Terminal_Gui_TreeView_1_AddObjects_System_Collections_Generic_IEnumerable__0__" data-uid="Terminal.Gui.TreeView`1.AddObjects(System.Collections.Generic.IEnumerable{`0})">AddObjects(IEnumerable&lt;T&gt;)</h4>
  858. <div class="markdown level1 summary">
  859. Adds many new root level objects. Objects that are already root objects are ignored
  860. </div>
  861. <div class="markdown level1 conceptual"></div>
  862. <h5 class="decalaration">Declaration</h5>
  863. <div class="codewrapper">
  864. <pre><code class="lang-csharp hljs">public void AddObjects(IEnumerable&lt;T&gt; collection)</code></pre>
  865. </div>
  866. <h5 class="parameters">Parameters</h5>
  867. <table class="table table-bordered table-striped table-condensed">
  868. <thead>
  869. <tr>
  870. <th>Type</th>
  871. <th>Name</th>
  872. <th>Description</th>
  873. </tr>
  874. </thead>
  875. <tbody>
  876. <tr>
  877. <td><span class="xref">System.Collections.Generic.IEnumerable</span>&lt;T&gt;</td>
  878. <td><span class="parametername">collection</span></td>
  879. <td>Objects to add as new root level objects</td>
  880. </tr>
  881. </tbody>
  882. </table>
  883. <a id="Terminal_Gui_TreeView_1_AdjustSelection_" data-uid="Terminal.Gui.TreeView`1.AdjustSelection*"></a>
  884. <h4 id="Terminal_Gui_TreeView_1_AdjustSelection_System_Int32_System_Boolean_" data-uid="Terminal.Gui.TreeView`1.AdjustSelection(System.Int32,System.Boolean)">AdjustSelection(Int32, Boolean)</h4>
  885. <div class="markdown level1 summary">
  886. The number of screen lines to move the currently selected object by. Supports negative
  887. <code data-dev-comment-type="paramref" class="paramref">offset</code>. Each branch occupies 1 line on screen
  888. </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 void AdjustSelection(int offset, bool expandSelection = false)</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><span class="xref">System.Int32</span></td>
  906. <td><span class="parametername">offset</span></td>
  907. <td>Positive to move the selection down the screen, negative to move it up</td>
  908. </tr>
  909. <tr>
  910. <td><span class="xref">System.Boolean</span></td>
  911. <td><span class="parametername">expandSelection</span></td>
  912. <td>True to expand the selection (assuming
  913. <a class="xref" href="Terminal.Gui.TreeView-1.html#Terminal_Gui_TreeView_1_MultiSelect">MultiSelect</a> is enabled). False to replace</td>
  914. </tr>
  915. </tbody>
  916. </table>
  917. <h5 id="Terminal_Gui_TreeView_1_AdjustSelection_System_Int32_System_Boolean__remarks">Remarks</h5>
  918. <div class="markdown level1 remarks">If nothing is currently selected or the selected object is no longer in the tree
  919. then the first object in the tree is selected instead</div>
  920. <a id="Terminal_Gui_TreeView_1_AdjustSelectionToBranchEnd_" data-uid="Terminal.Gui.TreeView`1.AdjustSelectionToBranchEnd*"></a>
  921. <h4 id="Terminal_Gui_TreeView_1_AdjustSelectionToBranchEnd" data-uid="Terminal.Gui.TreeView`1.AdjustSelectionToBranchEnd">AdjustSelectionToBranchEnd()</h4>
  922. <div class="markdown level1 summary">
  923. Moves the selection to the last child in the currently selected level
  924. </div>
  925. <div class="markdown level1 conceptual"></div>
  926. <h5 class="decalaration">Declaration</h5>
  927. <div class="codewrapper">
  928. <pre><code class="lang-csharp hljs">public void AdjustSelectionToBranchEnd()</code></pre>
  929. </div>
  930. <a id="Terminal_Gui_TreeView_1_AdjustSelectionToBranchStart_" data-uid="Terminal.Gui.TreeView`1.AdjustSelectionToBranchStart*"></a>
  931. <h4 id="Terminal_Gui_TreeView_1_AdjustSelectionToBranchStart" data-uid="Terminal.Gui.TreeView`1.AdjustSelectionToBranchStart">AdjustSelectionToBranchStart()</h4>
  932. <div class="markdown level1 summary">
  933. Moves the selection to the first child in the currently selected level
  934. </div>
  935. <div class="markdown level1 conceptual"></div>
  936. <h5 class="decalaration">Declaration</h5>
  937. <div class="codewrapper">
  938. <pre><code class="lang-csharp hljs">public void AdjustSelectionToBranchStart()</code></pre>
  939. </div>
  940. <a id="Terminal_Gui_TreeView_1_CanExpand_" data-uid="Terminal.Gui.TreeView`1.CanExpand*"></a>
  941. <h4 id="Terminal_Gui_TreeView_1_CanExpand__0_" data-uid="Terminal.Gui.TreeView`1.CanExpand(`0)">CanExpand(T)</h4>
  942. <div class="markdown level1 summary">
  943. Returns true if the given object <code data-dev-comment-type="paramref" class="paramref">o</code> is exposed in the tree and can be
  944. expanded otherwise false
  945. </div>
  946. <div class="markdown level1 conceptual"></div>
  947. <h5 class="decalaration">Declaration</h5>
  948. <div class="codewrapper">
  949. <pre><code class="lang-csharp hljs">public bool CanExpand(T o)</code></pre>
  950. </div>
  951. <h5 class="parameters">Parameters</h5>
  952. <table class="table table-bordered table-striped table-condensed">
  953. <thead>
  954. <tr>
  955. <th>Type</th>
  956. <th>Name</th>
  957. <th>Description</th>
  958. </tr>
  959. </thead>
  960. <tbody>
  961. <tr>
  962. <td><span class="xref">T</span></td>
  963. <td><span class="parametername">o</span></td>
  964. <td></td>
  965. </tr>
  966. </tbody>
  967. </table>
  968. <h5 class="returns">Returns</h5>
  969. <table class="table table-bordered table-striped table-condensed">
  970. <thead>
  971. <tr>
  972. <th>Type</th>
  973. <th>Description</th>
  974. </tr>
  975. </thead>
  976. <tbody>
  977. <tr>
  978. <td><span class="xref">System.Boolean</span></td>
  979. <td></td>
  980. </tr>
  981. </tbody>
  982. </table>
  983. <a id="Terminal_Gui_TreeView_1_ClearObjects_" data-uid="Terminal.Gui.TreeView`1.ClearObjects*"></a>
  984. <h4 id="Terminal_Gui_TreeView_1_ClearObjects" data-uid="Terminal.Gui.TreeView`1.ClearObjects">ClearObjects()</h4>
  985. <div class="markdown level1 summary">
  986. Removes all objects from the tree and clears <a class="xref" href="Terminal.Gui.TreeView-1.html#Terminal_Gui_TreeView_1_SelectedObject">SelectedObject</a>
  987. </div>
  988. <div class="markdown level1 conceptual"></div>
  989. <h5 class="decalaration">Declaration</h5>
  990. <div class="codewrapper">
  991. <pre><code class="lang-csharp hljs">public void ClearObjects()</code></pre>
  992. </div>
  993. <a id="Terminal_Gui_TreeView_1_Collapse_" data-uid="Terminal.Gui.TreeView`1.Collapse*"></a>
  994. <h4 id="Terminal_Gui_TreeView_1_Collapse__0_" data-uid="Terminal.Gui.TreeView`1.Collapse(`0)">Collapse(T)</h4>
  995. <div class="markdown level1 summary">
  996. Collapses the supplied object if it is currently expanded
  997. </div>
  998. <div class="markdown level1 conceptual"></div>
  999. <h5 class="decalaration">Declaration</h5>
  1000. <div class="codewrapper">
  1001. <pre><code class="lang-csharp hljs">public void Collapse(T toCollapse)</code></pre>
  1002. </div>
  1003. <h5 class="parameters">Parameters</h5>
  1004. <table class="table table-bordered table-striped table-condensed">
  1005. <thead>
  1006. <tr>
  1007. <th>Type</th>
  1008. <th>Name</th>
  1009. <th>Description</th>
  1010. </tr>
  1011. </thead>
  1012. <tbody>
  1013. <tr>
  1014. <td><span class="xref">T</span></td>
  1015. <td><span class="parametername">toCollapse</span></td>
  1016. <td>The object to collapse</td>
  1017. </tr>
  1018. </tbody>
  1019. </table>
  1020. <a id="Terminal_Gui_TreeView_1_CollapseAll_" data-uid="Terminal.Gui.TreeView`1.CollapseAll*"></a>
  1021. <h4 id="Terminal_Gui_TreeView_1_CollapseAll" data-uid="Terminal.Gui.TreeView`1.CollapseAll">CollapseAll()</h4>
  1022. <div class="markdown level1 summary">
  1023. Collapses all root nodes in the tree
  1024. </div>
  1025. <div class="markdown level1 conceptual"></div>
  1026. <h5 class="decalaration">Declaration</h5>
  1027. <div class="codewrapper">
  1028. <pre><code class="lang-csharp hljs">public void CollapseAll()</code></pre>
  1029. </div>
  1030. <a id="Terminal_Gui_TreeView_1_CollapseAll_" data-uid="Terminal.Gui.TreeView`1.CollapseAll*"></a>
  1031. <h4 id="Terminal_Gui_TreeView_1_CollapseAll__0_" data-uid="Terminal.Gui.TreeView`1.CollapseAll(`0)">CollapseAll(T)</h4>
  1032. <div class="markdown level1 summary">
  1033. Collapses the supplied object if it is currently expanded. Also collapses all children
  1034. branches (this will only become apparent when/if the user expands it again)
  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 void CollapseAll(T toCollapse)</code></pre>
  1040. </div>
  1041. <h5 class="parameters">Parameters</h5>
  1042. <table class="table table-bordered table-striped table-condensed">
  1043. <thead>
  1044. <tr>
  1045. <th>Type</th>
  1046. <th>Name</th>
  1047. <th>Description</th>
  1048. </tr>
  1049. </thead>
  1050. <tbody>
  1051. <tr>
  1052. <td><span class="xref">T</span></td>
  1053. <td><span class="parametername">toCollapse</span></td>
  1054. <td>The object to collapse</td>
  1055. </tr>
  1056. </tbody>
  1057. </table>
  1058. <a id="Terminal_Gui_TreeView_1_CollapseImpl_" data-uid="Terminal.Gui.TreeView`1.CollapseImpl*"></a>
  1059. <h4 id="Terminal_Gui_TreeView_1_CollapseImpl__0_System_Boolean_" data-uid="Terminal.Gui.TreeView`1.CollapseImpl(`0,System.Boolean)">CollapseImpl(T, Boolean)</h4>
  1060. <div class="markdown level1 summary">
  1061. Implementation of <a class="xref" href="Terminal.Gui.TreeView-1.html#Terminal_Gui_TreeView_1_Collapse__0_">Collapse(T)</a> and <a class="xref" href="Terminal.Gui.TreeView-1.html#Terminal_Gui_TreeView_1_CollapseAll__0_">CollapseAll(T)</a>. Performs
  1062. operation and updates selection if disapeared
  1063. </div>
  1064. <div class="markdown level1 conceptual"></div>
  1065. <h5 class="decalaration">Declaration</h5>
  1066. <div class="codewrapper">
  1067. <pre><code class="lang-csharp hljs">protected void CollapseImpl(T toCollapse, bool all)</code></pre>
  1068. </div>
  1069. <h5 class="parameters">Parameters</h5>
  1070. <table class="table table-bordered table-striped table-condensed">
  1071. <thead>
  1072. <tr>
  1073. <th>Type</th>
  1074. <th>Name</th>
  1075. <th>Description</th>
  1076. </tr>
  1077. </thead>
  1078. <tbody>
  1079. <tr>
  1080. <td><span class="xref">T</span></td>
  1081. <td><span class="parametername">toCollapse</span></td>
  1082. <td></td>
  1083. </tr>
  1084. <tr>
  1085. <td><span class="xref">System.Boolean</span></td>
  1086. <td><span class="parametername">all</span></td>
  1087. <td></td>
  1088. </tr>
  1089. </tbody>
  1090. </table>
  1091. <a id="Terminal_Gui_TreeView_1_CursorLeft_" data-uid="Terminal.Gui.TreeView`1.CursorLeft*"></a>
  1092. <h4 id="Terminal_Gui_TreeView_1_CursorLeft_System_Boolean_" data-uid="Terminal.Gui.TreeView`1.CursorLeft(System.Boolean)">CursorLeft(Boolean)</h4>
  1093. <div class="markdown level1 summary">
  1094. Determines systems behaviour when the left arrow key is pressed. Default behaviour is
  1095. to collapse the current tree node if possible otherwise changes selection to current
  1096. branches parent
  1097. </div>
  1098. <div class="markdown level1 conceptual"></div>
  1099. <h5 class="decalaration">Declaration</h5>
  1100. <div class="codewrapper">
  1101. <pre><code class="lang-csharp hljs">protected virtual void CursorLeft(bool ctrl)</code></pre>
  1102. </div>
  1103. <h5 class="parameters">Parameters</h5>
  1104. <table class="table table-bordered table-striped table-condensed">
  1105. <thead>
  1106. <tr>
  1107. <th>Type</th>
  1108. <th>Name</th>
  1109. <th>Description</th>
  1110. </tr>
  1111. </thead>
  1112. <tbody>
  1113. <tr>
  1114. <td><span class="xref">System.Boolean</span></td>
  1115. <td><span class="parametername">ctrl</span></td>
  1116. <td></td>
  1117. </tr>
  1118. </tbody>
  1119. </table>
  1120. <a id="Terminal_Gui_TreeView_1_EnsureVisible_" data-uid="Terminal.Gui.TreeView`1.EnsureVisible*"></a>
  1121. <h4 id="Terminal_Gui_TreeView_1_EnsureVisible__0_" data-uid="Terminal.Gui.TreeView`1.EnsureVisible(`0)">EnsureVisible(T)</h4>
  1122. <div class="markdown level1 summary">
  1123. Adjusts the <a class="xref" href="Terminal.Gui.TreeView-1.html#Terminal_Gui_TreeView_1_ScrollOffsetVertical">ScrollOffsetVertical</a> to ensure the given
  1124. <code data-dev-comment-type="paramref" class="paramref">model</code> is visible. Has no effect if already visible
  1125. </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 void EnsureVisible(T model)</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><span class="xref">T</span></td>
  1143. <td><span class="parametername">model</span></td>
  1144. <td></td>
  1145. </tr>
  1146. </tbody>
  1147. </table>
  1148. <a id="Terminal_Gui_TreeView_1_Expand_" data-uid="Terminal.Gui.TreeView`1.Expand*"></a>
  1149. <h4 id="Terminal_Gui_TreeView_1_Expand__0_" data-uid="Terminal.Gui.TreeView`1.Expand(`0)">Expand(T)</h4>
  1150. <div class="markdown level1 summary">
  1151. Expands the supplied object if it is contained in the tree (either as a root object or
  1152. as an exposed branch object)
  1153. </div>
  1154. <div class="markdown level1 conceptual"></div>
  1155. <h5 class="decalaration">Declaration</h5>
  1156. <div class="codewrapper">
  1157. <pre><code class="lang-csharp hljs">public void Expand(T toExpand)</code></pre>
  1158. </div>
  1159. <h5 class="parameters">Parameters</h5>
  1160. <table class="table table-bordered table-striped table-condensed">
  1161. <thead>
  1162. <tr>
  1163. <th>Type</th>
  1164. <th>Name</th>
  1165. <th>Description</th>
  1166. </tr>
  1167. </thead>
  1168. <tbody>
  1169. <tr>
  1170. <td><span class="xref">T</span></td>
  1171. <td><span class="parametername">toExpand</span></td>
  1172. <td>The object to expand</td>
  1173. </tr>
  1174. </tbody>
  1175. </table>
  1176. <a id="Terminal_Gui_TreeView_1_ExpandAll_" data-uid="Terminal.Gui.TreeView`1.ExpandAll*"></a>
  1177. <h4 id="Terminal_Gui_TreeView_1_ExpandAll" data-uid="Terminal.Gui.TreeView`1.ExpandAll">ExpandAll()</h4>
  1178. <div class="markdown level1 summary">
  1179. Fully expands all nodes in the tree, if the tree is very big and built dynamically this
  1180. may take a while (e.g. for file system)
  1181. </div>
  1182. <div class="markdown level1 conceptual"></div>
  1183. <h5 class="decalaration">Declaration</h5>
  1184. <div class="codewrapper">
  1185. <pre><code class="lang-csharp hljs">public void ExpandAll()</code></pre>
  1186. </div>
  1187. <a id="Terminal_Gui_TreeView_1_ExpandAll_" data-uid="Terminal.Gui.TreeView`1.ExpandAll*"></a>
  1188. <h4 id="Terminal_Gui_TreeView_1_ExpandAll__0_" data-uid="Terminal.Gui.TreeView`1.ExpandAll(`0)">ExpandAll(T)</h4>
  1189. <div class="markdown level1 summary">
  1190. Expands the supplied object and all child objects
  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 void ExpandAll(T toExpand)</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><span class="xref">T</span></td>
  1209. <td><span class="parametername">toExpand</span></td>
  1210. <td>The object to expand</td>
  1211. </tr>
  1212. </tbody>
  1213. </table>
  1214. <a id="Terminal_Gui_TreeView_1_GetAllSelectedObjects_" data-uid="Terminal.Gui.TreeView`1.GetAllSelectedObjects*"></a>
  1215. <h4 id="Terminal_Gui_TreeView_1_GetAllSelectedObjects" data-uid="Terminal.Gui.TreeView`1.GetAllSelectedObjects">GetAllSelectedObjects()</h4>
  1216. <div class="markdown level1 summary">
  1217. Returns <a class="xref" href="Terminal.Gui.TreeView-1.html#Terminal_Gui_TreeView_1_SelectedObject">SelectedObject</a> (if not null) and all multi selected objects if
  1218. <a class="xref" href="Terminal.Gui.TreeView-1.html#Terminal_Gui_TreeView_1_MultiSelect">MultiSelect</a> is true
  1219. </div>
  1220. <div class="markdown level1 conceptual"></div>
  1221. <h5 class="decalaration">Declaration</h5>
  1222. <div class="codewrapper">
  1223. <pre><code class="lang-csharp hljs">public IEnumerable&lt;T&gt; GetAllSelectedObjects()</code></pre>
  1224. </div>
  1225. <h5 class="returns">Returns</h5>
  1226. <table class="table table-bordered table-striped table-condensed">
  1227. <thead>
  1228. <tr>
  1229. <th>Type</th>
  1230. <th>Description</th>
  1231. </tr>
  1232. </thead>
  1233. <tbody>
  1234. <tr>
  1235. <td><span class="xref">System.Collections.Generic.IEnumerable</span>&lt;T&gt;</td>
  1236. <td></td>
  1237. </tr>
  1238. </tbody>
  1239. </table>
  1240. <a id="Terminal_Gui_TreeView_1_GetChildren_" data-uid="Terminal.Gui.TreeView`1.GetChildren*"></a>
  1241. <h4 id="Terminal_Gui_TreeView_1_GetChildren__0_" data-uid="Terminal.Gui.TreeView`1.GetChildren(`0)">GetChildren(T)</h4>
  1242. <div class="markdown level1 summary">
  1243. Returns the currently expanded children of the passed object. Returns an empty
  1244. collection if the branch is not exposed or not expanded
  1245. </div>
  1246. <div class="markdown level1 conceptual"></div>
  1247. <h5 class="decalaration">Declaration</h5>
  1248. <div class="codewrapper">
  1249. <pre><code class="lang-csharp hljs">public IEnumerable&lt;T&gt; GetChildren(T o)</code></pre>
  1250. </div>
  1251. <h5 class="parameters">Parameters</h5>
  1252. <table class="table table-bordered table-striped table-condensed">
  1253. <thead>
  1254. <tr>
  1255. <th>Type</th>
  1256. <th>Name</th>
  1257. <th>Description</th>
  1258. </tr>
  1259. </thead>
  1260. <tbody>
  1261. <tr>
  1262. <td><span class="xref">T</span></td>
  1263. <td><span class="parametername">o</span></td>
  1264. <td>An object in the tree</td>
  1265. </tr>
  1266. </tbody>
  1267. </table>
  1268. <h5 class="returns">Returns</h5>
  1269. <table class="table table-bordered table-striped table-condensed">
  1270. <thead>
  1271. <tr>
  1272. <th>Type</th>
  1273. <th>Description</th>
  1274. </tr>
  1275. </thead>
  1276. <tbody>
  1277. <tr>
  1278. <td><span class="xref">System.Collections.Generic.IEnumerable</span>&lt;T&gt;</td>
  1279. <td></td>
  1280. </tr>
  1281. </tbody>
  1282. </table>
  1283. <a id="Terminal_Gui_TreeView_1_GetContentWidth_" data-uid="Terminal.Gui.TreeView`1.GetContentWidth*"></a>
  1284. <h4 id="Terminal_Gui_TreeView_1_GetContentWidth_System_Boolean_" data-uid="Terminal.Gui.TreeView`1.GetContentWidth(System.Boolean)">GetContentWidth(Boolean)</h4>
  1285. <div class="markdown level1 summary">
  1286. Returns the maximum width line in the tree including prefix and expansion symbols
  1287. </div>
  1288. <div class="markdown level1 conceptual"></div>
  1289. <h5 class="decalaration">Declaration</h5>
  1290. <div class="codewrapper">
  1291. <pre><code class="lang-csharp hljs">public int GetContentWidth(bool visible)</code></pre>
  1292. </div>
  1293. <h5 class="parameters">Parameters</h5>
  1294. <table class="table table-bordered table-striped table-condensed">
  1295. <thead>
  1296. <tr>
  1297. <th>Type</th>
  1298. <th>Name</th>
  1299. <th>Description</th>
  1300. </tr>
  1301. </thead>
  1302. <tbody>
  1303. <tr>
  1304. <td><span class="xref">System.Boolean</span></td>
  1305. <td><span class="parametername">visible</span></td>
  1306. <td>True to consider only rows currently visible (based on window
  1307. bounds and <a class="xref" href="Terminal.Gui.TreeView-1.html#Terminal_Gui_TreeView_1_ScrollOffsetVertical">ScrollOffsetVertical</a>. False to calculate the width of
  1308. every exposed branch in the tree</td>
  1309. </tr>
  1310. </tbody>
  1311. </table>
  1312. <h5 class="returns">Returns</h5>
  1313. <table class="table table-bordered table-striped table-condensed">
  1314. <thead>
  1315. <tr>
  1316. <th>Type</th>
  1317. <th>Description</th>
  1318. </tr>
  1319. </thead>
  1320. <tbody>
  1321. <tr>
  1322. <td><span class="xref">System.Int32</span></td>
  1323. <td></td>
  1324. </tr>
  1325. </tbody>
  1326. </table>
  1327. <a id="Terminal_Gui_TreeView_1_GetParent_" data-uid="Terminal.Gui.TreeView`1.GetParent*"></a>
  1328. <h4 id="Terminal_Gui_TreeView_1_GetParent__0_" data-uid="Terminal.Gui.TreeView`1.GetParent(`0)">GetParent(T)</h4>
  1329. <div class="markdown level1 summary">
  1330. Returns the parent object of <code data-dev-comment-type="paramref" class="paramref">o</code> in the tree. Returns null if
  1331. the object is not exposed in the tree
  1332. </div>
  1333. <div class="markdown level1 conceptual"></div>
  1334. <h5 class="decalaration">Declaration</h5>
  1335. <div class="codewrapper">
  1336. <pre><code class="lang-csharp hljs">public T GetParent(T o)</code></pre>
  1337. </div>
  1338. <h5 class="parameters">Parameters</h5>
  1339. <table class="table table-bordered table-striped table-condensed">
  1340. <thead>
  1341. <tr>
  1342. <th>Type</th>
  1343. <th>Name</th>
  1344. <th>Description</th>
  1345. </tr>
  1346. </thead>
  1347. <tbody>
  1348. <tr>
  1349. <td><span class="xref">T</span></td>
  1350. <td><span class="parametername">o</span></td>
  1351. <td>An object in the tree</td>
  1352. </tr>
  1353. </tbody>
  1354. </table>
  1355. <h5 class="returns">Returns</h5>
  1356. <table class="table table-bordered table-striped table-condensed">
  1357. <thead>
  1358. <tr>
  1359. <th>Type</th>
  1360. <th>Description</th>
  1361. </tr>
  1362. </thead>
  1363. <tbody>
  1364. <tr>
  1365. <td><span class="xref">T</span></td>
  1366. <td></td>
  1367. </tr>
  1368. </tbody>
  1369. </table>
  1370. <a id="Terminal_Gui_TreeView_1_GetScrollOffsetOf_" data-uid="Terminal.Gui.TreeView`1.GetScrollOffsetOf*"></a>
  1371. <h4 id="Terminal_Gui_TreeView_1_GetScrollOffsetOf__0_" data-uid="Terminal.Gui.TreeView`1.GetScrollOffsetOf(`0)">GetScrollOffsetOf(T)</h4>
  1372. <div class="markdown level1 summary">
  1373. Returns the index of the object <code data-dev-comment-type="paramref" class="paramref">o</code> if it is currently exposed (it&apos;s
  1374. parent(s) have been expanded). This can be used with <a class="xref" href="Terminal.Gui.TreeView-1.html#Terminal_Gui_TreeView_1_ScrollOffsetVertical">ScrollOffsetVertical</a>
  1375. and <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_SetNeedsDisplay">SetNeedsDisplay()</a> to scroll to a specific object
  1376. </div>
  1377. <div class="markdown level1 conceptual"></div>
  1378. <h5 class="decalaration">Declaration</h5>
  1379. <div class="codewrapper">
  1380. <pre><code class="lang-csharp hljs">public int GetScrollOffsetOf(T o)</code></pre>
  1381. </div>
  1382. <h5 class="parameters">Parameters</h5>
  1383. <table class="table table-bordered table-striped table-condensed">
  1384. <thead>
  1385. <tr>
  1386. <th>Type</th>
  1387. <th>Name</th>
  1388. <th>Description</th>
  1389. </tr>
  1390. </thead>
  1391. <tbody>
  1392. <tr>
  1393. <td><span class="xref">T</span></td>
  1394. <td><span class="parametername">o</span></td>
  1395. <td>An object that appears in your tree and is currently exposed</td>
  1396. </tr>
  1397. </tbody>
  1398. </table>
  1399. <h5 class="returns">Returns</h5>
  1400. <table class="table table-bordered table-striped table-condensed">
  1401. <thead>
  1402. <tr>
  1403. <th>Type</th>
  1404. <th>Description</th>
  1405. </tr>
  1406. </thead>
  1407. <tbody>
  1408. <tr>
  1409. <td><span class="xref">System.Int32</span></td>
  1410. <td>The index the object was found at or -1 if it is not currently revealed or
  1411. not in the tree at all</td>
  1412. </tr>
  1413. </tbody>
  1414. </table>
  1415. <h5 id="Terminal_Gui_TreeView_1_GetScrollOffsetOf__0__remarks">Remarks</h5>
  1416. <div class="markdown level1 remarks">Uses the Equals method and returns the first index at which the object is found
  1417. or -1 if it is not found</div>
  1418. <a id="Terminal_Gui_TreeView_1_GoTo_" data-uid="Terminal.Gui.TreeView`1.GoTo*"></a>
  1419. <h4 id="Terminal_Gui_TreeView_1_GoTo__0_" data-uid="Terminal.Gui.TreeView`1.GoTo(`0)">GoTo(T)</h4>
  1420. <div class="markdown level1 summary">
  1421. Changes the <a class="xref" href="Terminal.Gui.TreeView-1.html#Terminal_Gui_TreeView_1_SelectedObject">SelectedObject</a> to <code data-dev-comment-type="paramref" class="paramref">toSelect</code> and scrolls to ensure
  1422. it is visible. Has no effect if <code data-dev-comment-type="paramref" class="paramref">toSelect</code> is not exposed in the tree (e.g.
  1423. its parents are collapsed)
  1424. </div>
  1425. <div class="markdown level1 conceptual"></div>
  1426. <h5 class="decalaration">Declaration</h5>
  1427. <div class="codewrapper">
  1428. <pre><code class="lang-csharp hljs">public void GoTo(T toSelect)</code></pre>
  1429. </div>
  1430. <h5 class="parameters">Parameters</h5>
  1431. <table class="table table-bordered table-striped table-condensed">
  1432. <thead>
  1433. <tr>
  1434. <th>Type</th>
  1435. <th>Name</th>
  1436. <th>Description</th>
  1437. </tr>
  1438. </thead>
  1439. <tbody>
  1440. <tr>
  1441. <td><span class="xref">T</span></td>
  1442. <td><span class="parametername">toSelect</span></td>
  1443. <td></td>
  1444. </tr>
  1445. </tbody>
  1446. </table>
  1447. <a id="Terminal_Gui_TreeView_1_GoToEnd_" data-uid="Terminal.Gui.TreeView`1.GoToEnd*"></a>
  1448. <h4 id="Terminal_Gui_TreeView_1_GoToEnd" data-uid="Terminal.Gui.TreeView`1.GoToEnd">GoToEnd()</h4>
  1449. <div class="markdown level1 summary">
  1450. Changes the <a class="xref" href="Terminal.Gui.TreeView-1.html#Terminal_Gui_TreeView_1_SelectedObject">SelectedObject</a> to the last object in the tree and scrolls so
  1451. that it is visible
  1452. </div>
  1453. <div class="markdown level1 conceptual"></div>
  1454. <h5 class="decalaration">Declaration</h5>
  1455. <div class="codewrapper">
  1456. <pre><code class="lang-csharp hljs">public void GoToEnd()</code></pre>
  1457. </div>
  1458. <a id="Terminal_Gui_TreeView_1_GoToFirst_" data-uid="Terminal.Gui.TreeView`1.GoToFirst*"></a>
  1459. <h4 id="Terminal_Gui_TreeView_1_GoToFirst" data-uid="Terminal.Gui.TreeView`1.GoToFirst">GoToFirst()</h4>
  1460. <div class="markdown level1 summary">
  1461. Changes the <a class="xref" href="Terminal.Gui.TreeView-1.html#Terminal_Gui_TreeView_1_SelectedObject">SelectedObject</a> to the first root object and resets
  1462. the <a class="xref" href="Terminal.Gui.TreeView-1.html#Terminal_Gui_TreeView_1_ScrollOffsetVertical">ScrollOffsetVertical</a> to 0
  1463. </div>
  1464. <div class="markdown level1 conceptual"></div>
  1465. <h5 class="decalaration">Declaration</h5>
  1466. <div class="codewrapper">
  1467. <pre><code class="lang-csharp hljs">public void GoToFirst()</code></pre>
  1468. </div>
  1469. <a id="Terminal_Gui_TreeView_1_InvalidateLineMap_" data-uid="Terminal.Gui.TreeView`1.InvalidateLineMap*"></a>
  1470. <h4 id="Terminal_Gui_TreeView_1_InvalidateLineMap" data-uid="Terminal.Gui.TreeView`1.InvalidateLineMap">InvalidateLineMap()</h4>
  1471. <div class="markdown level1 summary">
  1472. Clears any cached results of <span class="xref">Terminal.Gui.TreeView`1.BuildLineMap</span>
  1473. </div>
  1474. <div class="markdown level1 conceptual"></div>
  1475. <h5 class="decalaration">Declaration</h5>
  1476. <div class="codewrapper">
  1477. <pre><code class="lang-csharp hljs">protected void InvalidateLineMap()</code></pre>
  1478. </div>
  1479. <a id="Terminal_Gui_TreeView_1_IsExpanded_" data-uid="Terminal.Gui.TreeView`1.IsExpanded*"></a>
  1480. <h4 id="Terminal_Gui_TreeView_1_IsExpanded__0_" data-uid="Terminal.Gui.TreeView`1.IsExpanded(`0)">IsExpanded(T)</h4>
  1481. <div class="markdown level1 summary">
  1482. Returns true if the given object <code data-dev-comment-type="paramref" class="paramref">o</code> is exposed in the tree and
  1483. expanded otherwise false
  1484. </div>
  1485. <div class="markdown level1 conceptual"></div>
  1486. <h5 class="decalaration">Declaration</h5>
  1487. <div class="codewrapper">
  1488. <pre><code class="lang-csharp hljs">public bool IsExpanded(T o)</code></pre>
  1489. </div>
  1490. <h5 class="parameters">Parameters</h5>
  1491. <table class="table table-bordered table-striped table-condensed">
  1492. <thead>
  1493. <tr>
  1494. <th>Type</th>
  1495. <th>Name</th>
  1496. <th>Description</th>
  1497. </tr>
  1498. </thead>
  1499. <tbody>
  1500. <tr>
  1501. <td><span class="xref">T</span></td>
  1502. <td><span class="parametername">o</span></td>
  1503. <td></td>
  1504. </tr>
  1505. </tbody>
  1506. </table>
  1507. <h5 class="returns">Returns</h5>
  1508. <table class="table table-bordered table-striped table-condensed">
  1509. <thead>
  1510. <tr>
  1511. <th>Type</th>
  1512. <th>Description</th>
  1513. </tr>
  1514. </thead>
  1515. <tbody>
  1516. <tr>
  1517. <td><span class="xref">System.Boolean</span></td>
  1518. <td></td>
  1519. </tr>
  1520. </tbody>
  1521. </table>
  1522. <a id="Terminal_Gui_TreeView_1_IsSelected_" data-uid="Terminal.Gui.TreeView`1.IsSelected*"></a>
  1523. <h4 id="Terminal_Gui_TreeView_1_IsSelected__0_" data-uid="Terminal.Gui.TreeView`1.IsSelected(`0)">IsSelected(T)</h4>
  1524. <div class="markdown level1 summary">
  1525. Returns true if the <code data-dev-comment-type="paramref" class="paramref">model</code> is either the
  1526. <a class="xref" href="Terminal.Gui.TreeView-1.html#Terminal_Gui_TreeView_1_SelectedObject">SelectedObject</a> or part of a <a class="xref" href="Terminal.Gui.TreeView-1.html#Terminal_Gui_TreeView_1_MultiSelect">MultiSelect</a>
  1527. </div>
  1528. <div class="markdown level1 conceptual"></div>
  1529. <h5 class="decalaration">Declaration</h5>
  1530. <div class="codewrapper">
  1531. <pre><code class="lang-csharp hljs">public bool IsSelected(T model)</code></pre>
  1532. </div>
  1533. <h5 class="parameters">Parameters</h5>
  1534. <table class="table table-bordered table-striped table-condensed">
  1535. <thead>
  1536. <tr>
  1537. <th>Type</th>
  1538. <th>Name</th>
  1539. <th>Description</th>
  1540. </tr>
  1541. </thead>
  1542. <tbody>
  1543. <tr>
  1544. <td><span class="xref">T</span></td>
  1545. <td><span class="parametername">model</span></td>
  1546. <td></td>
  1547. </tr>
  1548. </tbody>
  1549. </table>
  1550. <h5 class="returns">Returns</h5>
  1551. <table class="table table-bordered table-striped table-condensed">
  1552. <thead>
  1553. <tr>
  1554. <th>Type</th>
  1555. <th>Description</th>
  1556. </tr>
  1557. </thead>
  1558. <tbody>
  1559. <tr>
  1560. <td><span class="xref">System.Boolean</span></td>
  1561. <td></td>
  1562. </tr>
  1563. </tbody>
  1564. </table>
  1565. <a id="Terminal_Gui_TreeView_1_MouseEvent_" data-uid="Terminal.Gui.TreeView`1.MouseEvent*"></a>
  1566. <h4 id="Terminal_Gui_TreeView_1_MouseEvent_Terminal_Gui_MouseEvent_" data-uid="Terminal.Gui.TreeView`1.MouseEvent(Terminal.Gui.MouseEvent)">MouseEvent(MouseEvent)</h4>
  1567. <div class="markdown level1 summary"></div>
  1568. <div class="markdown level1 conceptual"></div>
  1569. <h5 class="decalaration">Declaration</h5>
  1570. <div class="codewrapper">
  1571. <pre><code class="lang-csharp hljs">public override bool MouseEvent(MouseEvent me)</code></pre>
  1572. </div>
  1573. <h5 class="parameters">Parameters</h5>
  1574. <table class="table table-bordered table-striped table-condensed">
  1575. <thead>
  1576. <tr>
  1577. <th>Type</th>
  1578. <th>Name</th>
  1579. <th>Description</th>
  1580. </tr>
  1581. </thead>
  1582. <tbody>
  1583. <tr>
  1584. <td><a class="xref" href="Terminal.Gui.MouseEvent.html">MouseEvent</a></td>
  1585. <td><span class="parametername">me</span></td>
  1586. <td></td>
  1587. </tr>
  1588. </tbody>
  1589. </table>
  1590. <h5 class="returns">Returns</h5>
  1591. <table class="table table-bordered table-striped table-condensed">
  1592. <thead>
  1593. <tr>
  1594. <th>Type</th>
  1595. <th>Description</th>
  1596. </tr>
  1597. </thead>
  1598. <tbody>
  1599. <tr>
  1600. <td><span class="xref">System.Boolean</span></td>
  1601. <td></td>
  1602. </tr>
  1603. </tbody>
  1604. </table>
  1605. <h5 class="overrides">Overrides</h5>
  1606. <div><a class="xref" href="Terminal.Gui.Responder.html#Terminal_Gui_Responder_MouseEvent_Terminal_Gui_MouseEvent_">Responder.MouseEvent(MouseEvent)</a></div>
  1607. <a id="Terminal_Gui_TreeView_1_OnObjectActivated_" data-uid="Terminal.Gui.TreeView`1.OnObjectActivated*"></a>
  1608. <h4 id="Terminal_Gui_TreeView_1_OnObjectActivated_Terminal_Gui_Trees_ObjectActivatedEventArgs__0__" data-uid="Terminal.Gui.TreeView`1.OnObjectActivated(Terminal.Gui.Trees.ObjectActivatedEventArgs{`0})">OnObjectActivated(ObjectActivatedEventArgs&lt;T&gt;)</h4>
  1609. <div class="markdown level1 summary">
  1610. Raises the <a class="xref" href="Terminal.Gui.TreeView-1.html#Terminal_Gui_TreeView_1_ObjectActivated">ObjectActivated</a> event
  1611. </div>
  1612. <div class="markdown level1 conceptual"></div>
  1613. <h5 class="decalaration">Declaration</h5>
  1614. <div class="codewrapper">
  1615. <pre><code class="lang-csharp hljs">protected virtual void OnObjectActivated(ObjectActivatedEventArgs&lt;T&gt; e)</code></pre>
  1616. </div>
  1617. <h5 class="parameters">Parameters</h5>
  1618. <table class="table table-bordered table-striped table-condensed">
  1619. <thead>
  1620. <tr>
  1621. <th>Type</th>
  1622. <th>Name</th>
  1623. <th>Description</th>
  1624. </tr>
  1625. </thead>
  1626. <tbody>
  1627. <tr>
  1628. <td><a class="xref" href="Terminal.Gui.Trees.ObjectActivatedEventArgs-1.html">ObjectActivatedEventArgs</a>&lt;T&gt;</td>
  1629. <td><span class="parametername">e</span></td>
  1630. <td></td>
  1631. </tr>
  1632. </tbody>
  1633. </table>
  1634. <a id="Terminal_Gui_TreeView_1_OnSelectionChanged_" data-uid="Terminal.Gui.TreeView`1.OnSelectionChanged*"></a>
  1635. <h4 id="Terminal_Gui_TreeView_1_OnSelectionChanged_Terminal_Gui_Trees_SelectionChangedEventArgs__0__" data-uid="Terminal.Gui.TreeView`1.OnSelectionChanged(Terminal.Gui.Trees.SelectionChangedEventArgs{`0})">OnSelectionChanged(SelectionChangedEventArgs&lt;T&gt;)</h4>
  1636. <div class="markdown level1 summary">
  1637. Raises the SelectionChanged event
  1638. </div>
  1639. <div class="markdown level1 conceptual"></div>
  1640. <h5 class="decalaration">Declaration</h5>
  1641. <div class="codewrapper">
  1642. <pre><code class="lang-csharp hljs">protected virtual void OnSelectionChanged(SelectionChangedEventArgs&lt;T&gt; e)</code></pre>
  1643. </div>
  1644. <h5 class="parameters">Parameters</h5>
  1645. <table class="table table-bordered table-striped table-condensed">
  1646. <thead>
  1647. <tr>
  1648. <th>Type</th>
  1649. <th>Name</th>
  1650. <th>Description</th>
  1651. </tr>
  1652. </thead>
  1653. <tbody>
  1654. <tr>
  1655. <td><a class="xref" href="Terminal.Gui.Trees.SelectionChangedEventArgs-1.html">SelectionChangedEventArgs</a>&lt;T&gt;</td>
  1656. <td><span class="parametername">e</span></td>
  1657. <td></td>
  1658. </tr>
  1659. </tbody>
  1660. </table>
  1661. <a id="Terminal_Gui_TreeView_1_PositionCursor_" data-uid="Terminal.Gui.TreeView`1.PositionCursor*"></a>
  1662. <h4 id="Terminal_Gui_TreeView_1_PositionCursor" data-uid="Terminal.Gui.TreeView`1.PositionCursor">PositionCursor()</h4>
  1663. <div class="markdown level1 summary">
  1664. Positions the cursor at the start of the selected objects line (if visible)
  1665. </div>
  1666. <div class="markdown level1 conceptual"></div>
  1667. <h5 class="decalaration">Declaration</h5>
  1668. <div class="codewrapper">
  1669. <pre><code class="lang-csharp hljs">public override void PositionCursor()</code></pre>
  1670. </div>
  1671. <h5 class="overrides">Overrides</h5>
  1672. <div><a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_PositionCursor">View.PositionCursor()</a></div>
  1673. <a id="Terminal_Gui_TreeView_1_ProcessKey_" data-uid="Terminal.Gui.TreeView`1.ProcessKey*"></a>
  1674. <h4 id="Terminal_Gui_TreeView_1_ProcessKey_Terminal_Gui_KeyEvent_" data-uid="Terminal.Gui.TreeView`1.ProcessKey(Terminal.Gui.KeyEvent)">ProcessKey(KeyEvent)</h4>
  1675. <div class="markdown level1 summary"></div>
  1676. <div class="markdown level1 conceptual"></div>
  1677. <h5 class="decalaration">Declaration</h5>
  1678. <div class="codewrapper">
  1679. <pre><code class="lang-csharp hljs">public override bool ProcessKey(KeyEvent keyEvent)</code></pre>
  1680. </div>
  1681. <h5 class="parameters">Parameters</h5>
  1682. <table class="table table-bordered table-striped table-condensed">
  1683. <thead>
  1684. <tr>
  1685. <th>Type</th>
  1686. <th>Name</th>
  1687. <th>Description</th>
  1688. </tr>
  1689. </thead>
  1690. <tbody>
  1691. <tr>
  1692. <td><a class="xref" href="Terminal.Gui.KeyEvent.html">KeyEvent</a></td>
  1693. <td><span class="parametername">keyEvent</span></td>
  1694. <td></td>
  1695. </tr>
  1696. </tbody>
  1697. </table>
  1698. <h5 class="returns">Returns</h5>
  1699. <table class="table table-bordered table-striped table-condensed">
  1700. <thead>
  1701. <tr>
  1702. <th>Type</th>
  1703. <th>Description</th>
  1704. </tr>
  1705. </thead>
  1706. <tbody>
  1707. <tr>
  1708. <td><span class="xref">System.Boolean</span></td>
  1709. <td></td>
  1710. </tr>
  1711. </tbody>
  1712. </table>
  1713. <h5 class="overrides">Overrides</h5>
  1714. <div><a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_ProcessKey_Terminal_Gui_KeyEvent_">View.ProcessKey(KeyEvent)</a></div>
  1715. <a id="Terminal_Gui_TreeView_1_RebuildTree_" data-uid="Terminal.Gui.TreeView`1.RebuildTree*"></a>
  1716. <h4 id="Terminal_Gui_TreeView_1_RebuildTree" data-uid="Terminal.Gui.TreeView`1.RebuildTree">RebuildTree()</h4>
  1717. <div class="markdown level1 summary">
  1718. Rebuilds the tree structure for all exposed objects starting with the root objects.
  1719. Call this method when you know there are changes to the tree but don&apos;t know which
  1720. objects have changed (otherwise use <a class="xref" href="Terminal.Gui.TreeView-1.html#Terminal_Gui_TreeView_1_RefreshObject__0_System_Boolean_">RefreshObject(T, Boolean)</a>)
  1721. </div>
  1722. <div class="markdown level1 conceptual"></div>
  1723. <h5 class="decalaration">Declaration</h5>
  1724. <div class="codewrapper">
  1725. <pre><code class="lang-csharp hljs">public void RebuildTree()</code></pre>
  1726. </div>
  1727. <a id="Terminal_Gui_TreeView_1_Redraw_" data-uid="Terminal.Gui.TreeView`1.Redraw*"></a>
  1728. <h4 id="Terminal_Gui_TreeView_1_Redraw_Terminal_Gui_Rect_" data-uid="Terminal.Gui.TreeView`1.Redraw(Terminal.Gui.Rect)">Redraw(Rect)</h4>
  1729. <div class="markdown level1 summary"></div>
  1730. <div class="markdown level1 conceptual"></div>
  1731. <h5 class="decalaration">Declaration</h5>
  1732. <div class="codewrapper">
  1733. <pre><code class="lang-csharp hljs">public override void Redraw(Rect bounds)</code></pre>
  1734. </div>
  1735. <h5 class="parameters">Parameters</h5>
  1736. <table class="table table-bordered table-striped table-condensed">
  1737. <thead>
  1738. <tr>
  1739. <th>Type</th>
  1740. <th>Name</th>
  1741. <th>Description</th>
  1742. </tr>
  1743. </thead>
  1744. <tbody>
  1745. <tr>
  1746. <td><a class="xref" href="Terminal.Gui.Rect.html">Rect</a></td>
  1747. <td><span class="parametername">bounds</span></td>
  1748. <td></td>
  1749. </tr>
  1750. </tbody>
  1751. </table>
  1752. <h5 class="overrides">Overrides</h5>
  1753. <div><a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Redraw_Terminal_Gui_Rect_">View.Redraw(Rect)</a></div>
  1754. <a id="Terminal_Gui_TreeView_1_RefreshObject_" data-uid="Terminal.Gui.TreeView`1.RefreshObject*"></a>
  1755. <h4 id="Terminal_Gui_TreeView_1_RefreshObject__0_System_Boolean_" data-uid="Terminal.Gui.TreeView`1.RefreshObject(`0,System.Boolean)">RefreshObject(T, Boolean)</h4>
  1756. <div class="markdown level1 summary">
  1757. Refreshes the state of the object <code data-dev-comment-type="paramref" class="paramref">o</code> in the tree. This will
  1758. recompute children, string representation etc
  1759. </div>
  1760. <div class="markdown level1 conceptual"></div>
  1761. <h5 class="decalaration">Declaration</h5>
  1762. <div class="codewrapper">
  1763. <pre><code class="lang-csharp hljs">public void RefreshObject(T o, bool startAtTop = false)</code></pre>
  1764. </div>
  1765. <h5 class="parameters">Parameters</h5>
  1766. <table class="table table-bordered table-striped table-condensed">
  1767. <thead>
  1768. <tr>
  1769. <th>Type</th>
  1770. <th>Name</th>
  1771. <th>Description</th>
  1772. </tr>
  1773. </thead>
  1774. <tbody>
  1775. <tr>
  1776. <td><span class="xref">T</span></td>
  1777. <td><span class="parametername">o</span></td>
  1778. <td></td>
  1779. </tr>
  1780. <tr>
  1781. <td><span class="xref">System.Boolean</span></td>
  1782. <td><span class="parametername">startAtTop</span></td>
  1783. <td>True to also refresh all ancestors of the objects branch
  1784. (starting with the root). False to refresh only the passed node</td>
  1785. </tr>
  1786. </tbody>
  1787. </table>
  1788. <h5 id="Terminal_Gui_TreeView_1_RefreshObject__0_System_Boolean__remarks">Remarks</h5>
  1789. <div class="markdown level1 remarks">This has no effect if the object is not exposed in the tree.</div>
  1790. <a id="Terminal_Gui_TreeView_1_Remove_" data-uid="Terminal.Gui.TreeView`1.Remove*"></a>
  1791. <h4 id="Terminal_Gui_TreeView_1_Remove__0_" data-uid="Terminal.Gui.TreeView`1.Remove(`0)">Remove(T)</h4>
  1792. <div class="markdown level1 summary">
  1793. Removes the given root object from the tree
  1794. </div>
  1795. <div class="markdown level1 conceptual"></div>
  1796. <h5 class="decalaration">Declaration</h5>
  1797. <div class="codewrapper">
  1798. <pre><code class="lang-csharp hljs">public void Remove(T o)</code></pre>
  1799. </div>
  1800. <h5 class="parameters">Parameters</h5>
  1801. <table class="table table-bordered table-striped table-condensed">
  1802. <thead>
  1803. <tr>
  1804. <th>Type</th>
  1805. <th>Name</th>
  1806. <th>Description</th>
  1807. </tr>
  1808. </thead>
  1809. <tbody>
  1810. <tr>
  1811. <td><span class="xref">T</span></td>
  1812. <td><span class="parametername">o</span></td>
  1813. <td></td>
  1814. </tr>
  1815. </tbody>
  1816. </table>
  1817. <h5 id="Terminal_Gui_TreeView_1_Remove__0__remarks">Remarks</h5>
  1818. <div class="markdown level1 remarks">If <code data-dev-comment-type="paramref" class="paramref">o</code> is the currently <a class="xref" href="Terminal.Gui.TreeView-1.html#Terminal_Gui_TreeView_1_SelectedObject">SelectedObject</a> then the
  1819. selection is cleared</div>
  1820. <a id="Terminal_Gui_TreeView_1_SelectAll_" data-uid="Terminal.Gui.TreeView`1.SelectAll*"></a>
  1821. <h4 id="Terminal_Gui_TreeView_1_SelectAll" data-uid="Terminal.Gui.TreeView`1.SelectAll">SelectAll()</h4>
  1822. <div class="markdown level1 summary">
  1823. Selects all objects in the tree when <a class="xref" href="Terminal.Gui.TreeView-1.html#Terminal_Gui_TreeView_1_MultiSelect">MultiSelect</a> is enabled otherwise
  1824. does nothing
  1825. </div>
  1826. <div class="markdown level1 conceptual"></div>
  1827. <h5 class="decalaration">Declaration</h5>
  1828. <div class="codewrapper">
  1829. <pre><code class="lang-csharp hljs">public void SelectAll()</code></pre>
  1830. </div>
  1831. <h3 id="events">Events
  1832. </h3>
  1833. <h4 id="Terminal_Gui_TreeView_1_ObjectActivated" data-uid="Terminal.Gui.TreeView`1.ObjectActivated">ObjectActivated</h4>
  1834. <div class="markdown level1 summary">
  1835. This event is raised when an object is activated e.g. by double clicking or
  1836. pressing <a class="xref" href="Terminal.Gui.TreeView-1.html#Terminal_Gui_TreeView_1_ObjectActivationKey">ObjectActivationKey</a>
  1837. </div>
  1838. <div class="markdown level1 conceptual"></div>
  1839. <h5 class="decalaration">Declaration</h5>
  1840. <div class="codewrapper">
  1841. <pre><code class="lang-csharp hljs">public event Action&lt;ObjectActivatedEventArgs&lt;T&gt;&gt; ObjectActivated</code></pre>
  1842. </div>
  1843. <h5 class="eventType">Event Type</h5>
  1844. <table class="table table-bordered table-striped table-condensed">
  1845. <thead>
  1846. <tr>
  1847. <th>Type</th>
  1848. <th>Description</th>
  1849. </tr>
  1850. </thead>
  1851. <tbody>
  1852. <tr>
  1853. <td><span class="xref">System.Action</span>&lt;<a class="xref" href="Terminal.Gui.Trees.ObjectActivatedEventArgs-1.html">ObjectActivatedEventArgs</a>&lt;T&gt;&gt;</td>
  1854. <td></td>
  1855. </tr>
  1856. </tbody>
  1857. </table>
  1858. <h4 id="Terminal_Gui_TreeView_1_SelectionChanged" data-uid="Terminal.Gui.TreeView`1.SelectionChanged">SelectionChanged</h4>
  1859. <div class="markdown level1 summary">
  1860. Called when the <a class="xref" href="Terminal.Gui.TreeView-1.html#Terminal_Gui_TreeView_1_SelectedObject">SelectedObject</a> changes
  1861. </div>
  1862. <div class="markdown level1 conceptual"></div>
  1863. <h5 class="decalaration">Declaration</h5>
  1864. <div class="codewrapper">
  1865. <pre><code class="lang-csharp hljs">public event EventHandler&lt;SelectionChangedEventArgs&lt;T&gt;&gt; SelectionChanged</code></pre>
  1866. </div>
  1867. <h5 class="eventType">Event Type</h5>
  1868. <table class="table table-bordered table-striped table-condensed">
  1869. <thead>
  1870. <tr>
  1871. <th>Type</th>
  1872. <th>Description</th>
  1873. </tr>
  1874. </thead>
  1875. <tbody>
  1876. <tr>
  1877. <td><span class="xref">System.EventHandler</span>&lt;<a class="xref" href="Terminal.Gui.Trees.SelectionChangedEventArgs-1.html">SelectionChangedEventArgs</a>&lt;T&gt;&gt;</td>
  1878. <td></td>
  1879. </tr>
  1880. </tbody>
  1881. </table>
  1882. <h3 id="implements">Implements</h3>
  1883. <div>
  1884. <span class="xref">System.IDisposable</span>
  1885. </div>
  1886. <div>
  1887. <span class="xref">System.ComponentModel.ISupportInitializeNotification</span>
  1888. </div>
  1889. <div>
  1890. <span class="xref">System.ComponentModel.ISupportInitialize</span>
  1891. </div>
  1892. <div>
  1893. <a class="xref" href="Terminal.Gui.ITreeView.html">ITreeView</a>
  1894. </div>
  1895. </article>
  1896. </div>
  1897. <div class="hidden-sm col-md-2" role="complementary">
  1898. <div class="sideaffix">
  1899. <div class="contribution">
  1900. <ul class="nav">
  1901. </ul>
  1902. </div>
  1903. <nav class="bs-docs-sidebar hidden-print hidden-xs hidden-sm affix" id="affix">
  1904. <h5>In This Article</h5>
  1905. <div></div>
  1906. </nav>
  1907. </div>
  1908. </div>
  1909. </div>
  1910. </div>
  1911. <footer>
  1912. <div class="grad-bottom"></div>
  1913. <div class="footer">
  1914. <div class="container">
  1915. <span class="pull-right">
  1916. <a href="#top">Back to top</a>
  1917. </span>
  1918. <span>Generated by <strong>DocFX</strong></span>
  1919. </div>
  1920. </div>
  1921. </footer>
  1922. </div>
  1923. <script type="text/javascript" src="../../styles/docfx.vendor.js"></script>
  1924. <script type="text/javascript" src="../../styles/docfx.js"></script>
  1925. <script type="text/javascript" src="../../styles/main.js"></script>
  1926. </body>
  1927. </html>