Terminal.Gui.TreeView-1.html 79 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039
  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.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_IsInitialized">View.IsInitialized</a>
  352. </div>
  353. <div>
  354. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_ToString">View.ToString()</a>
  355. </div>
  356. <div>
  357. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_OnMouseEnter_Terminal_Gui_MouseEvent_">View.OnMouseEnter(MouseEvent)</a>
  358. </div>
  359. <div>
  360. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_OnMouseLeave_Terminal_Gui_MouseEvent_">View.OnMouseLeave(MouseEvent)</a>
  361. </div>
  362. <div>
  363. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_OnMouseEvent_Terminal_Gui_MouseEvent_">View.OnMouseEvent(MouseEvent)</a>
  364. </div>
  365. <div>
  366. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_OnMouseClick_Terminal_Gui_View_MouseEventArgs_">View.OnMouseClick(View.MouseEventArgs)</a>
  367. </div>
  368. <div>
  369. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Dispose_System_Boolean_">View.Dispose(Boolean)</a>
  370. </div>
  371. <div>
  372. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_BeginInit">View.BeginInit()</a>
  373. </div>
  374. <div>
  375. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_EndInit">View.EndInit()</a>
  376. </div>
  377. <div>
  378. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Visible">View.Visible</a>
  379. </div>
  380. <div>
  381. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_SetWidth_System_Int32_System_Int32__">View.SetWidth(Int32, Int32)</a>
  382. </div>
  383. <div>
  384. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_SetHeight_System_Int32_System_Int32__">View.SetHeight(Int32, Int32)</a>
  385. </div>
  386. <div>
  387. <a class="xref" href="Terminal.Gui.Responder.html#Terminal_Gui_Responder_Dispose">Responder.Dispose()</a>
  388. </div>
  389. <div>
  390. <span class="xref">System.Object.Equals(System.Object)</span>
  391. </div>
  392. <div>
  393. <span class="xref">System.Object.Equals(System.Object, System.Object)</span>
  394. </div>
  395. <div>
  396. <span class="xref">System.Object.GetHashCode()</span>
  397. </div>
  398. <div>
  399. <span class="xref">System.Object.GetType()</span>
  400. </div>
  401. <div>
  402. <span class="xref">System.Object.MemberwiseClone()</span>
  403. </div>
  404. <div>
  405. <span class="xref">System.Object.ReferenceEquals(System.Object, System.Object)</span>
  406. </div>
  407. </div>
  408. <h6><strong>Namespace</strong>: <a class="xref" href="Terminal.Gui.html">Terminal.Gui</a></h6>
  409. <h6><strong>Assembly</strong>: Terminal.Gui.dll</h6>
  410. <h5 id="Terminal_Gui_TreeView_1_syntax">Syntax</h5>
  411. <div class="codewrapper">
  412. <pre><code class="lang-csharp hljs">public class TreeView&lt;T&gt; : View, IDisposable, ISupportInitializeNotification, ISupportInitialize, ITreeView where T : class</code></pre>
  413. </div>
  414. <h5 class="typeParameters">Type Parameters</h5>
  415. <table class="table table-bordered table-striped table-condensed">
  416. <thead>
  417. <tr>
  418. <th>Name</th>
  419. <th>Description</th>
  420. </tr>
  421. </thead>
  422. <tbody>
  423. <tr>
  424. <td><span class="parametername">T</span></td>
  425. <td></td>
  426. </tr>
  427. </tbody>
  428. </table>
  429. <h3 id="constructors">Constructors
  430. </h3>
  431. <a id="Terminal_Gui_TreeView_1__ctor_" data-uid="Terminal.Gui.TreeView`1.#ctor*"></a>
  432. <h4 id="Terminal_Gui_TreeView_1__ctor" data-uid="Terminal.Gui.TreeView`1.#ctor">TreeView()</h4>
  433. <div class="markdown level1 summary">
  434. Creates a new tree view with absolute positioning.
  435. 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.
  436. Children will not be rendered until you set <a class="xref" href="Terminal.Gui.TreeView-1.html#Terminal_Gui_TreeView_1_TreeBuilder">TreeBuilder</a>
  437. </div>
  438. <div class="markdown level1 conceptual"></div>
  439. <h5 class="decalaration">Declaration</h5>
  440. <div class="codewrapper">
  441. <pre><code class="lang-csharp hljs">public TreeView()</code></pre>
  442. </div>
  443. <a id="Terminal_Gui_TreeView_1__ctor_" data-uid="Terminal.Gui.TreeView`1.#ctor*"></a>
  444. <h4 id="Terminal_Gui_TreeView_1__ctor_Terminal_Gui_ITreeBuilder__0__" data-uid="Terminal.Gui.TreeView`1.#ctor(Terminal.Gui.ITreeBuilder{`0})">TreeView(ITreeBuilder&lt;T&gt;)</h4>
  445. <div class="markdown level1 summary">
  446. Initialises <a class="xref" href="Terminal.Gui.TreeView-1.html#Terminal_Gui_TreeView_1_TreeBuilder">TreeBuilder</a>.Creates a new tree view with absolute
  447. 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
  448. objects for the tree.
  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(ITreeBuilder&lt;T&gt; builder)</code></pre>
  454. </div>
  455. <h5 class="parameters">Parameters</h5>
  456. <table class="table table-bordered table-striped table-condensed">
  457. <thead>
  458. <tr>
  459. <th>Type</th>
  460. <th>Name</th>
  461. <th>Description</th>
  462. </tr>
  463. </thead>
  464. <tbody>
  465. <tr>
  466. <td><a class="xref" href="Terminal.Gui.ITreeBuilder-1.html">ITreeBuilder</a>&lt;T&gt;</td>
  467. <td><span class="parametername">builder</span></td>
  468. <td></td>
  469. </tr>
  470. </tbody>
  471. </table>
  472. <h3 id="fields">Fields
  473. </h3>
  474. <h4 id="Terminal_Gui_TreeView_1_NoBuilderError" data-uid="Terminal.Gui.TreeView`1.NoBuilderError">NoBuilderError</h4>
  475. <div class="markdown level1 summary">
  476. Error message to display when the control is not properly initialized at draw time
  477. (nodes added but no tree builder set)
  478. </div>
  479. <div class="markdown level1 conceptual"></div>
  480. <h5 class="decalaration">Declaration</h5>
  481. <div class="codewrapper">
  482. <pre><code class="lang-csharp hljs">public static ustring NoBuilderError</code></pre>
  483. </div>
  484. <h5 class="fieldValue">Field Value</h5>
  485. <table class="table table-bordered table-striped table-condensed">
  486. <thead>
  487. <tr>
  488. <th>Type</th>
  489. <th>Description</th>
  490. </tr>
  491. </thead>
  492. <tbody>
  493. <tr>
  494. <td><span class="xref">NStack.ustring</span></td>
  495. <td></td>
  496. </tr>
  497. </tbody>
  498. </table>
  499. <h3 id="properties">Properties
  500. </h3>
  501. <a id="Terminal_Gui_TreeView_1_AllowLetterBasedNavigation_" data-uid="Terminal.Gui.TreeView`1.AllowLetterBasedNavigation*"></a>
  502. <h4 id="Terminal_Gui_TreeView_1_AllowLetterBasedNavigation" data-uid="Terminal.Gui.TreeView`1.AllowLetterBasedNavigation">AllowLetterBasedNavigation</h4>
  503. <div class="markdown level1 summary">
  504. True makes a letter key press navigate to the next visible branch that begins with
  505. that letter/digit
  506. </div>
  507. <div class="markdown level1 conceptual"></div>
  508. <h5 class="decalaration">Declaration</h5>
  509. <div class="codewrapper">
  510. <pre><code class="lang-csharp hljs">public bool AllowLetterBasedNavigation { get; set; }</code></pre>
  511. </div>
  512. <h5 class="propertyValue">Property Value</h5>
  513. <table class="table table-bordered table-striped table-condensed">
  514. <thead>
  515. <tr>
  516. <th>Type</th>
  517. <th>Description</th>
  518. </tr>
  519. </thead>
  520. <tbody>
  521. <tr>
  522. <td><span class="xref">System.Boolean</span></td>
  523. <td></td>
  524. </tr>
  525. </tbody>
  526. </table>
  527. <a id="Terminal_Gui_TreeView_1_AspectGetter_" data-uid="Terminal.Gui.TreeView`1.AspectGetter*"></a>
  528. <h4 id="Terminal_Gui_TreeView_1_AspectGetter" data-uid="Terminal.Gui.TreeView`1.AspectGetter">AspectGetter</h4>
  529. <div class="markdown level1 summary">
  530. Returns the string representation of model objects hosted in the tree. Default
  531. implementation is to call <span class="xref">System.Object.ToString()</span>
  532. </div>
  533. <div class="markdown level1 conceptual"></div>
  534. <h5 class="decalaration">Declaration</h5>
  535. <div class="codewrapper">
  536. <pre><code class="lang-csharp hljs">public AspectGetterDelegate&lt;T&gt; AspectGetter { get; set; }</code></pre>
  537. </div>
  538. <h5 class="propertyValue">Property Value</h5>
  539. <table class="table table-bordered table-striped table-condensed">
  540. <thead>
  541. <tr>
  542. <th>Type</th>
  543. <th>Description</th>
  544. </tr>
  545. </thead>
  546. <tbody>
  547. <tr>
  548. <td><a class="xref" href="Terminal.Gui.AspectGetterDelegate-1.html">AspectGetterDelegate</a>&lt;T&gt;</td>
  549. <td></td>
  550. </tr>
  551. </tbody>
  552. </table>
  553. <a id="Terminal_Gui_TreeView_1_ContentHeight_" data-uid="Terminal.Gui.TreeView`1.ContentHeight*"></a>
  554. <h4 id="Terminal_Gui_TreeView_1_ContentHeight" data-uid="Terminal.Gui.TreeView`1.ContentHeight">ContentHeight</h4>
  555. <div class="markdown level1 summary">
  556. The current number of rows in the tree (ignoring the controls bounds)
  557. </div>
  558. <div class="markdown level1 conceptual"></div>
  559. <h5 class="decalaration">Declaration</h5>
  560. <div class="codewrapper">
  561. <pre><code class="lang-csharp hljs">public int ContentHeight { get; }</code></pre>
  562. </div>
  563. <h5 class="propertyValue">Property Value</h5>
  564. <table class="table table-bordered table-striped table-condensed">
  565. <thead>
  566. <tr>
  567. <th>Type</th>
  568. <th>Description</th>
  569. </tr>
  570. </thead>
  571. <tbody>
  572. <tr>
  573. <td><span class="xref">System.Int32</span></td>
  574. <td></td>
  575. </tr>
  576. </tbody>
  577. </table>
  578. <a id="Terminal_Gui_TreeView_1_MultiSelect_" data-uid="Terminal.Gui.TreeView`1.MultiSelect*"></a>
  579. <h4 id="Terminal_Gui_TreeView_1_MultiSelect" data-uid="Terminal.Gui.TreeView`1.MultiSelect">MultiSelect</h4>
  580. <div class="markdown level1 summary">
  581. True to allow multiple objects to be selected at once
  582. </div>
  583. <div class="markdown level1 conceptual"></div>
  584. <h5 class="decalaration">Declaration</h5>
  585. <div class="codewrapper">
  586. <pre><code class="lang-csharp hljs">public bool MultiSelect { get; set; }</code></pre>
  587. </div>
  588. <h5 class="propertyValue">Property Value</h5>
  589. <table class="table table-bordered table-striped table-condensed">
  590. <thead>
  591. <tr>
  592. <th>Type</th>
  593. <th>Description</th>
  594. </tr>
  595. </thead>
  596. <tbody>
  597. <tr>
  598. <td><span class="xref">System.Boolean</span></td>
  599. <td></td>
  600. </tr>
  601. </tbody>
  602. </table>
  603. <a id="Terminal_Gui_TreeView_1_ObjectActivationButton_" data-uid="Terminal.Gui.TreeView`1.ObjectActivationButton*"></a>
  604. <h4 id="Terminal_Gui_TreeView_1_ObjectActivationButton" data-uid="Terminal.Gui.TreeView`1.ObjectActivationButton">ObjectActivationButton</h4>
  605. <div class="markdown level1 summary">
  606. Mouse event to trigger <a class="xref" href="Terminal.Gui.TreeView-1.html#Terminal_Gui_TreeView_1_ObjectActivated">ObjectActivated</a>.
  607. Defaults to double click (<a class="xref" href="Terminal.Gui.MouseFlags.html#Terminal_Gui_MouseFlags_Button1DoubleClicked">Button1DoubleClicked</a>).
  608. Set to null to disable this feature.
  609. </div>
  610. <div class="markdown level1 conceptual"></div>
  611. <h5 class="decalaration">Declaration</h5>
  612. <div class="codewrapper">
  613. <pre><code class="lang-csharp hljs">public MouseFlags? ObjectActivationButton { get; set; }</code></pre>
  614. </div>
  615. <h5 class="propertyValue">Property Value</h5>
  616. <table class="table table-bordered table-striped table-condensed">
  617. <thead>
  618. <tr>
  619. <th>Type</th>
  620. <th>Description</th>
  621. </tr>
  622. </thead>
  623. <tbody>
  624. <tr>
  625. <td><span class="xref">System.Nullable</span>&lt;<a class="xref" href="Terminal.Gui.MouseFlags.html">MouseFlags</a>&gt;</td>
  626. <td></td>
  627. </tr>
  628. </tbody>
  629. </table>
  630. <a id="Terminal_Gui_TreeView_1_ObjectActivationKey_" data-uid="Terminal.Gui.TreeView`1.ObjectActivationKey*"></a>
  631. <h4 id="Terminal_Gui_TreeView_1_ObjectActivationKey" data-uid="Terminal.Gui.TreeView`1.ObjectActivationKey">ObjectActivationKey</h4>
  632. <div class="markdown level1 summary">
  633. Key which when pressed triggers <a class="xref" href="Terminal.Gui.TreeView-1.html#Terminal_Gui_TreeView_1_ObjectActivated">ObjectActivated</a>.
  634. Defaults to Enter
  635. </div>
  636. <div class="markdown level1 conceptual"></div>
  637. <h5 class="decalaration">Declaration</h5>
  638. <div class="codewrapper">
  639. <pre><code class="lang-csharp hljs">public Key ObjectActivationKey { get; set; }</code></pre>
  640. </div>
  641. <h5 class="propertyValue">Property Value</h5>
  642. <table class="table table-bordered table-striped table-condensed">
  643. <thead>
  644. <tr>
  645. <th>Type</th>
  646. <th>Description</th>
  647. </tr>
  648. </thead>
  649. <tbody>
  650. <tr>
  651. <td><a class="xref" href="Terminal.Gui.Key.html">Key</a></td>
  652. <td></td>
  653. </tr>
  654. </tbody>
  655. </table>
  656. <a id="Terminal_Gui_TreeView_1_Objects_" data-uid="Terminal.Gui.TreeView`1.Objects*"></a>
  657. <h4 id="Terminal_Gui_TreeView_1_Objects" data-uid="Terminal.Gui.TreeView`1.Objects">Objects</h4>
  658. <div class="markdown level1 summary">
  659. The root objects in the tree, note that this collection is of root objects only
  660. </div>
  661. <div class="markdown level1 conceptual"></div>
  662. <h5 class="decalaration">Declaration</h5>
  663. <div class="codewrapper">
  664. <pre><code class="lang-csharp hljs">public IEnumerable&lt;T&gt; Objects { get; }</code></pre>
  665. </div>
  666. <h5 class="propertyValue">Property Value</h5>
  667. <table class="table table-bordered table-striped table-condensed">
  668. <thead>
  669. <tr>
  670. <th>Type</th>
  671. <th>Description</th>
  672. </tr>
  673. </thead>
  674. <tbody>
  675. <tr>
  676. <td><span class="xref">System.Collections.Generic.IEnumerable</span>&lt;T&gt;</td>
  677. <td></td>
  678. </tr>
  679. </tbody>
  680. </table>
  681. <a id="Terminal_Gui_TreeView_1_ScrollOffsetHorizontal_" data-uid="Terminal.Gui.TreeView`1.ScrollOffsetHorizontal*"></a>
  682. <h4 id="Terminal_Gui_TreeView_1_ScrollOffsetHorizontal" data-uid="Terminal.Gui.TreeView`1.ScrollOffsetHorizontal">ScrollOffsetHorizontal</h4>
  683. <div class="markdown level1 summary">
  684. The amount of tree view that has been scrolled to the right (horizontally)
  685. </div>
  686. <div class="markdown level1 conceptual"></div>
  687. <h5 class="decalaration">Declaration</h5>
  688. <div class="codewrapper">
  689. <pre><code class="lang-csharp hljs">public int ScrollOffsetHorizontal { get; set; }</code></pre>
  690. </div>
  691. <h5 class="propertyValue">Property Value</h5>
  692. <table class="table table-bordered table-striped table-condensed">
  693. <thead>
  694. <tr>
  695. <th>Type</th>
  696. <th>Description</th>
  697. </tr>
  698. </thead>
  699. <tbody>
  700. <tr>
  701. <td><span class="xref">System.Int32</span></td>
  702. <td></td>
  703. </tr>
  704. </tbody>
  705. </table>
  706. <h5 id="Terminal_Gui_TreeView_1_ScrollOffsetHorizontal_remarks">Remarks</h5>
  707. <div class="markdown level1 remarks">Setting a value of less than 0 will result in a offset of 0. To see changes
  708. in the UI call <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_SetNeedsDisplay">SetNeedsDisplay()</a></div>
  709. <a id="Terminal_Gui_TreeView_1_ScrollOffsetVertical_" data-uid="Terminal.Gui.TreeView`1.ScrollOffsetVertical*"></a>
  710. <h4 id="Terminal_Gui_TreeView_1_ScrollOffsetVertical" data-uid="Terminal.Gui.TreeView`1.ScrollOffsetVertical">ScrollOffsetVertical</h4>
  711. <div class="markdown level1 summary">
  712. The amount of tree view that has been scrolled off the top of the screen (by the user
  713. scrolling down)
  714. </div>
  715. <div class="markdown level1 conceptual"></div>
  716. <h5 class="decalaration">Declaration</h5>
  717. <div class="codewrapper">
  718. <pre><code class="lang-csharp hljs">public int ScrollOffsetVertical { get; set; }</code></pre>
  719. </div>
  720. <h5 class="propertyValue">Property Value</h5>
  721. <table class="table table-bordered table-striped table-condensed">
  722. <thead>
  723. <tr>
  724. <th>Type</th>
  725. <th>Description</th>
  726. </tr>
  727. </thead>
  728. <tbody>
  729. <tr>
  730. <td><span class="xref">System.Int32</span></td>
  731. <td></td>
  732. </tr>
  733. </tbody>
  734. </table>
  735. <h5 id="Terminal_Gui_TreeView_1_ScrollOffsetVertical_remarks">Remarks</h5>
  736. <div class="markdown level1 remarks">Setting a value of less than 0 will result in a offset of 0. To see changes
  737. in the UI call <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_SetNeedsDisplay">SetNeedsDisplay()</a></div>
  738. <a id="Terminal_Gui_TreeView_1_SelectedObject_" data-uid="Terminal.Gui.TreeView`1.SelectedObject*"></a>
  739. <h4 id="Terminal_Gui_TreeView_1_SelectedObject" data-uid="Terminal.Gui.TreeView`1.SelectedObject">SelectedObject</h4>
  740. <div class="markdown level1 summary">
  741. 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
  742. is the object at which the cursor is at
  743. </div>
  744. <div class="markdown level1 conceptual"></div>
  745. <h5 class="decalaration">Declaration</h5>
  746. <div class="codewrapper">
  747. <pre><code class="lang-csharp hljs">public T SelectedObject { get; set; }</code></pre>
  748. </div>
  749. <h5 class="propertyValue">Property Value</h5>
  750. <table class="table table-bordered table-striped table-condensed">
  751. <thead>
  752. <tr>
  753. <th>Type</th>
  754. <th>Description</th>
  755. </tr>
  756. </thead>
  757. <tbody>
  758. <tr>
  759. <td><span class="xref">T</span></td>
  760. <td></td>
  761. </tr>
  762. </tbody>
  763. </table>
  764. <a id="Terminal_Gui_TreeView_1_Style_" data-uid="Terminal.Gui.TreeView`1.Style*"></a>
  765. <h4 id="Terminal_Gui_TreeView_1_Style" data-uid="Terminal.Gui.TreeView`1.Style">Style</h4>
  766. <div class="markdown level1 summary">
  767. Contains options for changing how the tree is rendered
  768. </div>
  769. <div class="markdown level1 conceptual"></div>
  770. <h5 class="decalaration">Declaration</h5>
  771. <div class="codewrapper">
  772. <pre><code class="lang-csharp hljs">public TreeStyle Style { get; set; }</code></pre>
  773. </div>
  774. <h5 class="propertyValue">Property Value</h5>
  775. <table class="table table-bordered table-striped table-condensed">
  776. <thead>
  777. <tr>
  778. <th>Type</th>
  779. <th>Description</th>
  780. </tr>
  781. </thead>
  782. <tbody>
  783. <tr>
  784. <td><a class="xref" href="Terminal.Gui.TreeStyle.html">TreeStyle</a></td>
  785. <td></td>
  786. </tr>
  787. </tbody>
  788. </table>
  789. <a id="Terminal_Gui_TreeView_1_TreeBuilder_" data-uid="Terminal.Gui.TreeView`1.TreeBuilder*"></a>
  790. <h4 id="Terminal_Gui_TreeView_1_TreeBuilder" data-uid="Terminal.Gui.TreeView`1.TreeBuilder">TreeBuilder</h4>
  791. <div class="markdown level1 summary">
  792. Determines how sub branches of the tree are dynamically built at runtime as the user
  793. expands root nodes
  794. </div>
  795. <div class="markdown level1 conceptual"></div>
  796. <h5 class="decalaration">Declaration</h5>
  797. <div class="codewrapper">
  798. <pre><code class="lang-csharp hljs">public ITreeBuilder&lt;T&gt; TreeBuilder { get; set; }</code></pre>
  799. </div>
  800. <h5 class="propertyValue">Property Value</h5>
  801. <table class="table table-bordered table-striped table-condensed">
  802. <thead>
  803. <tr>
  804. <th>Type</th>
  805. <th>Description</th>
  806. </tr>
  807. </thead>
  808. <tbody>
  809. <tr>
  810. <td><a class="xref" href="Terminal.Gui.ITreeBuilder-1.html">ITreeBuilder</a>&lt;T&gt;</td>
  811. <td></td>
  812. </tr>
  813. </tbody>
  814. </table>
  815. <h3 id="methods">Methods
  816. </h3>
  817. <a id="Terminal_Gui_TreeView_1_AddObject_" data-uid="Terminal.Gui.TreeView`1.AddObject*"></a>
  818. <h4 id="Terminal_Gui_TreeView_1_AddObject__0_" data-uid="Terminal.Gui.TreeView`1.AddObject(`0)">AddObject(T)</h4>
  819. <div class="markdown level1 summary">
  820. Adds a new root level object unless it is already a root of the tree
  821. </div>
  822. <div class="markdown level1 conceptual"></div>
  823. <h5 class="decalaration">Declaration</h5>
  824. <div class="codewrapper">
  825. <pre><code class="lang-csharp hljs">public void AddObject(T o)</code></pre>
  826. </div>
  827. <h5 class="parameters">Parameters</h5>
  828. <table class="table table-bordered table-striped table-condensed">
  829. <thead>
  830. <tr>
  831. <th>Type</th>
  832. <th>Name</th>
  833. <th>Description</th>
  834. </tr>
  835. </thead>
  836. <tbody>
  837. <tr>
  838. <td><span class="xref">T</span></td>
  839. <td><span class="parametername">o</span></td>
  840. <td></td>
  841. </tr>
  842. </tbody>
  843. </table>
  844. <a id="Terminal_Gui_TreeView_1_AddObjects_" data-uid="Terminal.Gui.TreeView`1.AddObjects*"></a>
  845. <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>
  846. <div class="markdown level1 summary">
  847. Adds many new root level objects. Objects that are already root objects are ignored
  848. </div>
  849. <div class="markdown level1 conceptual"></div>
  850. <h5 class="decalaration">Declaration</h5>
  851. <div class="codewrapper">
  852. <pre><code class="lang-csharp hljs">public void AddObjects(IEnumerable&lt;T&gt; collection)</code></pre>
  853. </div>
  854. <h5 class="parameters">Parameters</h5>
  855. <table class="table table-bordered table-striped table-condensed">
  856. <thead>
  857. <tr>
  858. <th>Type</th>
  859. <th>Name</th>
  860. <th>Description</th>
  861. </tr>
  862. </thead>
  863. <tbody>
  864. <tr>
  865. <td><span class="xref">System.Collections.Generic.IEnumerable</span>&lt;T&gt;</td>
  866. <td><span class="parametername">collection</span></td>
  867. <td>Objects to add as new root level objects</td>
  868. </tr>
  869. </tbody>
  870. </table>
  871. <a id="Terminal_Gui_TreeView_1_AdjustSelection_" data-uid="Terminal.Gui.TreeView`1.AdjustSelection*"></a>
  872. <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>
  873. <div class="markdown level1 summary">
  874. The number of screen lines to move the currently selected object by. Supports negative
  875. <code data-dev-comment-type="paramref" class="paramref">offset</code>. Each branch occupies 1 line on screen
  876. </div>
  877. <div class="markdown level1 conceptual"></div>
  878. <h5 class="decalaration">Declaration</h5>
  879. <div class="codewrapper">
  880. <pre><code class="lang-csharp hljs">public void AdjustSelection(int offset, bool expandSelection = false)</code></pre>
  881. </div>
  882. <h5 class="parameters">Parameters</h5>
  883. <table class="table table-bordered table-striped table-condensed">
  884. <thead>
  885. <tr>
  886. <th>Type</th>
  887. <th>Name</th>
  888. <th>Description</th>
  889. </tr>
  890. </thead>
  891. <tbody>
  892. <tr>
  893. <td><span class="xref">System.Int32</span></td>
  894. <td><span class="parametername">offset</span></td>
  895. <td>Positive to move the selection down the screen, negative to move it up</td>
  896. </tr>
  897. <tr>
  898. <td><span class="xref">System.Boolean</span></td>
  899. <td><span class="parametername">expandSelection</span></td>
  900. <td>True to expand the selection (assuming
  901. <a class="xref" href="Terminal.Gui.TreeView-1.html#Terminal_Gui_TreeView_1_MultiSelect">MultiSelect</a> is enabled). False to replace</td>
  902. </tr>
  903. </tbody>
  904. </table>
  905. <h5 id="Terminal_Gui_TreeView_1_AdjustSelection_System_Int32_System_Boolean__remarks">Remarks</h5>
  906. <div class="markdown level1 remarks">If nothing is currently selected or the selected object is no longer in the tree
  907. then the first object in the tree is selected instead</div>
  908. <a id="Terminal_Gui_TreeView_1_AdjustSelectionToBranchEnd_" data-uid="Terminal.Gui.TreeView`1.AdjustSelectionToBranchEnd*"></a>
  909. <h4 id="Terminal_Gui_TreeView_1_AdjustSelectionToBranchEnd" data-uid="Terminal.Gui.TreeView`1.AdjustSelectionToBranchEnd">AdjustSelectionToBranchEnd()</h4>
  910. <div class="markdown level1 summary">
  911. Moves the selection to the last child in the currently selected level
  912. </div>
  913. <div class="markdown level1 conceptual"></div>
  914. <h5 class="decalaration">Declaration</h5>
  915. <div class="codewrapper">
  916. <pre><code class="lang-csharp hljs">public void AdjustSelectionToBranchEnd()</code></pre>
  917. </div>
  918. <a id="Terminal_Gui_TreeView_1_AdjustSelectionToBranchStart_" data-uid="Terminal.Gui.TreeView`1.AdjustSelectionToBranchStart*"></a>
  919. <h4 id="Terminal_Gui_TreeView_1_AdjustSelectionToBranchStart" data-uid="Terminal.Gui.TreeView`1.AdjustSelectionToBranchStart">AdjustSelectionToBranchStart()</h4>
  920. <div class="markdown level1 summary">
  921. Moves the selection to the first child in the currently selected level
  922. </div>
  923. <div class="markdown level1 conceptual"></div>
  924. <h5 class="decalaration">Declaration</h5>
  925. <div class="codewrapper">
  926. <pre><code class="lang-csharp hljs">public void AdjustSelectionToBranchStart()</code></pre>
  927. </div>
  928. <a id="Terminal_Gui_TreeView_1_CanExpand_" data-uid="Terminal.Gui.TreeView`1.CanExpand*"></a>
  929. <h4 id="Terminal_Gui_TreeView_1_CanExpand__0_" data-uid="Terminal.Gui.TreeView`1.CanExpand(`0)">CanExpand(T)</h4>
  930. <div class="markdown level1 summary">
  931. Returns true if the given object <code data-dev-comment-type="paramref" class="paramref">o</code> is exposed in the tree and can be
  932. expanded otherwise false
  933. </div>
  934. <div class="markdown level1 conceptual"></div>
  935. <h5 class="decalaration">Declaration</h5>
  936. <div class="codewrapper">
  937. <pre><code class="lang-csharp hljs">public bool CanExpand(T o)</code></pre>
  938. </div>
  939. <h5 class="parameters">Parameters</h5>
  940. <table class="table table-bordered table-striped table-condensed">
  941. <thead>
  942. <tr>
  943. <th>Type</th>
  944. <th>Name</th>
  945. <th>Description</th>
  946. </tr>
  947. </thead>
  948. <tbody>
  949. <tr>
  950. <td><span class="xref">T</span></td>
  951. <td><span class="parametername">o</span></td>
  952. <td></td>
  953. </tr>
  954. </tbody>
  955. </table>
  956. <h5 class="returns">Returns</h5>
  957. <table class="table table-bordered table-striped table-condensed">
  958. <thead>
  959. <tr>
  960. <th>Type</th>
  961. <th>Description</th>
  962. </tr>
  963. </thead>
  964. <tbody>
  965. <tr>
  966. <td><span class="xref">System.Boolean</span></td>
  967. <td></td>
  968. </tr>
  969. </tbody>
  970. </table>
  971. <a id="Terminal_Gui_TreeView_1_ClearObjects_" data-uid="Terminal.Gui.TreeView`1.ClearObjects*"></a>
  972. <h4 id="Terminal_Gui_TreeView_1_ClearObjects" data-uid="Terminal.Gui.TreeView`1.ClearObjects">ClearObjects()</h4>
  973. <div class="markdown level1 summary">
  974. Removes all objects from the tree and clears <a class="xref" href="Terminal.Gui.TreeView-1.html#Terminal_Gui_TreeView_1_SelectedObject">SelectedObject</a>
  975. </div>
  976. <div class="markdown level1 conceptual"></div>
  977. <h5 class="decalaration">Declaration</h5>
  978. <div class="codewrapper">
  979. <pre><code class="lang-csharp hljs">public void ClearObjects()</code></pre>
  980. </div>
  981. <a id="Terminal_Gui_TreeView_1_Collapse_" data-uid="Terminal.Gui.TreeView`1.Collapse*"></a>
  982. <h4 id="Terminal_Gui_TreeView_1_Collapse__0_" data-uid="Terminal.Gui.TreeView`1.Collapse(`0)">Collapse(T)</h4>
  983. <div class="markdown level1 summary">
  984. Collapses the supplied object if it is currently expanded
  985. </div>
  986. <div class="markdown level1 conceptual"></div>
  987. <h5 class="decalaration">Declaration</h5>
  988. <div class="codewrapper">
  989. <pre><code class="lang-csharp hljs">public void Collapse(T toCollapse)</code></pre>
  990. </div>
  991. <h5 class="parameters">Parameters</h5>
  992. <table class="table table-bordered table-striped table-condensed">
  993. <thead>
  994. <tr>
  995. <th>Type</th>
  996. <th>Name</th>
  997. <th>Description</th>
  998. </tr>
  999. </thead>
  1000. <tbody>
  1001. <tr>
  1002. <td><span class="xref">T</span></td>
  1003. <td><span class="parametername">toCollapse</span></td>
  1004. <td>The object to collapse</td>
  1005. </tr>
  1006. </tbody>
  1007. </table>
  1008. <a id="Terminal_Gui_TreeView_1_CollapseAll_" data-uid="Terminal.Gui.TreeView`1.CollapseAll*"></a>
  1009. <h4 id="Terminal_Gui_TreeView_1_CollapseAll" data-uid="Terminal.Gui.TreeView`1.CollapseAll">CollapseAll()</h4>
  1010. <div class="markdown level1 summary">
  1011. Collapses all root nodes in the tree
  1012. </div>
  1013. <div class="markdown level1 conceptual"></div>
  1014. <h5 class="decalaration">Declaration</h5>
  1015. <div class="codewrapper">
  1016. <pre><code class="lang-csharp hljs">public void CollapseAll()</code></pre>
  1017. </div>
  1018. <a id="Terminal_Gui_TreeView_1_CollapseAll_" data-uid="Terminal.Gui.TreeView`1.CollapseAll*"></a>
  1019. <h4 id="Terminal_Gui_TreeView_1_CollapseAll__0_" data-uid="Terminal.Gui.TreeView`1.CollapseAll(`0)">CollapseAll(T)</h4>
  1020. <div class="markdown level1 summary">
  1021. Collapses the supplied object if it is currently expanded. Also collapses all children
  1022. branches (this will only become apparent when/if the user expands it again)
  1023. </div>
  1024. <div class="markdown level1 conceptual"></div>
  1025. <h5 class="decalaration">Declaration</h5>
  1026. <div class="codewrapper">
  1027. <pre><code class="lang-csharp hljs">public void CollapseAll(T toCollapse)</code></pre>
  1028. </div>
  1029. <h5 class="parameters">Parameters</h5>
  1030. <table class="table table-bordered table-striped table-condensed">
  1031. <thead>
  1032. <tr>
  1033. <th>Type</th>
  1034. <th>Name</th>
  1035. <th>Description</th>
  1036. </tr>
  1037. </thead>
  1038. <tbody>
  1039. <tr>
  1040. <td><span class="xref">T</span></td>
  1041. <td><span class="parametername">toCollapse</span></td>
  1042. <td>The object to collapse</td>
  1043. </tr>
  1044. </tbody>
  1045. </table>
  1046. <a id="Terminal_Gui_TreeView_1_CollapseImpl_" data-uid="Terminal.Gui.TreeView`1.CollapseImpl*"></a>
  1047. <h4 id="Terminal_Gui_TreeView_1_CollapseImpl__0_System_Boolean_" data-uid="Terminal.Gui.TreeView`1.CollapseImpl(`0,System.Boolean)">CollapseImpl(T, Boolean)</h4>
  1048. <div class="markdown level1 summary">
  1049. 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
  1050. operation and updates selection if disapeared
  1051. </div>
  1052. <div class="markdown level1 conceptual"></div>
  1053. <h5 class="decalaration">Declaration</h5>
  1054. <div class="codewrapper">
  1055. <pre><code class="lang-csharp hljs">protected void CollapseImpl(T toCollapse, bool all)</code></pre>
  1056. </div>
  1057. <h5 class="parameters">Parameters</h5>
  1058. <table class="table table-bordered table-striped table-condensed">
  1059. <thead>
  1060. <tr>
  1061. <th>Type</th>
  1062. <th>Name</th>
  1063. <th>Description</th>
  1064. </tr>
  1065. </thead>
  1066. <tbody>
  1067. <tr>
  1068. <td><span class="xref">T</span></td>
  1069. <td><span class="parametername">toCollapse</span></td>
  1070. <td></td>
  1071. </tr>
  1072. <tr>
  1073. <td><span class="xref">System.Boolean</span></td>
  1074. <td><span class="parametername">all</span></td>
  1075. <td></td>
  1076. </tr>
  1077. </tbody>
  1078. </table>
  1079. <a id="Terminal_Gui_TreeView_1_CursorLeft_" data-uid="Terminal.Gui.TreeView`1.CursorLeft*"></a>
  1080. <h4 id="Terminal_Gui_TreeView_1_CursorLeft_System_Boolean_" data-uid="Terminal.Gui.TreeView`1.CursorLeft(System.Boolean)">CursorLeft(Boolean)</h4>
  1081. <div class="markdown level1 summary">
  1082. Determines systems behaviour when the left arrow key is pressed. Default behaviour is
  1083. to collapse the current tree node if possible otherwise changes selection to current
  1084. branches parent
  1085. </div>
  1086. <div class="markdown level1 conceptual"></div>
  1087. <h5 class="decalaration">Declaration</h5>
  1088. <div class="codewrapper">
  1089. <pre><code class="lang-csharp hljs">protected virtual void CursorLeft(bool ctrl)</code></pre>
  1090. </div>
  1091. <h5 class="parameters">Parameters</h5>
  1092. <table class="table table-bordered table-striped table-condensed">
  1093. <thead>
  1094. <tr>
  1095. <th>Type</th>
  1096. <th>Name</th>
  1097. <th>Description</th>
  1098. </tr>
  1099. </thead>
  1100. <tbody>
  1101. <tr>
  1102. <td><span class="xref">System.Boolean</span></td>
  1103. <td><span class="parametername">ctrl</span></td>
  1104. <td></td>
  1105. </tr>
  1106. </tbody>
  1107. </table>
  1108. <a id="Terminal_Gui_TreeView_1_EnsureVisible_" data-uid="Terminal.Gui.TreeView`1.EnsureVisible*"></a>
  1109. <h4 id="Terminal_Gui_TreeView_1_EnsureVisible__0_" data-uid="Terminal.Gui.TreeView`1.EnsureVisible(`0)">EnsureVisible(T)</h4>
  1110. <div class="markdown level1 summary">
  1111. Adjusts the <a class="xref" href="Terminal.Gui.TreeView-1.html#Terminal_Gui_TreeView_1_ScrollOffsetVertical">ScrollOffsetVertical</a> to ensure the given
  1112. <code data-dev-comment-type="paramref" class="paramref">model</code> is visible. Has no effect if already visible
  1113. </div>
  1114. <div class="markdown level1 conceptual"></div>
  1115. <h5 class="decalaration">Declaration</h5>
  1116. <div class="codewrapper">
  1117. <pre><code class="lang-csharp hljs">public void EnsureVisible(T model)</code></pre>
  1118. </div>
  1119. <h5 class="parameters">Parameters</h5>
  1120. <table class="table table-bordered table-striped table-condensed">
  1121. <thead>
  1122. <tr>
  1123. <th>Type</th>
  1124. <th>Name</th>
  1125. <th>Description</th>
  1126. </tr>
  1127. </thead>
  1128. <tbody>
  1129. <tr>
  1130. <td><span class="xref">T</span></td>
  1131. <td><span class="parametername">model</span></td>
  1132. <td></td>
  1133. </tr>
  1134. </tbody>
  1135. </table>
  1136. <a id="Terminal_Gui_TreeView_1_Expand_" data-uid="Terminal.Gui.TreeView`1.Expand*"></a>
  1137. <h4 id="Terminal_Gui_TreeView_1_Expand__0_" data-uid="Terminal.Gui.TreeView`1.Expand(`0)">Expand(T)</h4>
  1138. <div class="markdown level1 summary">
  1139. Expands the supplied object if it is contained in the tree (either as a root object or
  1140. as an exposed branch object)
  1141. </div>
  1142. <div class="markdown level1 conceptual"></div>
  1143. <h5 class="decalaration">Declaration</h5>
  1144. <div class="codewrapper">
  1145. <pre><code class="lang-csharp hljs">public void Expand(T toExpand)</code></pre>
  1146. </div>
  1147. <h5 class="parameters">Parameters</h5>
  1148. <table class="table table-bordered table-striped table-condensed">
  1149. <thead>
  1150. <tr>
  1151. <th>Type</th>
  1152. <th>Name</th>
  1153. <th>Description</th>
  1154. </tr>
  1155. </thead>
  1156. <tbody>
  1157. <tr>
  1158. <td><span class="xref">T</span></td>
  1159. <td><span class="parametername">toExpand</span></td>
  1160. <td>The object to expand</td>
  1161. </tr>
  1162. </tbody>
  1163. </table>
  1164. <a id="Terminal_Gui_TreeView_1_ExpandAll_" data-uid="Terminal.Gui.TreeView`1.ExpandAll*"></a>
  1165. <h4 id="Terminal_Gui_TreeView_1_ExpandAll" data-uid="Terminal.Gui.TreeView`1.ExpandAll">ExpandAll()</h4>
  1166. <div class="markdown level1 summary">
  1167. Fully expands all nodes in the tree, if the tree is very big and built dynamically this
  1168. may take a while (e.g. for file system)
  1169. </div>
  1170. <div class="markdown level1 conceptual"></div>
  1171. <h5 class="decalaration">Declaration</h5>
  1172. <div class="codewrapper">
  1173. <pre><code class="lang-csharp hljs">public void ExpandAll()</code></pre>
  1174. </div>
  1175. <a id="Terminal_Gui_TreeView_1_ExpandAll_" data-uid="Terminal.Gui.TreeView`1.ExpandAll*"></a>
  1176. <h4 id="Terminal_Gui_TreeView_1_ExpandAll__0_" data-uid="Terminal.Gui.TreeView`1.ExpandAll(`0)">ExpandAll(T)</h4>
  1177. <div class="markdown level1 summary">
  1178. Expands the supplied object and all child objects
  1179. </div>
  1180. <div class="markdown level1 conceptual"></div>
  1181. <h5 class="decalaration">Declaration</h5>
  1182. <div class="codewrapper">
  1183. <pre><code class="lang-csharp hljs">public void ExpandAll(T toExpand)</code></pre>
  1184. </div>
  1185. <h5 class="parameters">Parameters</h5>
  1186. <table class="table table-bordered table-striped table-condensed">
  1187. <thead>
  1188. <tr>
  1189. <th>Type</th>
  1190. <th>Name</th>
  1191. <th>Description</th>
  1192. </tr>
  1193. </thead>
  1194. <tbody>
  1195. <tr>
  1196. <td><span class="xref">T</span></td>
  1197. <td><span class="parametername">toExpand</span></td>
  1198. <td>The object to expand</td>
  1199. </tr>
  1200. </tbody>
  1201. </table>
  1202. <a id="Terminal_Gui_TreeView_1_GetAllSelectedObjects_" data-uid="Terminal.Gui.TreeView`1.GetAllSelectedObjects*"></a>
  1203. <h4 id="Terminal_Gui_TreeView_1_GetAllSelectedObjects" data-uid="Terminal.Gui.TreeView`1.GetAllSelectedObjects">GetAllSelectedObjects()</h4>
  1204. <div class="markdown level1 summary">
  1205. 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
  1206. <a class="xref" href="Terminal.Gui.TreeView-1.html#Terminal_Gui_TreeView_1_MultiSelect">MultiSelect</a> is true
  1207. </div>
  1208. <div class="markdown level1 conceptual"></div>
  1209. <h5 class="decalaration">Declaration</h5>
  1210. <div class="codewrapper">
  1211. <pre><code class="lang-csharp hljs">public IEnumerable&lt;T&gt; GetAllSelectedObjects()</code></pre>
  1212. </div>
  1213. <h5 class="returns">Returns</h5>
  1214. <table class="table table-bordered table-striped table-condensed">
  1215. <thead>
  1216. <tr>
  1217. <th>Type</th>
  1218. <th>Description</th>
  1219. </tr>
  1220. </thead>
  1221. <tbody>
  1222. <tr>
  1223. <td><span class="xref">System.Collections.Generic.IEnumerable</span>&lt;T&gt;</td>
  1224. <td></td>
  1225. </tr>
  1226. </tbody>
  1227. </table>
  1228. <a id="Terminal_Gui_TreeView_1_GetChildren_" data-uid="Terminal.Gui.TreeView`1.GetChildren*"></a>
  1229. <h4 id="Terminal_Gui_TreeView_1_GetChildren__0_" data-uid="Terminal.Gui.TreeView`1.GetChildren(`0)">GetChildren(T)</h4>
  1230. <div class="markdown level1 summary">
  1231. Returns the currently expanded children of the passed object. Returns an empty
  1232. collection if the branch is not exposed or not expanded
  1233. </div>
  1234. <div class="markdown level1 conceptual"></div>
  1235. <h5 class="decalaration">Declaration</h5>
  1236. <div class="codewrapper">
  1237. <pre><code class="lang-csharp hljs">public IEnumerable&lt;T&gt; GetChildren(T o)</code></pre>
  1238. </div>
  1239. <h5 class="parameters">Parameters</h5>
  1240. <table class="table table-bordered table-striped table-condensed">
  1241. <thead>
  1242. <tr>
  1243. <th>Type</th>
  1244. <th>Name</th>
  1245. <th>Description</th>
  1246. </tr>
  1247. </thead>
  1248. <tbody>
  1249. <tr>
  1250. <td><span class="xref">T</span></td>
  1251. <td><span class="parametername">o</span></td>
  1252. <td>An object in the tree</td>
  1253. </tr>
  1254. </tbody>
  1255. </table>
  1256. <h5 class="returns">Returns</h5>
  1257. <table class="table table-bordered table-striped table-condensed">
  1258. <thead>
  1259. <tr>
  1260. <th>Type</th>
  1261. <th>Description</th>
  1262. </tr>
  1263. </thead>
  1264. <tbody>
  1265. <tr>
  1266. <td><span class="xref">System.Collections.Generic.IEnumerable</span>&lt;T&gt;</td>
  1267. <td></td>
  1268. </tr>
  1269. </tbody>
  1270. </table>
  1271. <a id="Terminal_Gui_TreeView_1_GetContentWidth_" data-uid="Terminal.Gui.TreeView`1.GetContentWidth*"></a>
  1272. <h4 id="Terminal_Gui_TreeView_1_GetContentWidth_System_Boolean_" data-uid="Terminal.Gui.TreeView`1.GetContentWidth(System.Boolean)">GetContentWidth(Boolean)</h4>
  1273. <div class="markdown level1 summary">
  1274. Returns the maximum width line in the tree including prefix and expansion symbols
  1275. </div>
  1276. <div class="markdown level1 conceptual"></div>
  1277. <h5 class="decalaration">Declaration</h5>
  1278. <div class="codewrapper">
  1279. <pre><code class="lang-csharp hljs">public int GetContentWidth(bool visible)</code></pre>
  1280. </div>
  1281. <h5 class="parameters">Parameters</h5>
  1282. <table class="table table-bordered table-striped table-condensed">
  1283. <thead>
  1284. <tr>
  1285. <th>Type</th>
  1286. <th>Name</th>
  1287. <th>Description</th>
  1288. </tr>
  1289. </thead>
  1290. <tbody>
  1291. <tr>
  1292. <td><span class="xref">System.Boolean</span></td>
  1293. <td><span class="parametername">visible</span></td>
  1294. <td>True to consider only rows currently visible (based on window
  1295. bounds and <a class="xref" href="Terminal.Gui.TreeView-1.html#Terminal_Gui_TreeView_1_ScrollOffsetVertical">ScrollOffsetVertical</a>. False to calculate the width of
  1296. every exposed branch in the tree</td>
  1297. </tr>
  1298. </tbody>
  1299. </table>
  1300. <h5 class="returns">Returns</h5>
  1301. <table class="table table-bordered table-striped table-condensed">
  1302. <thead>
  1303. <tr>
  1304. <th>Type</th>
  1305. <th>Description</th>
  1306. </tr>
  1307. </thead>
  1308. <tbody>
  1309. <tr>
  1310. <td><span class="xref">System.Int32</span></td>
  1311. <td></td>
  1312. </tr>
  1313. </tbody>
  1314. </table>
  1315. <a id="Terminal_Gui_TreeView_1_GetParent_" data-uid="Terminal.Gui.TreeView`1.GetParent*"></a>
  1316. <h4 id="Terminal_Gui_TreeView_1_GetParent__0_" data-uid="Terminal.Gui.TreeView`1.GetParent(`0)">GetParent(T)</h4>
  1317. <div class="markdown level1 summary">
  1318. Returns the parent object of <code data-dev-comment-type="paramref" class="paramref">o</code> in the tree. Returns null if
  1319. the object is not exposed in the tree
  1320. </div>
  1321. <div class="markdown level1 conceptual"></div>
  1322. <h5 class="decalaration">Declaration</h5>
  1323. <div class="codewrapper">
  1324. <pre><code class="lang-csharp hljs">public T GetParent(T o)</code></pre>
  1325. </div>
  1326. <h5 class="parameters">Parameters</h5>
  1327. <table class="table table-bordered table-striped table-condensed">
  1328. <thead>
  1329. <tr>
  1330. <th>Type</th>
  1331. <th>Name</th>
  1332. <th>Description</th>
  1333. </tr>
  1334. </thead>
  1335. <tbody>
  1336. <tr>
  1337. <td><span class="xref">T</span></td>
  1338. <td><span class="parametername">o</span></td>
  1339. <td>An object in the tree</td>
  1340. </tr>
  1341. </tbody>
  1342. </table>
  1343. <h5 class="returns">Returns</h5>
  1344. <table class="table table-bordered table-striped table-condensed">
  1345. <thead>
  1346. <tr>
  1347. <th>Type</th>
  1348. <th>Description</th>
  1349. </tr>
  1350. </thead>
  1351. <tbody>
  1352. <tr>
  1353. <td><span class="xref">T</span></td>
  1354. <td></td>
  1355. </tr>
  1356. </tbody>
  1357. </table>
  1358. <a id="Terminal_Gui_TreeView_1_GetScrollOffsetOf_" data-uid="Terminal.Gui.TreeView`1.GetScrollOffsetOf*"></a>
  1359. <h4 id="Terminal_Gui_TreeView_1_GetScrollOffsetOf__0_" data-uid="Terminal.Gui.TreeView`1.GetScrollOffsetOf(`0)">GetScrollOffsetOf(T)</h4>
  1360. <div class="markdown level1 summary">
  1361. Returns the index of the object <code data-dev-comment-type="paramref" class="paramref">o</code> if it is currently exposed (it&apos;s
  1362. 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>
  1363. and <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_SetNeedsDisplay">SetNeedsDisplay()</a> to scroll to a specific object
  1364. </div>
  1365. <div class="markdown level1 conceptual"></div>
  1366. <h5 class="decalaration">Declaration</h5>
  1367. <div class="codewrapper">
  1368. <pre><code class="lang-csharp hljs">public int GetScrollOffsetOf(T o)</code></pre>
  1369. </div>
  1370. <h5 class="parameters">Parameters</h5>
  1371. <table class="table table-bordered table-striped table-condensed">
  1372. <thead>
  1373. <tr>
  1374. <th>Type</th>
  1375. <th>Name</th>
  1376. <th>Description</th>
  1377. </tr>
  1378. </thead>
  1379. <tbody>
  1380. <tr>
  1381. <td><span class="xref">T</span></td>
  1382. <td><span class="parametername">o</span></td>
  1383. <td>An object that appears in your tree and is currently exposed</td>
  1384. </tr>
  1385. </tbody>
  1386. </table>
  1387. <h5 class="returns">Returns</h5>
  1388. <table class="table table-bordered table-striped table-condensed">
  1389. <thead>
  1390. <tr>
  1391. <th>Type</th>
  1392. <th>Description</th>
  1393. </tr>
  1394. </thead>
  1395. <tbody>
  1396. <tr>
  1397. <td><span class="xref">System.Int32</span></td>
  1398. <td>The index the object was found at or -1 if it is not currently revealed or
  1399. not in the tree at all</td>
  1400. </tr>
  1401. </tbody>
  1402. </table>
  1403. <h5 id="Terminal_Gui_TreeView_1_GetScrollOffsetOf__0__remarks">Remarks</h5>
  1404. <div class="markdown level1 remarks">Uses the Equals method and returns the first index at which the object is found
  1405. or -1 if it is not found</div>
  1406. <a id="Terminal_Gui_TreeView_1_GoTo_" data-uid="Terminal.Gui.TreeView`1.GoTo*"></a>
  1407. <h4 id="Terminal_Gui_TreeView_1_GoTo__0_" data-uid="Terminal.Gui.TreeView`1.GoTo(`0)">GoTo(T)</h4>
  1408. <div class="markdown level1 summary">
  1409. 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
  1410. 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.
  1411. its parents are collapsed)
  1412. </div>
  1413. <div class="markdown level1 conceptual"></div>
  1414. <h5 class="decalaration">Declaration</h5>
  1415. <div class="codewrapper">
  1416. <pre><code class="lang-csharp hljs">public void GoTo(T toSelect)</code></pre>
  1417. </div>
  1418. <h5 class="parameters">Parameters</h5>
  1419. <table class="table table-bordered table-striped table-condensed">
  1420. <thead>
  1421. <tr>
  1422. <th>Type</th>
  1423. <th>Name</th>
  1424. <th>Description</th>
  1425. </tr>
  1426. </thead>
  1427. <tbody>
  1428. <tr>
  1429. <td><span class="xref">T</span></td>
  1430. <td><span class="parametername">toSelect</span></td>
  1431. <td></td>
  1432. </tr>
  1433. </tbody>
  1434. </table>
  1435. <a id="Terminal_Gui_TreeView_1_GoToEnd_" data-uid="Terminal.Gui.TreeView`1.GoToEnd*"></a>
  1436. <h4 id="Terminal_Gui_TreeView_1_GoToEnd" data-uid="Terminal.Gui.TreeView`1.GoToEnd">GoToEnd()</h4>
  1437. <div class="markdown level1 summary">
  1438. 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
  1439. that it is visible
  1440. </div>
  1441. <div class="markdown level1 conceptual"></div>
  1442. <h5 class="decalaration">Declaration</h5>
  1443. <div class="codewrapper">
  1444. <pre><code class="lang-csharp hljs">public void GoToEnd()</code></pre>
  1445. </div>
  1446. <a id="Terminal_Gui_TreeView_1_GoToFirst_" data-uid="Terminal.Gui.TreeView`1.GoToFirst*"></a>
  1447. <h4 id="Terminal_Gui_TreeView_1_GoToFirst" data-uid="Terminal.Gui.TreeView`1.GoToFirst">GoToFirst()</h4>
  1448. <div class="markdown level1 summary">
  1449. 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
  1450. the <a class="xref" href="Terminal.Gui.TreeView-1.html#Terminal_Gui_TreeView_1_ScrollOffsetVertical">ScrollOffsetVertical</a> to 0
  1451. </div>
  1452. <div class="markdown level1 conceptual"></div>
  1453. <h5 class="decalaration">Declaration</h5>
  1454. <div class="codewrapper">
  1455. <pre><code class="lang-csharp hljs">public void GoToFirst()</code></pre>
  1456. </div>
  1457. <a id="Terminal_Gui_TreeView_1_InvalidateLineMap_" data-uid="Terminal.Gui.TreeView`1.InvalidateLineMap*"></a>
  1458. <h4 id="Terminal_Gui_TreeView_1_InvalidateLineMap" data-uid="Terminal.Gui.TreeView`1.InvalidateLineMap">InvalidateLineMap()</h4>
  1459. <div class="markdown level1 summary">
  1460. Clears any cached results of <span class="xref">Terminal.Gui.TreeView`1.BuildLineMap</span>
  1461. </div>
  1462. <div class="markdown level1 conceptual"></div>
  1463. <h5 class="decalaration">Declaration</h5>
  1464. <div class="codewrapper">
  1465. <pre><code class="lang-csharp hljs">protected void InvalidateLineMap()</code></pre>
  1466. </div>
  1467. <a id="Terminal_Gui_TreeView_1_IsExpanded_" data-uid="Terminal.Gui.TreeView`1.IsExpanded*"></a>
  1468. <h4 id="Terminal_Gui_TreeView_1_IsExpanded__0_" data-uid="Terminal.Gui.TreeView`1.IsExpanded(`0)">IsExpanded(T)</h4>
  1469. <div class="markdown level1 summary">
  1470. Returns true if the given object <code data-dev-comment-type="paramref" class="paramref">o</code> is exposed in the tree and
  1471. expanded otherwise false
  1472. </div>
  1473. <div class="markdown level1 conceptual"></div>
  1474. <h5 class="decalaration">Declaration</h5>
  1475. <div class="codewrapper">
  1476. <pre><code class="lang-csharp hljs">public bool IsExpanded(T o)</code></pre>
  1477. </div>
  1478. <h5 class="parameters">Parameters</h5>
  1479. <table class="table table-bordered table-striped table-condensed">
  1480. <thead>
  1481. <tr>
  1482. <th>Type</th>
  1483. <th>Name</th>
  1484. <th>Description</th>
  1485. </tr>
  1486. </thead>
  1487. <tbody>
  1488. <tr>
  1489. <td><span class="xref">T</span></td>
  1490. <td><span class="parametername">o</span></td>
  1491. <td></td>
  1492. </tr>
  1493. </tbody>
  1494. </table>
  1495. <h5 class="returns">Returns</h5>
  1496. <table class="table table-bordered table-striped table-condensed">
  1497. <thead>
  1498. <tr>
  1499. <th>Type</th>
  1500. <th>Description</th>
  1501. </tr>
  1502. </thead>
  1503. <tbody>
  1504. <tr>
  1505. <td><span class="xref">System.Boolean</span></td>
  1506. <td></td>
  1507. </tr>
  1508. </tbody>
  1509. </table>
  1510. <a id="Terminal_Gui_TreeView_1_IsSelected_" data-uid="Terminal.Gui.TreeView`1.IsSelected*"></a>
  1511. <h4 id="Terminal_Gui_TreeView_1_IsSelected__0_" data-uid="Terminal.Gui.TreeView`1.IsSelected(`0)">IsSelected(T)</h4>
  1512. <div class="markdown level1 summary">
  1513. Returns true if the <code data-dev-comment-type="paramref" class="paramref">model</code> is either the
  1514. <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>
  1515. </div>
  1516. <div class="markdown level1 conceptual"></div>
  1517. <h5 class="decalaration">Declaration</h5>
  1518. <div class="codewrapper">
  1519. <pre><code class="lang-csharp hljs">public bool IsSelected(T model)</code></pre>
  1520. </div>
  1521. <h5 class="parameters">Parameters</h5>
  1522. <table class="table table-bordered table-striped table-condensed">
  1523. <thead>
  1524. <tr>
  1525. <th>Type</th>
  1526. <th>Name</th>
  1527. <th>Description</th>
  1528. </tr>
  1529. </thead>
  1530. <tbody>
  1531. <tr>
  1532. <td><span class="xref">T</span></td>
  1533. <td><span class="parametername">model</span></td>
  1534. <td></td>
  1535. </tr>
  1536. </tbody>
  1537. </table>
  1538. <h5 class="returns">Returns</h5>
  1539. <table class="table table-bordered table-striped table-condensed">
  1540. <thead>
  1541. <tr>
  1542. <th>Type</th>
  1543. <th>Description</th>
  1544. </tr>
  1545. </thead>
  1546. <tbody>
  1547. <tr>
  1548. <td><span class="xref">System.Boolean</span></td>
  1549. <td></td>
  1550. </tr>
  1551. </tbody>
  1552. </table>
  1553. <a id="Terminal_Gui_TreeView_1_MouseEvent_" data-uid="Terminal.Gui.TreeView`1.MouseEvent*"></a>
  1554. <h4 id="Terminal_Gui_TreeView_1_MouseEvent_Terminal_Gui_MouseEvent_" data-uid="Terminal.Gui.TreeView`1.MouseEvent(Terminal.Gui.MouseEvent)">MouseEvent(MouseEvent)</h4>
  1555. <div class="markdown level1 summary"></div>
  1556. <div class="markdown level1 conceptual"></div>
  1557. <h5 class="decalaration">Declaration</h5>
  1558. <div class="codewrapper">
  1559. <pre><code class="lang-csharp hljs">public override bool MouseEvent(MouseEvent me)</code></pre>
  1560. </div>
  1561. <h5 class="parameters">Parameters</h5>
  1562. <table class="table table-bordered table-striped table-condensed">
  1563. <thead>
  1564. <tr>
  1565. <th>Type</th>
  1566. <th>Name</th>
  1567. <th>Description</th>
  1568. </tr>
  1569. </thead>
  1570. <tbody>
  1571. <tr>
  1572. <td><a class="xref" href="Terminal.Gui.MouseEvent.html">MouseEvent</a></td>
  1573. <td><span class="parametername">me</span></td>
  1574. <td></td>
  1575. </tr>
  1576. </tbody>
  1577. </table>
  1578. <h5 class="returns">Returns</h5>
  1579. <table class="table table-bordered table-striped table-condensed">
  1580. <thead>
  1581. <tr>
  1582. <th>Type</th>
  1583. <th>Description</th>
  1584. </tr>
  1585. </thead>
  1586. <tbody>
  1587. <tr>
  1588. <td><span class="xref">System.Boolean</span></td>
  1589. <td></td>
  1590. </tr>
  1591. </tbody>
  1592. </table>
  1593. <h5 class="overrides">Overrides</h5>
  1594. <div><a class="xref" href="Terminal.Gui.Responder.html#Terminal_Gui_Responder_MouseEvent_Terminal_Gui_MouseEvent_">Responder.MouseEvent(MouseEvent)</a></div>
  1595. <a id="Terminal_Gui_TreeView_1_OnObjectActivated_" data-uid="Terminal.Gui.TreeView`1.OnObjectActivated*"></a>
  1596. <h4 id="Terminal_Gui_TreeView_1_OnObjectActivated_Terminal_Gui_ObjectActivatedEventArgs__0__" data-uid="Terminal.Gui.TreeView`1.OnObjectActivated(Terminal.Gui.ObjectActivatedEventArgs{`0})">OnObjectActivated(ObjectActivatedEventArgs&lt;T&gt;)</h4>
  1597. <div class="markdown level1 summary">
  1598. Raises the <a class="xref" href="Terminal.Gui.TreeView-1.html#Terminal_Gui_TreeView_1_ObjectActivated">ObjectActivated</a> event
  1599. </div>
  1600. <div class="markdown level1 conceptual"></div>
  1601. <h5 class="decalaration">Declaration</h5>
  1602. <div class="codewrapper">
  1603. <pre><code class="lang-csharp hljs">protected virtual void OnObjectActivated(ObjectActivatedEventArgs&lt;T&gt; e)</code></pre>
  1604. </div>
  1605. <h5 class="parameters">Parameters</h5>
  1606. <table class="table table-bordered table-striped table-condensed">
  1607. <thead>
  1608. <tr>
  1609. <th>Type</th>
  1610. <th>Name</th>
  1611. <th>Description</th>
  1612. </tr>
  1613. </thead>
  1614. <tbody>
  1615. <tr>
  1616. <td><a class="xref" href="Terminal.Gui.ObjectActivatedEventArgs-1.html">ObjectActivatedEventArgs</a>&lt;T&gt;</td>
  1617. <td><span class="parametername">e</span></td>
  1618. <td></td>
  1619. </tr>
  1620. </tbody>
  1621. </table>
  1622. <a id="Terminal_Gui_TreeView_1_OnSelectionChanged_" data-uid="Terminal.Gui.TreeView`1.OnSelectionChanged*"></a>
  1623. <h4 id="Terminal_Gui_TreeView_1_OnSelectionChanged_Terminal_Gui_SelectionChangedEventArgs__0__" data-uid="Terminal.Gui.TreeView`1.OnSelectionChanged(Terminal.Gui.SelectionChangedEventArgs{`0})">OnSelectionChanged(SelectionChangedEventArgs&lt;T&gt;)</h4>
  1624. <div class="markdown level1 summary">
  1625. Raises the SelectionChanged event
  1626. </div>
  1627. <div class="markdown level1 conceptual"></div>
  1628. <h5 class="decalaration">Declaration</h5>
  1629. <div class="codewrapper">
  1630. <pre><code class="lang-csharp hljs">protected virtual void OnSelectionChanged(SelectionChangedEventArgs&lt;T&gt; e)</code></pre>
  1631. </div>
  1632. <h5 class="parameters">Parameters</h5>
  1633. <table class="table table-bordered table-striped table-condensed">
  1634. <thead>
  1635. <tr>
  1636. <th>Type</th>
  1637. <th>Name</th>
  1638. <th>Description</th>
  1639. </tr>
  1640. </thead>
  1641. <tbody>
  1642. <tr>
  1643. <td><a class="xref" href="Terminal.Gui.SelectionChangedEventArgs-1.html">SelectionChangedEventArgs</a>&lt;T&gt;</td>
  1644. <td><span class="parametername">e</span></td>
  1645. <td></td>
  1646. </tr>
  1647. </tbody>
  1648. </table>
  1649. <a id="Terminal_Gui_TreeView_1_PositionCursor_" data-uid="Terminal.Gui.TreeView`1.PositionCursor*"></a>
  1650. <h4 id="Terminal_Gui_TreeView_1_PositionCursor" data-uid="Terminal.Gui.TreeView`1.PositionCursor">PositionCursor()</h4>
  1651. <div class="markdown level1 summary">
  1652. Positions the cursor at the start of the selected objects line (if visible)
  1653. </div>
  1654. <div class="markdown level1 conceptual"></div>
  1655. <h5 class="decalaration">Declaration</h5>
  1656. <div class="codewrapper">
  1657. <pre><code class="lang-csharp hljs">public override void PositionCursor()</code></pre>
  1658. </div>
  1659. <h5 class="overrides">Overrides</h5>
  1660. <div><a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_PositionCursor">View.PositionCursor()</a></div>
  1661. <a id="Terminal_Gui_TreeView_1_ProcessKey_" data-uid="Terminal.Gui.TreeView`1.ProcessKey*"></a>
  1662. <h4 id="Terminal_Gui_TreeView_1_ProcessKey_Terminal_Gui_KeyEvent_" data-uid="Terminal.Gui.TreeView`1.ProcessKey(Terminal.Gui.KeyEvent)">ProcessKey(KeyEvent)</h4>
  1663. <div class="markdown level1 summary"></div>
  1664. <div class="markdown level1 conceptual"></div>
  1665. <h5 class="decalaration">Declaration</h5>
  1666. <div class="codewrapper">
  1667. <pre><code class="lang-csharp hljs">public override bool ProcessKey(KeyEvent keyEvent)</code></pre>
  1668. </div>
  1669. <h5 class="parameters">Parameters</h5>
  1670. <table class="table table-bordered table-striped table-condensed">
  1671. <thead>
  1672. <tr>
  1673. <th>Type</th>
  1674. <th>Name</th>
  1675. <th>Description</th>
  1676. </tr>
  1677. </thead>
  1678. <tbody>
  1679. <tr>
  1680. <td><a class="xref" href="Terminal.Gui.KeyEvent.html">KeyEvent</a></td>
  1681. <td><span class="parametername">keyEvent</span></td>
  1682. <td></td>
  1683. </tr>
  1684. </tbody>
  1685. </table>
  1686. <h5 class="returns">Returns</h5>
  1687. <table class="table table-bordered table-striped table-condensed">
  1688. <thead>
  1689. <tr>
  1690. <th>Type</th>
  1691. <th>Description</th>
  1692. </tr>
  1693. </thead>
  1694. <tbody>
  1695. <tr>
  1696. <td><span class="xref">System.Boolean</span></td>
  1697. <td></td>
  1698. </tr>
  1699. </tbody>
  1700. </table>
  1701. <h5 class="overrides">Overrides</h5>
  1702. <div><a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_ProcessKey_Terminal_Gui_KeyEvent_">View.ProcessKey(KeyEvent)</a></div>
  1703. <a id="Terminal_Gui_TreeView_1_RebuildTree_" data-uid="Terminal.Gui.TreeView`1.RebuildTree*"></a>
  1704. <h4 id="Terminal_Gui_TreeView_1_RebuildTree" data-uid="Terminal.Gui.TreeView`1.RebuildTree">RebuildTree()</h4>
  1705. <div class="markdown level1 summary">
  1706. Rebuilds the tree structure for all exposed objects starting with the root objects.
  1707. Call this method when you know there are changes to the tree but don&apos;t know which
  1708. 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>)
  1709. </div>
  1710. <div class="markdown level1 conceptual"></div>
  1711. <h5 class="decalaration">Declaration</h5>
  1712. <div class="codewrapper">
  1713. <pre><code class="lang-csharp hljs">public void RebuildTree()</code></pre>
  1714. </div>
  1715. <a id="Terminal_Gui_TreeView_1_Redraw_" data-uid="Terminal.Gui.TreeView`1.Redraw*"></a>
  1716. <h4 id="Terminal_Gui_TreeView_1_Redraw_Terminal_Gui_Rect_" data-uid="Terminal.Gui.TreeView`1.Redraw(Terminal.Gui.Rect)">Redraw(Rect)</h4>
  1717. <div class="markdown level1 summary"></div>
  1718. <div class="markdown level1 conceptual"></div>
  1719. <h5 class="decalaration">Declaration</h5>
  1720. <div class="codewrapper">
  1721. <pre><code class="lang-csharp hljs">public override void Redraw(Rect bounds)</code></pre>
  1722. </div>
  1723. <h5 class="parameters">Parameters</h5>
  1724. <table class="table table-bordered table-striped table-condensed">
  1725. <thead>
  1726. <tr>
  1727. <th>Type</th>
  1728. <th>Name</th>
  1729. <th>Description</th>
  1730. </tr>
  1731. </thead>
  1732. <tbody>
  1733. <tr>
  1734. <td><a class="xref" href="Terminal.Gui.Rect.html">Rect</a></td>
  1735. <td><span class="parametername">bounds</span></td>
  1736. <td></td>
  1737. </tr>
  1738. </tbody>
  1739. </table>
  1740. <h5 class="overrides">Overrides</h5>
  1741. <div><a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Redraw_Terminal_Gui_Rect_">View.Redraw(Rect)</a></div>
  1742. <a id="Terminal_Gui_TreeView_1_RefreshObject_" data-uid="Terminal.Gui.TreeView`1.RefreshObject*"></a>
  1743. <h4 id="Terminal_Gui_TreeView_1_RefreshObject__0_System_Boolean_" data-uid="Terminal.Gui.TreeView`1.RefreshObject(`0,System.Boolean)">RefreshObject(T, Boolean)</h4>
  1744. <div class="markdown level1 summary">
  1745. Refreshes the state of the object <code data-dev-comment-type="paramref" class="paramref">o</code> in the tree. This will
  1746. recompute children, string representation etc
  1747. </div>
  1748. <div class="markdown level1 conceptual"></div>
  1749. <h5 class="decalaration">Declaration</h5>
  1750. <div class="codewrapper">
  1751. <pre><code class="lang-csharp hljs">public void RefreshObject(T o, bool startAtTop = false)</code></pre>
  1752. </div>
  1753. <h5 class="parameters">Parameters</h5>
  1754. <table class="table table-bordered table-striped table-condensed">
  1755. <thead>
  1756. <tr>
  1757. <th>Type</th>
  1758. <th>Name</th>
  1759. <th>Description</th>
  1760. </tr>
  1761. </thead>
  1762. <tbody>
  1763. <tr>
  1764. <td><span class="xref">T</span></td>
  1765. <td><span class="parametername">o</span></td>
  1766. <td></td>
  1767. </tr>
  1768. <tr>
  1769. <td><span class="xref">System.Boolean</span></td>
  1770. <td><span class="parametername">startAtTop</span></td>
  1771. <td>True to also refresh all ancestors of the objects branch
  1772. (starting with the root). False to refresh only the passed node</td>
  1773. </tr>
  1774. </tbody>
  1775. </table>
  1776. <h5 id="Terminal_Gui_TreeView_1_RefreshObject__0_System_Boolean__remarks">Remarks</h5>
  1777. <div class="markdown level1 remarks">This has no effect if the object is not exposed in the tree.</div>
  1778. <a id="Terminal_Gui_TreeView_1_Remove_" data-uid="Terminal.Gui.TreeView`1.Remove*"></a>
  1779. <h4 id="Terminal_Gui_TreeView_1_Remove__0_" data-uid="Terminal.Gui.TreeView`1.Remove(`0)">Remove(T)</h4>
  1780. <div class="markdown level1 summary">
  1781. Removes the given root object from the tree
  1782. </div>
  1783. <div class="markdown level1 conceptual"></div>
  1784. <h5 class="decalaration">Declaration</h5>
  1785. <div class="codewrapper">
  1786. <pre><code class="lang-csharp hljs">public void Remove(T o)</code></pre>
  1787. </div>
  1788. <h5 class="parameters">Parameters</h5>
  1789. <table class="table table-bordered table-striped table-condensed">
  1790. <thead>
  1791. <tr>
  1792. <th>Type</th>
  1793. <th>Name</th>
  1794. <th>Description</th>
  1795. </tr>
  1796. </thead>
  1797. <tbody>
  1798. <tr>
  1799. <td><span class="xref">T</span></td>
  1800. <td><span class="parametername">o</span></td>
  1801. <td></td>
  1802. </tr>
  1803. </tbody>
  1804. </table>
  1805. <h5 id="Terminal_Gui_TreeView_1_Remove__0__remarks">Remarks</h5>
  1806. <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
  1807. selection is cleared</div>
  1808. <a id="Terminal_Gui_TreeView_1_SelectAll_" data-uid="Terminal.Gui.TreeView`1.SelectAll*"></a>
  1809. <h4 id="Terminal_Gui_TreeView_1_SelectAll" data-uid="Terminal.Gui.TreeView`1.SelectAll">SelectAll()</h4>
  1810. <div class="markdown level1 summary">
  1811. 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
  1812. does nothing
  1813. </div>
  1814. <div class="markdown level1 conceptual"></div>
  1815. <h5 class="decalaration">Declaration</h5>
  1816. <div class="codewrapper">
  1817. <pre><code class="lang-csharp hljs">public void SelectAll()</code></pre>
  1818. </div>
  1819. <h3 id="events">Events
  1820. </h3>
  1821. <h4 id="Terminal_Gui_TreeView_1_ObjectActivated" data-uid="Terminal.Gui.TreeView`1.ObjectActivated">ObjectActivated</h4>
  1822. <div class="markdown level1 summary">
  1823. This event is raised when an object is activated e.g. by double clicking or
  1824. pressing <a class="xref" href="Terminal.Gui.TreeView-1.html#Terminal_Gui_TreeView_1_ObjectActivationKey">ObjectActivationKey</a>
  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 event Action&lt;ObjectActivatedEventArgs&lt;T&gt;&gt; ObjectActivated</code></pre>
  1830. </div>
  1831. <h5 class="eventType">Event Type</h5>
  1832. <table class="table table-bordered table-striped table-condensed">
  1833. <thead>
  1834. <tr>
  1835. <th>Type</th>
  1836. <th>Description</th>
  1837. </tr>
  1838. </thead>
  1839. <tbody>
  1840. <tr>
  1841. <td><span class="xref">System.Action</span>&lt;<a class="xref" href="Terminal.Gui.ObjectActivatedEventArgs-1.html">ObjectActivatedEventArgs</a>&lt;T&gt;&gt;</td>
  1842. <td></td>
  1843. </tr>
  1844. </tbody>
  1845. </table>
  1846. <h4 id="Terminal_Gui_TreeView_1_SelectionChanged" data-uid="Terminal.Gui.TreeView`1.SelectionChanged">SelectionChanged</h4>
  1847. <div class="markdown level1 summary">
  1848. Called when the <a class="xref" href="Terminal.Gui.TreeView-1.html#Terminal_Gui_TreeView_1_SelectedObject">SelectedObject</a> changes
  1849. </div>
  1850. <div class="markdown level1 conceptual"></div>
  1851. <h5 class="decalaration">Declaration</h5>
  1852. <div class="codewrapper">
  1853. <pre><code class="lang-csharp hljs">public event EventHandler&lt;SelectionChangedEventArgs&lt;T&gt;&gt; SelectionChanged</code></pre>
  1854. </div>
  1855. <h5 class="eventType">Event Type</h5>
  1856. <table class="table table-bordered table-striped table-condensed">
  1857. <thead>
  1858. <tr>
  1859. <th>Type</th>
  1860. <th>Description</th>
  1861. </tr>
  1862. </thead>
  1863. <tbody>
  1864. <tr>
  1865. <td><span class="xref">System.EventHandler</span>&lt;<a class="xref" href="Terminal.Gui.SelectionChangedEventArgs-1.html">SelectionChangedEventArgs</a>&lt;T&gt;&gt;</td>
  1866. <td></td>
  1867. </tr>
  1868. </tbody>
  1869. </table>
  1870. <h3 id="implements">Implements</h3>
  1871. <div>
  1872. <span class="xref">System.IDisposable</span>
  1873. </div>
  1874. <div>
  1875. <span class="xref">System.ComponentModel.ISupportInitializeNotification</span>
  1876. </div>
  1877. <div>
  1878. <span class="xref">System.ComponentModel.ISupportInitialize</span>
  1879. </div>
  1880. <div>
  1881. <a class="xref" href="Terminal.Gui.ITreeView.html">ITreeView</a>
  1882. </div>
  1883. </article>
  1884. </div>
  1885. <div class="hidden-sm col-md-2" role="complementary">
  1886. <div class="sideaffix">
  1887. <div class="contribution">
  1888. <ul class="nav">
  1889. </ul>
  1890. </div>
  1891. <nav class="bs-docs-sidebar hidden-print hidden-xs hidden-sm affix" id="affix">
  1892. <h5>In This Article</h5>
  1893. <div></div>
  1894. </nav>
  1895. </div>
  1896. </div>
  1897. </div>
  1898. </div>
  1899. <footer>
  1900. <div class="grad-bottom"></div>
  1901. <div class="footer">
  1902. <div class="container">
  1903. <span class="pull-right">
  1904. <a href="#top">Back to top</a>
  1905. </span>
  1906. <span>Generated by <strong>DocFX</strong></span>
  1907. </div>
  1908. </div>
  1909. </footer>
  1910. </div>
  1911. <script type="text/javascript" src="../../styles/docfx.vendor.js"></script>
  1912. <script type="text/javascript" src="../../styles/docfx.js"></script>
  1913. <script type="text/javascript" src="../../styles/main.js"></script>
  1914. </body>
  1915. </html>