Terminal.Gui.TreeView-1.html 94 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270
  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.59.2.0">
  13. <link rel="shortcut icon" href="../../favicon.ico">
  14. <link rel="stylesheet" href="../../styles/docfx.vendor.css">
  15. <link rel="stylesheet" href="../../styles/docfx.css">
  16. <link rel="stylesheet" href="../../styles/main.css">
  17. <meta property="docfx:navrel" content="../../toc.html">
  18. <meta property="docfx:tocrel" content="toc.html">
  19. <meta property="docfx:rel" content="../../">
  20. </head>
  21. <body data-spy="scroll" data-target="#affix" data-offset="120">
  22. <div id="wrapper">
  23. <header>
  24. <nav id="autocollapse" class="navbar navbar-inverse ng-scope" role="navigation">
  25. <div class="container">
  26. <div class="navbar-header">
  27. <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar">
  28. <span class="sr-only">Toggle navigation</span>
  29. <span class="icon-bar"></span>
  30. <span class="icon-bar"></span>
  31. <span class="icon-bar"></span>
  32. </button>
  33. <a class="navbar-brand" href="../../index.html">
  34. <img id="logo" class="svg" src="../../images/logo48.png" alt="">
  35. </a>
  36. </div>
  37. <div class="collapse navbar-collapse" id="navbar">
  38. <form class="navbar-form navbar-right" role="search" id="search">
  39. <div class="form-group">
  40. <input type="text" class="form-control" id="search-query" placeholder="Search" autocomplete="off">
  41. </div>
  42. </form>
  43. </div>
  44. </div>
  45. </nav>
  46. <div class="subnav navbar navbar-default">
  47. <div class="container hide-when-search" id="breadcrumb">
  48. <ul class="breadcrumb">
  49. <li></li>
  50. </ul>
  51. </div>
  52. </div>
  53. </header>
  54. <div class="container body-content">
  55. <div id="search-results">
  56. <div class="search-list">Search Results for <span></span></div>
  57. <div class="sr-items">
  58. <p><i class="glyphicon glyphicon-refresh index-loading"></i></p>
  59. </div>
  60. <ul id="pagination" data-first="First" data-prev="Previous" data-next="Next" data-last="Last"></ul>
  61. </div>
  62. </div>
  63. <div role="main" class="container body-content hide-when-search">
  64. <div class="sidenav hide-when-search">
  65. <a class="btn toc-toggle collapse" data-toggle="collapse" href="#sidetoggle" aria-expanded="false" aria-controls="sidetoggle">Show / Hide Table of Contents</a>
  66. <div class="sidetoggle collapse" id="sidetoggle">
  67. <div id="sidetoc"></div>
  68. </div>
  69. </div>
  70. <div class="article row grid-right">
  71. <div class="col-md-10">
  72. <article class="content wrap" id="_content" data-uid="Terminal.Gui.TreeView`1">
  73. <h1 id="Terminal_Gui_TreeView_1" data-uid="Terminal.Gui.TreeView`1" class="text-break">Class TreeView&lt;T&gt;
  74. </h1>
  75. <div class="markdown level0 summary">
  76. Hierarchical tree view with expandable branches. Branch objects are dynamically determined
  77. when expanded using a user defined <a class="xref" href="Terminal.Gui.Trees.ITreeBuilder-1.html">ITreeBuilder&lt;T&gt;</a>
  78. <a href="https://migueldeicaza.github.io/gui.cs/articles/treeview.html">See TreeView Deep Dive for more information</a>.
  79. </div>
  80. <div class="markdown level0 conceptual"></div>
  81. <div class="inheritance">
  82. <h5>Inheritance</h5>
  83. <div class="level0"><span class="xref">System.Object</span></div>
  84. <div class="level1"><a class="xref" href="Terminal.Gui.Responder.html">Responder</a></div>
  85. <div class="level2"><a class="xref" href="Terminal.Gui.View.html">View</a></div>
  86. <div class="level3"><span class="xref">TreeView&lt;T&gt;</span></div>
  87. <div class="level4"><a class="xref" href="Terminal.Gui.TreeView.html">TreeView</a></div>
  88. </div>
  89. <div classs="implements">
  90. <h5>Implements</h5>
  91. <div><span class="xref">System.IDisposable</span></div>
  92. <div><span class="xref">System.ComponentModel.ISupportInitializeNotification</span></div>
  93. <div><span class="xref">System.ComponentModel.ISupportInitialize</span></div>
  94. <div><a class="xref" href="Terminal.Gui.ITreeView.html">ITreeView</a></div>
  95. </div>
  96. <div class="inheritedMembers">
  97. <h5>Inherited Members</h5>
  98. <div>
  99. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Added">View.Added</a>
  100. </div>
  101. <div>
  102. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Removed">View.Removed</a>
  103. </div>
  104. <div>
  105. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Enter">View.Enter</a>
  106. </div>
  107. <div>
  108. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Leave">View.Leave</a>
  109. </div>
  110. <div>
  111. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_MouseEnter">View.MouseEnter</a>
  112. </div>
  113. <div>
  114. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_MouseLeave">View.MouseLeave</a>
  115. </div>
  116. <div>
  117. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_MouseClick">View.MouseClick</a>
  118. </div>
  119. <div>
  120. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_CanFocusChanged">View.CanFocusChanged</a>
  121. </div>
  122. <div>
  123. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_EnabledChanged">View.EnabledChanged</a>
  124. </div>
  125. <div>
  126. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_VisibleChanged">View.VisibleChanged</a>
  127. </div>
  128. <div>
  129. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_HotKeyChanged">View.HotKeyChanged</a>
  130. </div>
  131. <div>
  132. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_HotKey">View.HotKey</a>
  133. </div>
  134. <div>
  135. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_HotKeySpecifier">View.HotKeySpecifier</a>
  136. </div>
  137. <div>
  138. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Shortcut">View.Shortcut</a>
  139. </div>
  140. <div>
  141. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_ShortcutTag">View.ShortcutTag</a>
  142. </div>
  143. <div>
  144. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_ShortcutAction">View.ShortcutAction</a>
  145. </div>
  146. <div>
  147. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Data">View.Data</a>
  148. </div>
  149. <div>
  150. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Driver">View.Driver</a>
  151. </div>
  152. <div>
  153. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Subviews">View.Subviews</a>
  154. </div>
  155. <div>
  156. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_TabIndexes">View.TabIndexes</a>
  157. </div>
  158. <div>
  159. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_TabIndex">View.TabIndex</a>
  160. </div>
  161. <div>
  162. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_TabStop">View.TabStop</a>
  163. </div>
  164. <div>
  165. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_CanFocus">View.CanFocus</a>
  166. </div>
  167. <div>
  168. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Id">View.Id</a>
  169. </div>
  170. <div>
  171. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_IsCurrentTop">View.IsCurrentTop</a>
  172. </div>
  173. <div>
  174. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_WantMousePositionReports">View.WantMousePositionReports</a>
  175. </div>
  176. <div>
  177. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_WantContinuousButtonPressed">View.WantContinuousButtonPressed</a>
  178. </div>
  179. <div>
  180. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Frame">View.Frame</a>
  181. </div>
  182. <div>
  183. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_LayoutStyle">View.LayoutStyle</a>
  184. </div>
  185. <div>
  186. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Bounds">View.Bounds</a>
  187. </div>
  188. <div>
  189. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_X">View.X</a>
  190. </div>
  191. <div>
  192. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Y">View.Y</a>
  193. </div>
  194. <div>
  195. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Width">View.Width</a>
  196. </div>
  197. <div>
  198. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Height">View.Height</a>
  199. </div>
  200. <div>
  201. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_TextFormatter">View.TextFormatter</a>
  202. </div>
  203. <div>
  204. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_SuperView">View.SuperView</a>
  205. </div>
  206. <div>
  207. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_SetNeedsDisplay">View.SetNeedsDisplay()</a>
  208. </div>
  209. <div>
  210. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_ClearLayoutNeeded">View.ClearLayoutNeeded()</a>
  211. </div>
  212. <div>
  213. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_SetNeedsDisplay_Terminal_Gui_Rect_">View.SetNeedsDisplay(Rect)</a>
  214. </div>
  215. <div>
  216. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_SetChildNeedsDisplay">View.SetChildNeedsDisplay()</a>
  217. </div>
  218. <div>
  219. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Add_Terminal_Gui_View_">View.Add(View)</a>
  220. </div>
  221. <div>
  222. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Add_Terminal_Gui_View___">View.Add(View[])</a>
  223. </div>
  224. <div>
  225. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_RemoveAll">View.RemoveAll()</a>
  226. </div>
  227. <div>
  228. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Remove_Terminal_Gui_View_">View.Remove(View)</a>
  229. </div>
  230. <div>
  231. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_BringSubviewToFront_Terminal_Gui_View_">View.BringSubviewToFront(View)</a>
  232. </div>
  233. <div>
  234. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_SendSubviewToBack_Terminal_Gui_View_">View.SendSubviewToBack(View)</a>
  235. </div>
  236. <div>
  237. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_SendSubviewBackwards_Terminal_Gui_View_">View.SendSubviewBackwards(View)</a>
  238. </div>
  239. <div>
  240. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_BringSubviewForward_Terminal_Gui_View_">View.BringSubviewForward(View)</a>
  241. </div>
  242. <div>
  243. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Clear">View.Clear()</a>
  244. </div>
  245. <div>
  246. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Clear_Terminal_Gui_Rect_">View.Clear(Rect)</a>
  247. </div>
  248. <div>
  249. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_ScreenToView_System_Int32_System_Int32_">View.ScreenToView(Int32, Int32)</a>
  250. </div>
  251. <div>
  252. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_ClipToBounds">View.ClipToBounds()</a>
  253. </div>
  254. <div>
  255. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_SetClip_Terminal_Gui_Rect_">View.SetClip(Rect)</a>
  256. </div>
  257. <div>
  258. <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>
  259. </div>
  260. <div>
  261. <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>
  262. </div>
  263. <div>
  264. <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>
  265. </div>
  266. <div>
  267. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Move_System_Int32_System_Int32_System_Boolean_">View.Move(Int32, Int32, Boolean)</a>
  268. </div>
  269. <div>
  270. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_HasFocus">View.HasFocus</a>
  271. </div>
  272. <div>
  273. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_OnAdded_Terminal_Gui_View_">View.OnAdded(View)</a>
  274. </div>
  275. <div>
  276. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_OnRemoved_Terminal_Gui_View_">View.OnRemoved(View)</a>
  277. </div>
  278. <div>
  279. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_OnLeave_Terminal_Gui_View_">View.OnLeave(View)</a>
  280. </div>
  281. <div>
  282. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Focused">View.Focused</a>
  283. </div>
  284. <div>
  285. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_MostFocused">View.MostFocused</a>
  286. </div>
  287. <div>
  288. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_ColorScheme">View.ColorScheme</a>
  289. </div>
  290. <div>
  291. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_AddRune_System_Int32_System_Int32_System_Rune_">View.AddRune(Int32, Int32, Rune)</a>
  292. </div>
  293. <div>
  294. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_ClearNeedsDisplay">View.ClearNeedsDisplay()</a>
  295. </div>
  296. <div>
  297. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_DrawContent">View.DrawContent</a>
  298. </div>
  299. <div>
  300. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_OnDrawContent_Terminal_Gui_Rect_">View.OnDrawContent(Rect)</a>
  301. </div>
  302. <div>
  303. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_DrawContentComplete">View.DrawContentComplete</a>
  304. </div>
  305. <div>
  306. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_OnDrawContentComplete_Terminal_Gui_Rect_">View.OnDrawContentComplete(Rect)</a>
  307. </div>
  308. <div>
  309. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_SetFocus">View.SetFocus()</a>
  310. </div>
  311. <div>
  312. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_KeyPress">View.KeyPress</a>
  313. </div>
  314. <div>
  315. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_InvokeKeybindings_Terminal_Gui_KeyEvent_">View.InvokeKeybindings(KeyEvent)</a>
  316. </div>
  317. <div>
  318. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_AddKeyBinding_Terminal_Gui_Key_Terminal_Gui_Command_">View.AddKeyBinding(Key, Command)</a>
  319. </div>
  320. <div>
  321. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_ReplaceKeyBinding_Terminal_Gui_Key_Terminal_Gui_Key_">View.ReplaceKeyBinding(Key, Key)</a>
  322. </div>
  323. <div>
  324. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_ContainsKeyBinding_Terminal_Gui_Key_">View.ContainsKeyBinding(Key)</a>
  325. </div>
  326. <div>
  327. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_ClearKeybindings">View.ClearKeybindings()</a>
  328. </div>
  329. <div>
  330. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_ClearKeybinding_Terminal_Gui_Key_">View.ClearKeybinding(Key)</a>
  331. </div>
  332. <div>
  333. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_ClearKeybinding_Terminal_Gui_Command_">View.ClearKeybinding(Command)</a>
  334. </div>
  335. <div>
  336. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_AddCommand_Terminal_Gui_Command_System_Func_System_Nullable_System_Boolean___">View.AddCommand(Command, Func&lt;Nullable&lt;Boolean&gt;&gt;)</a>
  337. </div>
  338. <div>
  339. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_GetSupportedCommands">View.GetSupportedCommands()</a>
  340. </div>
  341. <div>
  342. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_GetKeyFromCommand_Terminal_Gui_Command_">View.GetKeyFromCommand(Command)</a>
  343. </div>
  344. <div>
  345. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_ProcessHotKey_Terminal_Gui_KeyEvent_">View.ProcessHotKey(KeyEvent)</a>
  346. </div>
  347. <div>
  348. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_ProcessColdKey_Terminal_Gui_KeyEvent_">View.ProcessColdKey(KeyEvent)</a>
  349. </div>
  350. <div>
  351. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_KeyDown">View.KeyDown</a>
  352. </div>
  353. <div>
  354. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_OnKeyDown_Terminal_Gui_KeyEvent_">View.OnKeyDown(KeyEvent)</a>
  355. </div>
  356. <div>
  357. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_KeyUp">View.KeyUp</a>
  358. </div>
  359. <div>
  360. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_OnKeyUp_Terminal_Gui_KeyEvent_">View.OnKeyUp(KeyEvent)</a>
  361. </div>
  362. <div>
  363. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_EnsureFocus">View.EnsureFocus()</a>
  364. </div>
  365. <div>
  366. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_FocusFirst">View.FocusFirst()</a>
  367. </div>
  368. <div>
  369. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_FocusLast">View.FocusLast()</a>
  370. </div>
  371. <div>
  372. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_FocusPrev">View.FocusPrev()</a>
  373. </div>
  374. <div>
  375. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_FocusNext">View.FocusNext()</a>
  376. </div>
  377. <div>
  378. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_LayoutStarted">View.LayoutStarted</a>
  379. </div>
  380. <div>
  381. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_LayoutComplete">View.LayoutComplete</a>
  382. </div>
  383. <div>
  384. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Initialized">View.Initialized</a>
  385. </div>
  386. <div>
  387. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_LayoutSubviews">View.LayoutSubviews()</a>
  388. </div>
  389. <div>
  390. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Text">View.Text</a>
  391. </div>
  392. <div>
  393. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_AutoSize">View.AutoSize</a>
  394. </div>
  395. <div>
  396. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_TextAlignment">View.TextAlignment</a>
  397. </div>
  398. <div>
  399. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_VerticalTextAlignment">View.VerticalTextAlignment</a>
  400. </div>
  401. <div>
  402. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_TextDirection">View.TextDirection</a>
  403. </div>
  404. <div>
  405. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_IsInitialized">View.IsInitialized</a>
  406. </div>
  407. <div>
  408. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Enabled">View.Enabled</a>
  409. </div>
  410. <div>
  411. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Visible">View.Visible</a>
  412. </div>
  413. <div>
  414. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Border">View.Border</a>
  415. </div>
  416. <div>
  417. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_ToString">View.ToString()</a>
  418. </div>
  419. <div>
  420. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_OnMouseEnter_Terminal_Gui_MouseEvent_">View.OnMouseEnter(MouseEvent)</a>
  421. </div>
  422. <div>
  423. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_OnMouseLeave_Terminal_Gui_MouseEvent_">View.OnMouseLeave(MouseEvent)</a>
  424. </div>
  425. <div>
  426. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_OnMouseEvent_Terminal_Gui_MouseEvent_">View.OnMouseEvent(MouseEvent)</a>
  427. </div>
  428. <div>
  429. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_OnMouseClick_Terminal_Gui_View_MouseEventArgs_">View.OnMouseClick(View.MouseEventArgs)</a>
  430. </div>
  431. <div>
  432. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_OnCanFocusChanged">View.OnCanFocusChanged()</a>
  433. </div>
  434. <div>
  435. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_OnEnabledChanged">View.OnEnabledChanged()</a>
  436. </div>
  437. <div>
  438. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_OnVisibleChanged">View.OnVisibleChanged()</a>
  439. </div>
  440. <div>
  441. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Dispose_System_Boolean_">View.Dispose(Boolean)</a>
  442. </div>
  443. <div>
  444. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_BeginInit">View.BeginInit()</a>
  445. </div>
  446. <div>
  447. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_EndInit">View.EndInit()</a>
  448. </div>
  449. <div>
  450. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_SetWidth_System_Int32_System_Int32__">View.SetWidth(Int32, Int32)</a>
  451. </div>
  452. <div>
  453. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_SetHeight_System_Int32_System_Int32__">View.SetHeight(Int32, Int32)</a>
  454. </div>
  455. <div>
  456. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_GetCurrentWidth_System_Int32__">View.GetCurrentWidth(Int32)</a>
  457. </div>
  458. <div>
  459. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_GetCurrentHeight_System_Int32__">View.GetCurrentHeight(Int32)</a>
  460. </div>
  461. <div>
  462. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_GetNormalColor">View.GetNormalColor()</a>
  463. </div>
  464. <div>
  465. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_GetTopSuperView">View.GetTopSuperView()</a>
  466. </div>
  467. <div>
  468. <a class="xref" href="Terminal.Gui.Responder.html#Terminal_Gui_Responder_Dispose">Responder.Dispose()</a>
  469. </div>
  470. <div>
  471. <span class="xref">System.Object.Equals(System.Object)</span>
  472. </div>
  473. <div>
  474. <span class="xref">System.Object.Equals(System.Object, System.Object)</span>
  475. </div>
  476. <div>
  477. <span class="xref">System.Object.GetHashCode()</span>
  478. </div>
  479. <div>
  480. <span class="xref">System.Object.GetType()</span>
  481. </div>
  482. <div>
  483. <span class="xref">System.Object.MemberwiseClone()</span>
  484. </div>
  485. <div>
  486. <span class="xref">System.Object.ReferenceEquals(System.Object, System.Object)</span>
  487. </div>
  488. </div>
  489. <h6><strong>Namespace</strong>: <a class="xref" href="Terminal.Gui.html">Terminal.Gui</a></h6>
  490. <h6><strong>Assembly</strong>: Terminal.Gui.dll</h6>
  491. <h5 id="Terminal_Gui_TreeView_1_syntax">Syntax</h5>
  492. <div class="codewrapper">
  493. <pre><code class="lang-csharp hljs">public class TreeView&lt;T&gt; : View, IDisposable, ISupportInitializeNotification, ISupportInitialize, ITreeView where T : class</code></pre>
  494. </div>
  495. <h5 class="typeParameters">Type Parameters</h5>
  496. <table class="table table-bordered table-striped table-condensed">
  497. <thead>
  498. <tr>
  499. <th>Name</th>
  500. <th>Description</th>
  501. </tr>
  502. </thead>
  503. <tbody>
  504. <tr>
  505. <td><span class="parametername">T</span></td>
  506. <td></td>
  507. </tr>
  508. </tbody>
  509. </table>
  510. <h3 id="constructors">Constructors
  511. </h3>
  512. <a id="Terminal_Gui_TreeView_1__ctor_" data-uid="Terminal.Gui.TreeView`1.#ctor*"></a>
  513. <h4 id="Terminal_Gui_TreeView_1__ctor" data-uid="Terminal.Gui.TreeView`1.#ctor">TreeView()</h4>
  514. <div class="markdown level1 summary">
  515. Creates a new tree view with absolute positioning.
  516. 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.
  517. Children will not be rendered until you set <a class="xref" href="Terminal.Gui.TreeView-1.html#Terminal_Gui_TreeView_1_TreeBuilder">TreeBuilder</a>
  518. </div>
  519. <div class="markdown level1 conceptual"></div>
  520. <h5 class="decalaration">Declaration</h5>
  521. <div class="codewrapper">
  522. <pre><code class="lang-csharp hljs">public TreeView()</code></pre>
  523. </div>
  524. <a id="Terminal_Gui_TreeView_1__ctor_" data-uid="Terminal.Gui.TreeView`1.#ctor*"></a>
  525. <h4 id="Terminal_Gui_TreeView_1__ctor_Terminal_Gui_Trees_ITreeBuilder__0__" data-uid="Terminal.Gui.TreeView`1.#ctor(Terminal.Gui.Trees.ITreeBuilder{`0})">TreeView(ITreeBuilder&lt;T&gt;)</h4>
  526. <div class="markdown level1 summary">
  527. Initialises <a class="xref" href="Terminal.Gui.TreeView-1.html#Terminal_Gui_TreeView_1_TreeBuilder">TreeBuilder</a>.Creates a new tree view with absolute
  528. 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
  529. objects for the tree.
  530. </div>
  531. <div class="markdown level1 conceptual"></div>
  532. <h5 class="decalaration">Declaration</h5>
  533. <div class="codewrapper">
  534. <pre><code class="lang-csharp hljs">public TreeView(ITreeBuilder&lt;T&gt; builder)</code></pre>
  535. </div>
  536. <h5 class="parameters">Parameters</h5>
  537. <table class="table table-bordered table-striped table-condensed">
  538. <thead>
  539. <tr>
  540. <th>Type</th>
  541. <th>Name</th>
  542. <th>Description</th>
  543. </tr>
  544. </thead>
  545. <tbody>
  546. <tr>
  547. <td><a class="xref" href="Terminal.Gui.Trees.ITreeBuilder-1.html">ITreeBuilder</a>&lt;T&gt;</td>
  548. <td><span class="parametername">builder</span></td>
  549. <td></td>
  550. </tr>
  551. </tbody>
  552. </table>
  553. <h3 id="fields">Fields
  554. </h3>
  555. <h4 id="Terminal_Gui_TreeView_1_NoBuilderError" data-uid="Terminal.Gui.TreeView`1.NoBuilderError">NoBuilderError</h4>
  556. <div class="markdown level1 summary">
  557. Error message to display when the control is not properly initialized at draw time
  558. (nodes added but no tree builder set)
  559. </div>
  560. <div class="markdown level1 conceptual"></div>
  561. <h5 class="decalaration">Declaration</h5>
  562. <div class="codewrapper">
  563. <pre><code class="lang-csharp hljs">public static ustring NoBuilderError</code></pre>
  564. </div>
  565. <h5 class="fieldValue">Field Value</h5>
  566. <table class="table table-bordered table-striped table-condensed">
  567. <thead>
  568. <tr>
  569. <th>Type</th>
  570. <th>Description</th>
  571. </tr>
  572. </thead>
  573. <tbody>
  574. <tr>
  575. <td><span class="xref">NStack.ustring</span></td>
  576. <td></td>
  577. </tr>
  578. </tbody>
  579. </table>
  580. <h3 id="properties">Properties
  581. </h3>
  582. <a id="Terminal_Gui_TreeView_1_AllowLetterBasedNavigation_" data-uid="Terminal.Gui.TreeView`1.AllowLetterBasedNavigation*"></a>
  583. <h4 id="Terminal_Gui_TreeView_1_AllowLetterBasedNavigation" data-uid="Terminal.Gui.TreeView`1.AllowLetterBasedNavigation">AllowLetterBasedNavigation</h4>
  584. <div class="markdown level1 summary">
  585. True makes a letter key press navigate to the next visible branch that begins with
  586. that letter/digit
  587. </div>
  588. <div class="markdown level1 conceptual"></div>
  589. <h5 class="decalaration">Declaration</h5>
  590. <div class="codewrapper">
  591. <pre><code class="lang-csharp hljs">public bool AllowLetterBasedNavigation { get; set; }</code></pre>
  592. </div>
  593. <h5 class="propertyValue">Property Value</h5>
  594. <table class="table table-bordered table-striped table-condensed">
  595. <thead>
  596. <tr>
  597. <th>Type</th>
  598. <th>Description</th>
  599. </tr>
  600. </thead>
  601. <tbody>
  602. <tr>
  603. <td><span class="xref">System.Boolean</span></td>
  604. <td></td>
  605. </tr>
  606. </tbody>
  607. </table>
  608. <a id="Terminal_Gui_TreeView_1_AspectGetter_" data-uid="Terminal.Gui.TreeView`1.AspectGetter*"></a>
  609. <h4 id="Terminal_Gui_TreeView_1_AspectGetter" data-uid="Terminal.Gui.TreeView`1.AspectGetter">AspectGetter</h4>
  610. <div class="markdown level1 summary">
  611. Returns the string representation of model objects hosted in the tree. Default
  612. implementation is to call <span class="xref">System.Object.ToString()</span>
  613. </div>
  614. <div class="markdown level1 conceptual"></div>
  615. <h5 class="decalaration">Declaration</h5>
  616. <div class="codewrapper">
  617. <pre><code class="lang-csharp hljs">public AspectGetterDelegate&lt;T&gt; AspectGetter { get; set; }</code></pre>
  618. </div>
  619. <h5 class="propertyValue">Property Value</h5>
  620. <table class="table table-bordered table-striped table-condensed">
  621. <thead>
  622. <tr>
  623. <th>Type</th>
  624. <th>Description</th>
  625. </tr>
  626. </thead>
  627. <tbody>
  628. <tr>
  629. <td><a class="xref" href="Terminal.Gui.Trees.AspectGetterDelegate-1.html">AspectGetterDelegate</a>&lt;T&gt;</td>
  630. <td></td>
  631. </tr>
  632. </tbody>
  633. </table>
  634. <a id="Terminal_Gui_TreeView_1_ColorGetter_" data-uid="Terminal.Gui.TreeView`1.ColorGetter*"></a>
  635. <h4 id="Terminal_Gui_TreeView_1_ColorGetter" data-uid="Terminal.Gui.TreeView`1.ColorGetter">ColorGetter</h4>
  636. <div class="markdown level1 summary">
  637. Delegate for multi colored tree views. Return the <a class="xref" href="Terminal.Gui.ColorScheme.html">ColorScheme</a> to use
  638. for each passed object or null to use the default.
  639. </div>
  640. <div class="markdown level1 conceptual"></div>
  641. <h5 class="decalaration">Declaration</h5>
  642. <div class="codewrapper">
  643. <pre><code class="lang-csharp hljs">public Func&lt;T, ColorScheme&gt; ColorGetter { get; set; }</code></pre>
  644. </div>
  645. <h5 class="propertyValue">Property Value</h5>
  646. <table class="table table-bordered table-striped table-condensed">
  647. <thead>
  648. <tr>
  649. <th>Type</th>
  650. <th>Description</th>
  651. </tr>
  652. </thead>
  653. <tbody>
  654. <tr>
  655. <td><span class="xref">System.Func</span>&lt;T, <a class="xref" href="Terminal.Gui.ColorScheme.html">ColorScheme</a>&gt;</td>
  656. <td></td>
  657. </tr>
  658. </tbody>
  659. </table>
  660. <a id="Terminal_Gui_TreeView_1_ContentHeight_" data-uid="Terminal.Gui.TreeView`1.ContentHeight*"></a>
  661. <h4 id="Terminal_Gui_TreeView_1_ContentHeight" data-uid="Terminal.Gui.TreeView`1.ContentHeight">ContentHeight</h4>
  662. <div class="markdown level1 summary">
  663. The current number of rows in the tree (ignoring the controls bounds)
  664. </div>
  665. <div class="markdown level1 conceptual"></div>
  666. <h5 class="decalaration">Declaration</h5>
  667. <div class="codewrapper">
  668. <pre><code class="lang-csharp hljs">public int ContentHeight { get; }</code></pre>
  669. </div>
  670. <h5 class="propertyValue">Property Value</h5>
  671. <table class="table table-bordered table-striped table-condensed">
  672. <thead>
  673. <tr>
  674. <th>Type</th>
  675. <th>Description</th>
  676. </tr>
  677. </thead>
  678. <tbody>
  679. <tr>
  680. <td><span class="xref">System.Int32</span></td>
  681. <td></td>
  682. </tr>
  683. </tbody>
  684. </table>
  685. <a id="Terminal_Gui_TreeView_1_DesiredCursorVisibility_" data-uid="Terminal.Gui.TreeView`1.DesiredCursorVisibility*"></a>
  686. <h4 id="Terminal_Gui_TreeView_1_DesiredCursorVisibility" data-uid="Terminal.Gui.TreeView`1.DesiredCursorVisibility">DesiredCursorVisibility</h4>
  687. <div class="markdown level1 summary">
  688. Get / Set the wished cursor when the tree is focused
  689. </div>
  690. <div class="markdown level1 conceptual"></div>
  691. <h5 class="decalaration">Declaration</h5>
  692. <div class="codewrapper">
  693. <pre><code class="lang-csharp hljs">public CursorVisibility DesiredCursorVisibility { get; set; }</code></pre>
  694. </div>
  695. <h5 class="propertyValue">Property Value</h5>
  696. <table class="table table-bordered table-striped table-condensed">
  697. <thead>
  698. <tr>
  699. <th>Type</th>
  700. <th>Description</th>
  701. </tr>
  702. </thead>
  703. <tbody>
  704. <tr>
  705. <td><a class="xref" href="Terminal.Gui.CursorVisibility.html">CursorVisibility</a></td>
  706. <td></td>
  707. </tr>
  708. </tbody>
  709. </table>
  710. <a id="Terminal_Gui_TreeView_1_MultiSelect_" data-uid="Terminal.Gui.TreeView`1.MultiSelect*"></a>
  711. <h4 id="Terminal_Gui_TreeView_1_MultiSelect" data-uid="Terminal.Gui.TreeView`1.MultiSelect">MultiSelect</h4>
  712. <div class="markdown level1 summary">
  713. True to allow multiple objects to be selected at once
  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 bool MultiSelect { 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.Boolean</span></td>
  731. <td></td>
  732. </tr>
  733. </tbody>
  734. </table>
  735. <a id="Terminal_Gui_TreeView_1_ObjectActivationButton_" data-uid="Terminal.Gui.TreeView`1.ObjectActivationButton*"></a>
  736. <h4 id="Terminal_Gui_TreeView_1_ObjectActivationButton" data-uid="Terminal.Gui.TreeView`1.ObjectActivationButton">ObjectActivationButton</h4>
  737. <div class="markdown level1 summary">
  738. Mouse event to trigger <a class="xref" href="Terminal.Gui.TreeView-1.html#Terminal_Gui_TreeView_1_ObjectActivated">ObjectActivated</a>.
  739. Defaults to double click (<a class="xref" href="Terminal.Gui.MouseFlags.html#Terminal_Gui_MouseFlags_Button1DoubleClicked">Button1DoubleClicked</a>).
  740. Set to null to disable this feature.
  741. </div>
  742. <div class="markdown level1 conceptual"></div>
  743. <h5 class="decalaration">Declaration</h5>
  744. <div class="codewrapper">
  745. <pre><code class="lang-csharp hljs">public MouseFlags? ObjectActivationButton { get; set; }</code></pre>
  746. </div>
  747. <h5 class="propertyValue">Property Value</h5>
  748. <table class="table table-bordered table-striped table-condensed">
  749. <thead>
  750. <tr>
  751. <th>Type</th>
  752. <th>Description</th>
  753. </tr>
  754. </thead>
  755. <tbody>
  756. <tr>
  757. <td><span class="xref">System.Nullable</span>&lt;<a class="xref" href="Terminal.Gui.MouseFlags.html">MouseFlags</a>&gt;</td>
  758. <td></td>
  759. </tr>
  760. </tbody>
  761. </table>
  762. <a id="Terminal_Gui_TreeView_1_ObjectActivationKey_" data-uid="Terminal.Gui.TreeView`1.ObjectActivationKey*"></a>
  763. <h4 id="Terminal_Gui_TreeView_1_ObjectActivationKey" data-uid="Terminal.Gui.TreeView`1.ObjectActivationKey">ObjectActivationKey</h4>
  764. <div class="markdown level1 summary">
  765. Key which when pressed triggers <a class="xref" href="Terminal.Gui.TreeView-1.html#Terminal_Gui_TreeView_1_ObjectActivated">ObjectActivated</a>.
  766. Defaults to Enter
  767. </div>
  768. <div class="markdown level1 conceptual"></div>
  769. <h5 class="decalaration">Declaration</h5>
  770. <div class="codewrapper">
  771. <pre><code class="lang-csharp hljs">public Key ObjectActivationKey { get; set; }</code></pre>
  772. </div>
  773. <h5 class="propertyValue">Property Value</h5>
  774. <table class="table table-bordered table-striped table-condensed">
  775. <thead>
  776. <tr>
  777. <th>Type</th>
  778. <th>Description</th>
  779. </tr>
  780. </thead>
  781. <tbody>
  782. <tr>
  783. <td><a class="xref" href="Terminal.Gui.Key.html">Key</a></td>
  784. <td></td>
  785. </tr>
  786. </tbody>
  787. </table>
  788. <a id="Terminal_Gui_TreeView_1_Objects_" data-uid="Terminal.Gui.TreeView`1.Objects*"></a>
  789. <h4 id="Terminal_Gui_TreeView_1_Objects" data-uid="Terminal.Gui.TreeView`1.Objects">Objects</h4>
  790. <div class="markdown level1 summary">
  791. The root objects in the tree, note that this collection is of root objects only
  792. </div>
  793. <div class="markdown level1 conceptual"></div>
  794. <h5 class="decalaration">Declaration</h5>
  795. <div class="codewrapper">
  796. <pre><code class="lang-csharp hljs">public IEnumerable&lt;T&gt; Objects { get; }</code></pre>
  797. </div>
  798. <h5 class="propertyValue">Property Value</h5>
  799. <table class="table table-bordered table-striped table-condensed">
  800. <thead>
  801. <tr>
  802. <th>Type</th>
  803. <th>Description</th>
  804. </tr>
  805. </thead>
  806. <tbody>
  807. <tr>
  808. <td><span class="xref">System.Collections.Generic.IEnumerable</span>&lt;T&gt;</td>
  809. <td></td>
  810. </tr>
  811. </tbody>
  812. </table>
  813. <a id="Terminal_Gui_TreeView_1_ScrollOffsetHorizontal_" data-uid="Terminal.Gui.TreeView`1.ScrollOffsetHorizontal*"></a>
  814. <h4 id="Terminal_Gui_TreeView_1_ScrollOffsetHorizontal" data-uid="Terminal.Gui.TreeView`1.ScrollOffsetHorizontal">ScrollOffsetHorizontal</h4>
  815. <div class="markdown level1 summary">
  816. The amount of tree view that has been scrolled to the right (horizontally)
  817. </div>
  818. <div class="markdown level1 conceptual"></div>
  819. <h5 class="decalaration">Declaration</h5>
  820. <div class="codewrapper">
  821. <pre><code class="lang-csharp hljs">public int ScrollOffsetHorizontal { get; set; }</code></pre>
  822. </div>
  823. <h5 class="propertyValue">Property Value</h5>
  824. <table class="table table-bordered table-striped table-condensed">
  825. <thead>
  826. <tr>
  827. <th>Type</th>
  828. <th>Description</th>
  829. </tr>
  830. </thead>
  831. <tbody>
  832. <tr>
  833. <td><span class="xref">System.Int32</span></td>
  834. <td></td>
  835. </tr>
  836. </tbody>
  837. </table>
  838. <h5 id="Terminal_Gui_TreeView_1_ScrollOffsetHorizontal_remarks">Remarks</h5>
  839. <div class="markdown level1 remarks">Setting a value of less than 0 will result in a offset of 0. To see changes
  840. in the UI call <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_SetNeedsDisplay">SetNeedsDisplay()</a></div>
  841. <a id="Terminal_Gui_TreeView_1_ScrollOffsetVertical_" data-uid="Terminal.Gui.TreeView`1.ScrollOffsetVertical*"></a>
  842. <h4 id="Terminal_Gui_TreeView_1_ScrollOffsetVertical" data-uid="Terminal.Gui.TreeView`1.ScrollOffsetVertical">ScrollOffsetVertical</h4>
  843. <div class="markdown level1 summary">
  844. The amount of tree view that has been scrolled off the top of the screen (by the user
  845. scrolling down)
  846. </div>
  847. <div class="markdown level1 conceptual"></div>
  848. <h5 class="decalaration">Declaration</h5>
  849. <div class="codewrapper">
  850. <pre><code class="lang-csharp hljs">public int ScrollOffsetVertical { get; set; }</code></pre>
  851. </div>
  852. <h5 class="propertyValue">Property Value</h5>
  853. <table class="table table-bordered table-striped table-condensed">
  854. <thead>
  855. <tr>
  856. <th>Type</th>
  857. <th>Description</th>
  858. </tr>
  859. </thead>
  860. <tbody>
  861. <tr>
  862. <td><span class="xref">System.Int32</span></td>
  863. <td></td>
  864. </tr>
  865. </tbody>
  866. </table>
  867. <h5 id="Terminal_Gui_TreeView_1_ScrollOffsetVertical_remarks">Remarks</h5>
  868. <div class="markdown level1 remarks">Setting a value of less than 0 will result in a offset of 0. To see changes
  869. in the UI call <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_SetNeedsDisplay">SetNeedsDisplay()</a></div>
  870. <a id="Terminal_Gui_TreeView_1_SelectedObject_" data-uid="Terminal.Gui.TreeView`1.SelectedObject*"></a>
  871. <h4 id="Terminal_Gui_TreeView_1_SelectedObject" data-uid="Terminal.Gui.TreeView`1.SelectedObject">SelectedObject</h4>
  872. <div class="markdown level1 summary">
  873. 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
  874. is the object at which the cursor is at
  875. </div>
  876. <div class="markdown level1 conceptual"></div>
  877. <h5 class="decalaration">Declaration</h5>
  878. <div class="codewrapper">
  879. <pre><code class="lang-csharp hljs">public T SelectedObject { get; set; }</code></pre>
  880. </div>
  881. <h5 class="propertyValue">Property Value</h5>
  882. <table class="table table-bordered table-striped table-condensed">
  883. <thead>
  884. <tr>
  885. <th>Type</th>
  886. <th>Description</th>
  887. </tr>
  888. </thead>
  889. <tbody>
  890. <tr>
  891. <td><span class="xref">T</span></td>
  892. <td></td>
  893. </tr>
  894. </tbody>
  895. </table>
  896. <a id="Terminal_Gui_TreeView_1_Style_" data-uid="Terminal.Gui.TreeView`1.Style*"></a>
  897. <h4 id="Terminal_Gui_TreeView_1_Style" data-uid="Terminal.Gui.TreeView`1.Style">Style</h4>
  898. <div class="markdown level1 summary">
  899. Contains options for changing how the tree is rendered
  900. </div>
  901. <div class="markdown level1 conceptual"></div>
  902. <h5 class="decalaration">Declaration</h5>
  903. <div class="codewrapper">
  904. <pre><code class="lang-csharp hljs">public TreeStyle Style { get; set; }</code></pre>
  905. </div>
  906. <h5 class="propertyValue">Property Value</h5>
  907. <table class="table table-bordered table-striped table-condensed">
  908. <thead>
  909. <tr>
  910. <th>Type</th>
  911. <th>Description</th>
  912. </tr>
  913. </thead>
  914. <tbody>
  915. <tr>
  916. <td><a class="xref" href="Terminal.Gui.Trees.TreeStyle.html">TreeStyle</a></td>
  917. <td></td>
  918. </tr>
  919. </tbody>
  920. </table>
  921. <a id="Terminal_Gui_TreeView_1_TreeBuilder_" data-uid="Terminal.Gui.TreeView`1.TreeBuilder*"></a>
  922. <h4 id="Terminal_Gui_TreeView_1_TreeBuilder" data-uid="Terminal.Gui.TreeView`1.TreeBuilder">TreeBuilder</h4>
  923. <div class="markdown level1 summary">
  924. Determines how sub branches of the tree are dynamically built at runtime as the user
  925. expands root nodes
  926. </div>
  927. <div class="markdown level1 conceptual"></div>
  928. <h5 class="decalaration">Declaration</h5>
  929. <div class="codewrapper">
  930. <pre><code class="lang-csharp hljs">public ITreeBuilder&lt;T&gt; TreeBuilder { get; set; }</code></pre>
  931. </div>
  932. <h5 class="propertyValue">Property Value</h5>
  933. <table class="table table-bordered table-striped table-condensed">
  934. <thead>
  935. <tr>
  936. <th>Type</th>
  937. <th>Description</th>
  938. </tr>
  939. </thead>
  940. <tbody>
  941. <tr>
  942. <td><a class="xref" href="Terminal.Gui.Trees.ITreeBuilder-1.html">ITreeBuilder</a>&lt;T&gt;</td>
  943. <td></td>
  944. </tr>
  945. </tbody>
  946. </table>
  947. <h3 id="methods">Methods
  948. </h3>
  949. <a id="Terminal_Gui_TreeView_1_ActivateSelectedObjectIfAny_" data-uid="Terminal.Gui.TreeView`1.ActivateSelectedObjectIfAny*"></a>
  950. <h4 id="Terminal_Gui_TreeView_1_ActivateSelectedObjectIfAny" data-uid="Terminal.Gui.TreeView`1.ActivateSelectedObjectIfAny">ActivateSelectedObjectIfAny()</h4>
  951. <div class="markdown level1 summary">
  952. <p>Triggers the <a class="xref" href="Terminal.Gui.TreeView-1.html#Terminal_Gui_TreeView_1_ObjectActivated">ObjectActivated</a> event with the <a class="xref" href="Terminal.Gui.TreeView-1.html#Terminal_Gui_TreeView_1_SelectedObject">SelectedObject</a>.</p>
  953. <p>This method also ensures that the selected object is visible</p>
  954. </div>
  955. <div class="markdown level1 conceptual"></div>
  956. <h5 class="decalaration">Declaration</h5>
  957. <div class="codewrapper">
  958. <pre><code class="lang-csharp hljs">public void ActivateSelectedObjectIfAny()</code></pre>
  959. </div>
  960. <a id="Terminal_Gui_TreeView_1_AddObject_" data-uid="Terminal.Gui.TreeView`1.AddObject*"></a>
  961. <h4 id="Terminal_Gui_TreeView_1_AddObject__0_" data-uid="Terminal.Gui.TreeView`1.AddObject(`0)">AddObject(T)</h4>
  962. <div class="markdown level1 summary">
  963. Adds a new root level object unless it is already a root of the tree
  964. </div>
  965. <div class="markdown level1 conceptual"></div>
  966. <h5 class="decalaration">Declaration</h5>
  967. <div class="codewrapper">
  968. <pre><code class="lang-csharp hljs">public void AddObject(T o)</code></pre>
  969. </div>
  970. <h5 class="parameters">Parameters</h5>
  971. <table class="table table-bordered table-striped table-condensed">
  972. <thead>
  973. <tr>
  974. <th>Type</th>
  975. <th>Name</th>
  976. <th>Description</th>
  977. </tr>
  978. </thead>
  979. <tbody>
  980. <tr>
  981. <td><span class="xref">T</span></td>
  982. <td><span class="parametername">o</span></td>
  983. <td></td>
  984. </tr>
  985. </tbody>
  986. </table>
  987. <a id="Terminal_Gui_TreeView_1_AddObjects_" data-uid="Terminal.Gui.TreeView`1.AddObjects*"></a>
  988. <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>
  989. <div class="markdown level1 summary">
  990. Adds many new root level objects. Objects that are already root objects are ignored
  991. </div>
  992. <div class="markdown level1 conceptual"></div>
  993. <h5 class="decalaration">Declaration</h5>
  994. <div class="codewrapper">
  995. <pre><code class="lang-csharp hljs">public void AddObjects(IEnumerable&lt;T&gt; collection)</code></pre>
  996. </div>
  997. <h5 class="parameters">Parameters</h5>
  998. <table class="table table-bordered table-striped table-condensed">
  999. <thead>
  1000. <tr>
  1001. <th>Type</th>
  1002. <th>Name</th>
  1003. <th>Description</th>
  1004. </tr>
  1005. </thead>
  1006. <tbody>
  1007. <tr>
  1008. <td><span class="xref">System.Collections.Generic.IEnumerable</span>&lt;T&gt;</td>
  1009. <td><span class="parametername">collection</span></td>
  1010. <td>Objects to add as new root level objects</td>
  1011. </tr>
  1012. </tbody>
  1013. </table>
  1014. <a id="Terminal_Gui_TreeView_1_AdjustSelection_" data-uid="Terminal.Gui.TreeView`1.AdjustSelection*"></a>
  1015. <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>
  1016. <div class="markdown level1 summary">
  1017. The number of screen lines to move the currently selected object by. Supports negative
  1018. <code data-dev-comment-type="paramref" class="paramref">offset</code>. Each branch occupies 1 line on screen
  1019. </div>
  1020. <div class="markdown level1 conceptual"></div>
  1021. <h5 class="decalaration">Declaration</h5>
  1022. <div class="codewrapper">
  1023. <pre><code class="lang-csharp hljs">public void AdjustSelection(int offset, bool expandSelection = false)</code></pre>
  1024. </div>
  1025. <h5 class="parameters">Parameters</h5>
  1026. <table class="table table-bordered table-striped table-condensed">
  1027. <thead>
  1028. <tr>
  1029. <th>Type</th>
  1030. <th>Name</th>
  1031. <th>Description</th>
  1032. </tr>
  1033. </thead>
  1034. <tbody>
  1035. <tr>
  1036. <td><span class="xref">System.Int32</span></td>
  1037. <td><span class="parametername">offset</span></td>
  1038. <td>Positive to move the selection down the screen, negative to move it up</td>
  1039. </tr>
  1040. <tr>
  1041. <td><span class="xref">System.Boolean</span></td>
  1042. <td><span class="parametername">expandSelection</span></td>
  1043. <td>True to expand the selection (assuming
  1044. <a class="xref" href="Terminal.Gui.TreeView-1.html#Terminal_Gui_TreeView_1_MultiSelect">MultiSelect</a> is enabled). False to replace</td>
  1045. </tr>
  1046. </tbody>
  1047. </table>
  1048. <h5 id="Terminal_Gui_TreeView_1_AdjustSelection_System_Int32_System_Boolean__remarks">Remarks</h5>
  1049. <div class="markdown level1 remarks">If nothing is currently selected or the selected object is no longer in the tree
  1050. then the first object in the tree is selected instead</div>
  1051. <a id="Terminal_Gui_TreeView_1_AdjustSelectionToBranchEnd_" data-uid="Terminal.Gui.TreeView`1.AdjustSelectionToBranchEnd*"></a>
  1052. <h4 id="Terminal_Gui_TreeView_1_AdjustSelectionToBranchEnd" data-uid="Terminal.Gui.TreeView`1.AdjustSelectionToBranchEnd">AdjustSelectionToBranchEnd()</h4>
  1053. <div class="markdown level1 summary">
  1054. Moves the selection to the last child in the currently selected level
  1055. </div>
  1056. <div class="markdown level1 conceptual"></div>
  1057. <h5 class="decalaration">Declaration</h5>
  1058. <div class="codewrapper">
  1059. <pre><code class="lang-csharp hljs">public void AdjustSelectionToBranchEnd()</code></pre>
  1060. </div>
  1061. <a id="Terminal_Gui_TreeView_1_AdjustSelectionToBranchStart_" data-uid="Terminal.Gui.TreeView`1.AdjustSelectionToBranchStart*"></a>
  1062. <h4 id="Terminal_Gui_TreeView_1_AdjustSelectionToBranchStart" data-uid="Terminal.Gui.TreeView`1.AdjustSelectionToBranchStart">AdjustSelectionToBranchStart()</h4>
  1063. <div class="markdown level1 summary">
  1064. Moves the selection to the first child in the currently selected level
  1065. </div>
  1066. <div class="markdown level1 conceptual"></div>
  1067. <h5 class="decalaration">Declaration</h5>
  1068. <div class="codewrapper">
  1069. <pre><code class="lang-csharp hljs">public void AdjustSelectionToBranchStart()</code></pre>
  1070. </div>
  1071. <a id="Terminal_Gui_TreeView_1_AdjustSelectionToNextItemBeginningWith_" data-uid="Terminal.Gui.TreeView`1.AdjustSelectionToNextItemBeginningWith*"></a>
  1072. <h4 id="Terminal_Gui_TreeView_1_AdjustSelectionToNextItemBeginningWith_System_Char_System_StringComparison_" data-uid="Terminal.Gui.TreeView`1.AdjustSelectionToNextItemBeginningWith(System.Char,System.StringComparison)">AdjustSelectionToNextItemBeginningWith(Char, StringComparison)</h4>
  1073. <div class="markdown level1 summary">
  1074. <p>Moves the <a class="xref" href="Terminal.Gui.TreeView-1.html#Terminal_Gui_TreeView_1_SelectedObject">SelectedObject</a> to the next item that begins with <code data-dev-comment-type="paramref" class="paramref">character</code></p>
  1075. <p>This method will loop back to the start of the tree if reaching the end without finding a match</p>
  1076. </div>
  1077. <div class="markdown level1 conceptual"></div>
  1078. <h5 class="decalaration">Declaration</h5>
  1079. <div class="codewrapper">
  1080. <pre><code class="lang-csharp hljs">public void AdjustSelectionToNextItemBeginningWith(char character, StringComparison caseSensitivity = StringComparison.CurrentCultureIgnoreCase)</code></pre>
  1081. </div>
  1082. <h5 class="parameters">Parameters</h5>
  1083. <table class="table table-bordered table-striped table-condensed">
  1084. <thead>
  1085. <tr>
  1086. <th>Type</th>
  1087. <th>Name</th>
  1088. <th>Description</th>
  1089. </tr>
  1090. </thead>
  1091. <tbody>
  1092. <tr>
  1093. <td><span class="xref">System.Char</span></td>
  1094. <td><span class="parametername">character</span></td>
  1095. <td>The first character of the next item you want selected</td>
  1096. </tr>
  1097. <tr>
  1098. <td><span class="xref">System.StringComparison</span></td>
  1099. <td><span class="parametername">caseSensitivity</span></td>
  1100. <td>Case sensitivity of the search</td>
  1101. </tr>
  1102. </tbody>
  1103. </table>
  1104. <a id="Terminal_Gui_TreeView_1_CanExpand_" data-uid="Terminal.Gui.TreeView`1.CanExpand*"></a>
  1105. <h4 id="Terminal_Gui_TreeView_1_CanExpand__0_" data-uid="Terminal.Gui.TreeView`1.CanExpand(`0)">CanExpand(T)</h4>
  1106. <div class="markdown level1 summary">
  1107. Returns true if the given object <code data-dev-comment-type="paramref" class="paramref">o</code> is exposed in the tree and can be
  1108. expanded otherwise false
  1109. </div>
  1110. <div class="markdown level1 conceptual"></div>
  1111. <h5 class="decalaration">Declaration</h5>
  1112. <div class="codewrapper">
  1113. <pre><code class="lang-csharp hljs">public bool CanExpand(T o)</code></pre>
  1114. </div>
  1115. <h5 class="parameters">Parameters</h5>
  1116. <table class="table table-bordered table-striped table-condensed">
  1117. <thead>
  1118. <tr>
  1119. <th>Type</th>
  1120. <th>Name</th>
  1121. <th>Description</th>
  1122. </tr>
  1123. </thead>
  1124. <tbody>
  1125. <tr>
  1126. <td><span class="xref">T</span></td>
  1127. <td><span class="parametername">o</span></td>
  1128. <td></td>
  1129. </tr>
  1130. </tbody>
  1131. </table>
  1132. <h5 class="returns">Returns</h5>
  1133. <table class="table table-bordered table-striped table-condensed">
  1134. <thead>
  1135. <tr>
  1136. <th>Type</th>
  1137. <th>Description</th>
  1138. </tr>
  1139. </thead>
  1140. <tbody>
  1141. <tr>
  1142. <td><span class="xref">System.Boolean</span></td>
  1143. <td></td>
  1144. </tr>
  1145. </tbody>
  1146. </table>
  1147. <a id="Terminal_Gui_TreeView_1_ClearObjects_" data-uid="Terminal.Gui.TreeView`1.ClearObjects*"></a>
  1148. <h4 id="Terminal_Gui_TreeView_1_ClearObjects" data-uid="Terminal.Gui.TreeView`1.ClearObjects">ClearObjects()</h4>
  1149. <div class="markdown level1 summary">
  1150. Removes all objects from the tree and clears <a class="xref" href="Terminal.Gui.TreeView-1.html#Terminal_Gui_TreeView_1_SelectedObject">SelectedObject</a>
  1151. </div>
  1152. <div class="markdown level1 conceptual"></div>
  1153. <h5 class="decalaration">Declaration</h5>
  1154. <div class="codewrapper">
  1155. <pre><code class="lang-csharp hljs">public void ClearObjects()</code></pre>
  1156. </div>
  1157. <a id="Terminal_Gui_TreeView_1_Collapse_" data-uid="Terminal.Gui.TreeView`1.Collapse*"></a>
  1158. <h4 id="Terminal_Gui_TreeView_1_Collapse" data-uid="Terminal.Gui.TreeView`1.Collapse">Collapse()</h4>
  1159. <div class="markdown level1 summary">
  1160. Collapses the <a class="xref" href="Terminal.Gui.TreeView-1.html#Terminal_Gui_TreeView_1_SelectedObject">SelectedObject</a>
  1161. </div>
  1162. <div class="markdown level1 conceptual"></div>
  1163. <h5 class="decalaration">Declaration</h5>
  1164. <div class="codewrapper">
  1165. <pre><code class="lang-csharp hljs">public void Collapse()</code></pre>
  1166. </div>
  1167. <a id="Terminal_Gui_TreeView_1_Collapse_" data-uid="Terminal.Gui.TreeView`1.Collapse*"></a>
  1168. <h4 id="Terminal_Gui_TreeView_1_Collapse__0_" data-uid="Terminal.Gui.TreeView`1.Collapse(`0)">Collapse(T)</h4>
  1169. <div class="markdown level1 summary">
  1170. Collapses the supplied object if it is currently expanded
  1171. </div>
  1172. <div class="markdown level1 conceptual"></div>
  1173. <h5 class="decalaration">Declaration</h5>
  1174. <div class="codewrapper">
  1175. <pre><code class="lang-csharp hljs">public void Collapse(T toCollapse)</code></pre>
  1176. </div>
  1177. <h5 class="parameters">Parameters</h5>
  1178. <table class="table table-bordered table-striped table-condensed">
  1179. <thead>
  1180. <tr>
  1181. <th>Type</th>
  1182. <th>Name</th>
  1183. <th>Description</th>
  1184. </tr>
  1185. </thead>
  1186. <tbody>
  1187. <tr>
  1188. <td><span class="xref">T</span></td>
  1189. <td><span class="parametername">toCollapse</span></td>
  1190. <td>The object to collapse</td>
  1191. </tr>
  1192. </tbody>
  1193. </table>
  1194. <a id="Terminal_Gui_TreeView_1_CollapseAll_" data-uid="Terminal.Gui.TreeView`1.CollapseAll*"></a>
  1195. <h4 id="Terminal_Gui_TreeView_1_CollapseAll" data-uid="Terminal.Gui.TreeView`1.CollapseAll">CollapseAll()</h4>
  1196. <div class="markdown level1 summary">
  1197. Collapses all root nodes in the tree
  1198. </div>
  1199. <div class="markdown level1 conceptual"></div>
  1200. <h5 class="decalaration">Declaration</h5>
  1201. <div class="codewrapper">
  1202. <pre><code class="lang-csharp hljs">public void CollapseAll()</code></pre>
  1203. </div>
  1204. <a id="Terminal_Gui_TreeView_1_CollapseAll_" data-uid="Terminal.Gui.TreeView`1.CollapseAll*"></a>
  1205. <h4 id="Terminal_Gui_TreeView_1_CollapseAll__0_" data-uid="Terminal.Gui.TreeView`1.CollapseAll(`0)">CollapseAll(T)</h4>
  1206. <div class="markdown level1 summary">
  1207. Collapses the supplied object if it is currently expanded. Also collapses all children
  1208. branches (this will only become apparent when/if the user expands it again)
  1209. </div>
  1210. <div class="markdown level1 conceptual"></div>
  1211. <h5 class="decalaration">Declaration</h5>
  1212. <div class="codewrapper">
  1213. <pre><code class="lang-csharp hljs">public void CollapseAll(T toCollapse)</code></pre>
  1214. </div>
  1215. <h5 class="parameters">Parameters</h5>
  1216. <table class="table table-bordered table-striped table-condensed">
  1217. <thead>
  1218. <tr>
  1219. <th>Type</th>
  1220. <th>Name</th>
  1221. <th>Description</th>
  1222. </tr>
  1223. </thead>
  1224. <tbody>
  1225. <tr>
  1226. <td><span class="xref">T</span></td>
  1227. <td><span class="parametername">toCollapse</span></td>
  1228. <td>The object to collapse</td>
  1229. </tr>
  1230. </tbody>
  1231. </table>
  1232. <a id="Terminal_Gui_TreeView_1_CollapseImpl_" data-uid="Terminal.Gui.TreeView`1.CollapseImpl*"></a>
  1233. <h4 id="Terminal_Gui_TreeView_1_CollapseImpl__0_System_Boolean_" data-uid="Terminal.Gui.TreeView`1.CollapseImpl(`0,System.Boolean)">CollapseImpl(T, Boolean)</h4>
  1234. <div class="markdown level1 summary">
  1235. 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
  1236. operation and updates selection if disapeared
  1237. </div>
  1238. <div class="markdown level1 conceptual"></div>
  1239. <h5 class="decalaration">Declaration</h5>
  1240. <div class="codewrapper">
  1241. <pre><code class="lang-csharp hljs">protected void CollapseImpl(T toCollapse, bool all)</code></pre>
  1242. </div>
  1243. <h5 class="parameters">Parameters</h5>
  1244. <table class="table table-bordered table-striped table-condensed">
  1245. <thead>
  1246. <tr>
  1247. <th>Type</th>
  1248. <th>Name</th>
  1249. <th>Description</th>
  1250. </tr>
  1251. </thead>
  1252. <tbody>
  1253. <tr>
  1254. <td><span class="xref">T</span></td>
  1255. <td><span class="parametername">toCollapse</span></td>
  1256. <td></td>
  1257. </tr>
  1258. <tr>
  1259. <td><span class="xref">System.Boolean</span></td>
  1260. <td><span class="parametername">all</span></td>
  1261. <td></td>
  1262. </tr>
  1263. </tbody>
  1264. </table>
  1265. <a id="Terminal_Gui_TreeView_1_CursorLeft_" data-uid="Terminal.Gui.TreeView`1.CursorLeft*"></a>
  1266. <h4 id="Terminal_Gui_TreeView_1_CursorLeft_System_Boolean_" data-uid="Terminal.Gui.TreeView`1.CursorLeft(System.Boolean)">CursorLeft(Boolean)</h4>
  1267. <div class="markdown level1 summary">
  1268. Determines systems behaviour when the left arrow key is pressed. Default behaviour is
  1269. to collapse the current tree node if possible otherwise changes selection to current
  1270. branches parent
  1271. </div>
  1272. <div class="markdown level1 conceptual"></div>
  1273. <h5 class="decalaration">Declaration</h5>
  1274. <div class="codewrapper">
  1275. <pre><code class="lang-csharp hljs">protected virtual void CursorLeft(bool ctrl)</code></pre>
  1276. </div>
  1277. <h5 class="parameters">Parameters</h5>
  1278. <table class="table table-bordered table-striped table-condensed">
  1279. <thead>
  1280. <tr>
  1281. <th>Type</th>
  1282. <th>Name</th>
  1283. <th>Description</th>
  1284. </tr>
  1285. </thead>
  1286. <tbody>
  1287. <tr>
  1288. <td><span class="xref">System.Boolean</span></td>
  1289. <td><span class="parametername">ctrl</span></td>
  1290. <td></td>
  1291. </tr>
  1292. </tbody>
  1293. </table>
  1294. <a id="Terminal_Gui_TreeView_1_EnsureVisible_" data-uid="Terminal.Gui.TreeView`1.EnsureVisible*"></a>
  1295. <h4 id="Terminal_Gui_TreeView_1_EnsureVisible__0_" data-uid="Terminal.Gui.TreeView`1.EnsureVisible(`0)">EnsureVisible(T)</h4>
  1296. <div class="markdown level1 summary">
  1297. Adjusts the <a class="xref" href="Terminal.Gui.TreeView-1.html#Terminal_Gui_TreeView_1_ScrollOffsetVertical">ScrollOffsetVertical</a> to ensure the given
  1298. <code data-dev-comment-type="paramref" class="paramref">model</code> is visible. Has no effect if already visible
  1299. </div>
  1300. <div class="markdown level1 conceptual"></div>
  1301. <h5 class="decalaration">Declaration</h5>
  1302. <div class="codewrapper">
  1303. <pre><code class="lang-csharp hljs">public void EnsureVisible(T model)</code></pre>
  1304. </div>
  1305. <h5 class="parameters">Parameters</h5>
  1306. <table class="table table-bordered table-striped table-condensed">
  1307. <thead>
  1308. <tr>
  1309. <th>Type</th>
  1310. <th>Name</th>
  1311. <th>Description</th>
  1312. </tr>
  1313. </thead>
  1314. <tbody>
  1315. <tr>
  1316. <td><span class="xref">T</span></td>
  1317. <td><span class="parametername">model</span></td>
  1318. <td></td>
  1319. </tr>
  1320. </tbody>
  1321. </table>
  1322. <a id="Terminal_Gui_TreeView_1_Expand_" data-uid="Terminal.Gui.TreeView`1.Expand*"></a>
  1323. <h4 id="Terminal_Gui_TreeView_1_Expand" data-uid="Terminal.Gui.TreeView`1.Expand">Expand()</h4>
  1324. <div class="markdown level1 summary">
  1325. Expands the currently <a class="xref" href="Terminal.Gui.TreeView-1.html#Terminal_Gui_TreeView_1_SelectedObject">SelectedObject</a>
  1326. </div>
  1327. <div class="markdown level1 conceptual"></div>
  1328. <h5 class="decalaration">Declaration</h5>
  1329. <div class="codewrapper">
  1330. <pre><code class="lang-csharp hljs">public void Expand()</code></pre>
  1331. </div>
  1332. <a id="Terminal_Gui_TreeView_1_Expand_" data-uid="Terminal.Gui.TreeView`1.Expand*"></a>
  1333. <h4 id="Terminal_Gui_TreeView_1_Expand__0_" data-uid="Terminal.Gui.TreeView`1.Expand(`0)">Expand(T)</h4>
  1334. <div class="markdown level1 summary">
  1335. Expands the supplied object if it is contained in the tree (either as a root object or
  1336. as an exposed branch object)
  1337. </div>
  1338. <div class="markdown level1 conceptual"></div>
  1339. <h5 class="decalaration">Declaration</h5>
  1340. <div class="codewrapper">
  1341. <pre><code class="lang-csharp hljs">public void Expand(T toExpand)</code></pre>
  1342. </div>
  1343. <h5 class="parameters">Parameters</h5>
  1344. <table class="table table-bordered table-striped table-condensed">
  1345. <thead>
  1346. <tr>
  1347. <th>Type</th>
  1348. <th>Name</th>
  1349. <th>Description</th>
  1350. </tr>
  1351. </thead>
  1352. <tbody>
  1353. <tr>
  1354. <td><span class="xref">T</span></td>
  1355. <td><span class="parametername">toExpand</span></td>
  1356. <td>The object to expand</td>
  1357. </tr>
  1358. </tbody>
  1359. </table>
  1360. <a id="Terminal_Gui_TreeView_1_ExpandAll_" data-uid="Terminal.Gui.TreeView`1.ExpandAll*"></a>
  1361. <h4 id="Terminal_Gui_TreeView_1_ExpandAll" data-uid="Terminal.Gui.TreeView`1.ExpandAll">ExpandAll()</h4>
  1362. <div class="markdown level1 summary">
  1363. Fully expands all nodes in the tree, if the tree is very big and built dynamically this
  1364. may take a while (e.g. for file system)
  1365. </div>
  1366. <div class="markdown level1 conceptual"></div>
  1367. <h5 class="decalaration">Declaration</h5>
  1368. <div class="codewrapper">
  1369. <pre><code class="lang-csharp hljs">public void ExpandAll()</code></pre>
  1370. </div>
  1371. <a id="Terminal_Gui_TreeView_1_ExpandAll_" data-uid="Terminal.Gui.TreeView`1.ExpandAll*"></a>
  1372. <h4 id="Terminal_Gui_TreeView_1_ExpandAll__0_" data-uid="Terminal.Gui.TreeView`1.ExpandAll(`0)">ExpandAll(T)</h4>
  1373. <div class="markdown level1 summary">
  1374. Expands the supplied object and all child objects
  1375. </div>
  1376. <div class="markdown level1 conceptual"></div>
  1377. <h5 class="decalaration">Declaration</h5>
  1378. <div class="codewrapper">
  1379. <pre><code class="lang-csharp hljs">public void ExpandAll(T toExpand)</code></pre>
  1380. </div>
  1381. <h5 class="parameters">Parameters</h5>
  1382. <table class="table table-bordered table-striped table-condensed">
  1383. <thead>
  1384. <tr>
  1385. <th>Type</th>
  1386. <th>Name</th>
  1387. <th>Description</th>
  1388. </tr>
  1389. </thead>
  1390. <tbody>
  1391. <tr>
  1392. <td><span class="xref">T</span></td>
  1393. <td><span class="parametername">toExpand</span></td>
  1394. <td>The object to expand</td>
  1395. </tr>
  1396. </tbody>
  1397. </table>
  1398. <a id="Terminal_Gui_TreeView_1_GetAllSelectedObjects_" data-uid="Terminal.Gui.TreeView`1.GetAllSelectedObjects*"></a>
  1399. <h4 id="Terminal_Gui_TreeView_1_GetAllSelectedObjects" data-uid="Terminal.Gui.TreeView`1.GetAllSelectedObjects">GetAllSelectedObjects()</h4>
  1400. <div class="markdown level1 summary">
  1401. 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
  1402. <a class="xref" href="Terminal.Gui.TreeView-1.html#Terminal_Gui_TreeView_1_MultiSelect">MultiSelect</a> is true
  1403. </div>
  1404. <div class="markdown level1 conceptual"></div>
  1405. <h5 class="decalaration">Declaration</h5>
  1406. <div class="codewrapper">
  1407. <pre><code class="lang-csharp hljs">public IEnumerable&lt;T&gt; GetAllSelectedObjects()</code></pre>
  1408. </div>
  1409. <h5 class="returns">Returns</h5>
  1410. <table class="table table-bordered table-striped table-condensed">
  1411. <thead>
  1412. <tr>
  1413. <th>Type</th>
  1414. <th>Description</th>
  1415. </tr>
  1416. </thead>
  1417. <tbody>
  1418. <tr>
  1419. <td><span class="xref">System.Collections.Generic.IEnumerable</span>&lt;T&gt;</td>
  1420. <td></td>
  1421. </tr>
  1422. </tbody>
  1423. </table>
  1424. <a id="Terminal_Gui_TreeView_1_GetChildren_" data-uid="Terminal.Gui.TreeView`1.GetChildren*"></a>
  1425. <h4 id="Terminal_Gui_TreeView_1_GetChildren__0_" data-uid="Terminal.Gui.TreeView`1.GetChildren(`0)">GetChildren(T)</h4>
  1426. <div class="markdown level1 summary">
  1427. Returns the currently expanded children of the passed object. Returns an empty
  1428. collection if the branch is not exposed or not expanded
  1429. </div>
  1430. <div class="markdown level1 conceptual"></div>
  1431. <h5 class="decalaration">Declaration</h5>
  1432. <div class="codewrapper">
  1433. <pre><code class="lang-csharp hljs">public IEnumerable&lt;T&gt; GetChildren(T o)</code></pre>
  1434. </div>
  1435. <h5 class="parameters">Parameters</h5>
  1436. <table class="table table-bordered table-striped table-condensed">
  1437. <thead>
  1438. <tr>
  1439. <th>Type</th>
  1440. <th>Name</th>
  1441. <th>Description</th>
  1442. </tr>
  1443. </thead>
  1444. <tbody>
  1445. <tr>
  1446. <td><span class="xref">T</span></td>
  1447. <td><span class="parametername">o</span></td>
  1448. <td>An object in the tree</td>
  1449. </tr>
  1450. </tbody>
  1451. </table>
  1452. <h5 class="returns">Returns</h5>
  1453. <table class="table table-bordered table-striped table-condensed">
  1454. <thead>
  1455. <tr>
  1456. <th>Type</th>
  1457. <th>Description</th>
  1458. </tr>
  1459. </thead>
  1460. <tbody>
  1461. <tr>
  1462. <td><span class="xref">System.Collections.Generic.IEnumerable</span>&lt;T&gt;</td>
  1463. <td></td>
  1464. </tr>
  1465. </tbody>
  1466. </table>
  1467. <a id="Terminal_Gui_TreeView_1_GetContentWidth_" data-uid="Terminal.Gui.TreeView`1.GetContentWidth*"></a>
  1468. <h4 id="Terminal_Gui_TreeView_1_GetContentWidth_System_Boolean_" data-uid="Terminal.Gui.TreeView`1.GetContentWidth(System.Boolean)">GetContentWidth(Boolean)</h4>
  1469. <div class="markdown level1 summary">
  1470. Returns the maximum width line in the tree including prefix and expansion symbols
  1471. </div>
  1472. <div class="markdown level1 conceptual"></div>
  1473. <h5 class="decalaration">Declaration</h5>
  1474. <div class="codewrapper">
  1475. <pre><code class="lang-csharp hljs">public int GetContentWidth(bool visible)</code></pre>
  1476. </div>
  1477. <h5 class="parameters">Parameters</h5>
  1478. <table class="table table-bordered table-striped table-condensed">
  1479. <thead>
  1480. <tr>
  1481. <th>Type</th>
  1482. <th>Name</th>
  1483. <th>Description</th>
  1484. </tr>
  1485. </thead>
  1486. <tbody>
  1487. <tr>
  1488. <td><span class="xref">System.Boolean</span></td>
  1489. <td><span class="parametername">visible</span></td>
  1490. <td>True to consider only rows currently visible (based on window
  1491. bounds and <a class="xref" href="Terminal.Gui.TreeView-1.html#Terminal_Gui_TreeView_1_ScrollOffsetVertical">ScrollOffsetVertical</a>. False to calculate the width of
  1492. every exposed branch in the tree</td>
  1493. </tr>
  1494. </tbody>
  1495. </table>
  1496. <h5 class="returns">Returns</h5>
  1497. <table class="table table-bordered table-striped table-condensed">
  1498. <thead>
  1499. <tr>
  1500. <th>Type</th>
  1501. <th>Description</th>
  1502. </tr>
  1503. </thead>
  1504. <tbody>
  1505. <tr>
  1506. <td><span class="xref">System.Int32</span></td>
  1507. <td></td>
  1508. </tr>
  1509. </tbody>
  1510. </table>
  1511. <a id="Terminal_Gui_TreeView_1_GetParent_" data-uid="Terminal.Gui.TreeView`1.GetParent*"></a>
  1512. <h4 id="Terminal_Gui_TreeView_1_GetParent__0_" data-uid="Terminal.Gui.TreeView`1.GetParent(`0)">GetParent(T)</h4>
  1513. <div class="markdown level1 summary">
  1514. Returns the parent object of <code data-dev-comment-type="paramref" class="paramref">o</code> in the tree. Returns null if
  1515. the object is not exposed in the tree
  1516. </div>
  1517. <div class="markdown level1 conceptual"></div>
  1518. <h5 class="decalaration">Declaration</h5>
  1519. <div class="codewrapper">
  1520. <pre><code class="lang-csharp hljs">public T GetParent(T o)</code></pre>
  1521. </div>
  1522. <h5 class="parameters">Parameters</h5>
  1523. <table class="table table-bordered table-striped table-condensed">
  1524. <thead>
  1525. <tr>
  1526. <th>Type</th>
  1527. <th>Name</th>
  1528. <th>Description</th>
  1529. </tr>
  1530. </thead>
  1531. <tbody>
  1532. <tr>
  1533. <td><span class="xref">T</span></td>
  1534. <td><span class="parametername">o</span></td>
  1535. <td>An object in the tree</td>
  1536. </tr>
  1537. </tbody>
  1538. </table>
  1539. <h5 class="returns">Returns</h5>
  1540. <table class="table table-bordered table-striped table-condensed">
  1541. <thead>
  1542. <tr>
  1543. <th>Type</th>
  1544. <th>Description</th>
  1545. </tr>
  1546. </thead>
  1547. <tbody>
  1548. <tr>
  1549. <td><span class="xref">T</span></td>
  1550. <td></td>
  1551. </tr>
  1552. </tbody>
  1553. </table>
  1554. <a id="Terminal_Gui_TreeView_1_GetScrollOffsetOf_" data-uid="Terminal.Gui.TreeView`1.GetScrollOffsetOf*"></a>
  1555. <h4 id="Terminal_Gui_TreeView_1_GetScrollOffsetOf__0_" data-uid="Terminal.Gui.TreeView`1.GetScrollOffsetOf(`0)">GetScrollOffsetOf(T)</h4>
  1556. <div class="markdown level1 summary">
  1557. Returns the index of the object <code data-dev-comment-type="paramref" class="paramref">o</code> if it is currently exposed (it&apos;s
  1558. 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>
  1559. and <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_SetNeedsDisplay">SetNeedsDisplay()</a> to scroll to a specific object
  1560. </div>
  1561. <div class="markdown level1 conceptual"></div>
  1562. <h5 class="decalaration">Declaration</h5>
  1563. <div class="codewrapper">
  1564. <pre><code class="lang-csharp hljs">public int GetScrollOffsetOf(T o)</code></pre>
  1565. </div>
  1566. <h5 class="parameters">Parameters</h5>
  1567. <table class="table table-bordered table-striped table-condensed">
  1568. <thead>
  1569. <tr>
  1570. <th>Type</th>
  1571. <th>Name</th>
  1572. <th>Description</th>
  1573. </tr>
  1574. </thead>
  1575. <tbody>
  1576. <tr>
  1577. <td><span class="xref">T</span></td>
  1578. <td><span class="parametername">o</span></td>
  1579. <td>An object that appears in your tree and is currently exposed</td>
  1580. </tr>
  1581. </tbody>
  1582. </table>
  1583. <h5 class="returns">Returns</h5>
  1584. <table class="table table-bordered table-striped table-condensed">
  1585. <thead>
  1586. <tr>
  1587. <th>Type</th>
  1588. <th>Description</th>
  1589. </tr>
  1590. </thead>
  1591. <tbody>
  1592. <tr>
  1593. <td><span class="xref">System.Int32</span></td>
  1594. <td>The index the object was found at or -1 if it is not currently revealed or
  1595. not in the tree at all</td>
  1596. </tr>
  1597. </tbody>
  1598. </table>
  1599. <h5 id="Terminal_Gui_TreeView_1_GetScrollOffsetOf__0__remarks">Remarks</h5>
  1600. <div class="markdown level1 remarks">Uses the Equals method and returns the first index at which the object is found
  1601. or -1 if it is not found</div>
  1602. <a id="Terminal_Gui_TreeView_1_GoTo_" data-uid="Terminal.Gui.TreeView`1.GoTo*"></a>
  1603. <h4 id="Terminal_Gui_TreeView_1_GoTo__0_" data-uid="Terminal.Gui.TreeView`1.GoTo(`0)">GoTo(T)</h4>
  1604. <div class="markdown level1 summary">
  1605. 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
  1606. 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.
  1607. its parents are collapsed)
  1608. </div>
  1609. <div class="markdown level1 conceptual"></div>
  1610. <h5 class="decalaration">Declaration</h5>
  1611. <div class="codewrapper">
  1612. <pre><code class="lang-csharp hljs">public void GoTo(T toSelect)</code></pre>
  1613. </div>
  1614. <h5 class="parameters">Parameters</h5>
  1615. <table class="table table-bordered table-striped table-condensed">
  1616. <thead>
  1617. <tr>
  1618. <th>Type</th>
  1619. <th>Name</th>
  1620. <th>Description</th>
  1621. </tr>
  1622. </thead>
  1623. <tbody>
  1624. <tr>
  1625. <td><span class="xref">T</span></td>
  1626. <td><span class="parametername">toSelect</span></td>
  1627. <td></td>
  1628. </tr>
  1629. </tbody>
  1630. </table>
  1631. <a id="Terminal_Gui_TreeView_1_GoToEnd_" data-uid="Terminal.Gui.TreeView`1.GoToEnd*"></a>
  1632. <h4 id="Terminal_Gui_TreeView_1_GoToEnd" data-uid="Terminal.Gui.TreeView`1.GoToEnd">GoToEnd()</h4>
  1633. <div class="markdown level1 summary">
  1634. 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
  1635. that it is visible
  1636. </div>
  1637. <div class="markdown level1 conceptual"></div>
  1638. <h5 class="decalaration">Declaration</h5>
  1639. <div class="codewrapper">
  1640. <pre><code class="lang-csharp hljs">public void GoToEnd()</code></pre>
  1641. </div>
  1642. <a id="Terminal_Gui_TreeView_1_GoToFirst_" data-uid="Terminal.Gui.TreeView`1.GoToFirst*"></a>
  1643. <h4 id="Terminal_Gui_TreeView_1_GoToFirst" data-uid="Terminal.Gui.TreeView`1.GoToFirst">GoToFirst()</h4>
  1644. <div class="markdown level1 summary">
  1645. 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
  1646. the <a class="xref" href="Terminal.Gui.TreeView-1.html#Terminal_Gui_TreeView_1_ScrollOffsetVertical">ScrollOffsetVertical</a> to 0
  1647. </div>
  1648. <div class="markdown level1 conceptual"></div>
  1649. <h5 class="decalaration">Declaration</h5>
  1650. <div class="codewrapper">
  1651. <pre><code class="lang-csharp hljs">public void GoToFirst()</code></pre>
  1652. </div>
  1653. <a id="Terminal_Gui_TreeView_1_InvalidateLineMap_" data-uid="Terminal.Gui.TreeView`1.InvalidateLineMap*"></a>
  1654. <h4 id="Terminal_Gui_TreeView_1_InvalidateLineMap" data-uid="Terminal.Gui.TreeView`1.InvalidateLineMap">InvalidateLineMap()</h4>
  1655. <div class="markdown level1 summary">
  1656. Clears any cached results of <span class="xref">Terminal.Gui.TreeView`1.BuildLineMap</span>
  1657. </div>
  1658. <div class="markdown level1 conceptual"></div>
  1659. <h5 class="decalaration">Declaration</h5>
  1660. <div class="codewrapper">
  1661. <pre><code class="lang-csharp hljs">protected void InvalidateLineMap()</code></pre>
  1662. </div>
  1663. <a id="Terminal_Gui_TreeView_1_IsExpanded_" data-uid="Terminal.Gui.TreeView`1.IsExpanded*"></a>
  1664. <h4 id="Terminal_Gui_TreeView_1_IsExpanded__0_" data-uid="Terminal.Gui.TreeView`1.IsExpanded(`0)">IsExpanded(T)</h4>
  1665. <div class="markdown level1 summary">
  1666. Returns true if the given object <code data-dev-comment-type="paramref" class="paramref">o</code> is exposed in the tree and
  1667. expanded otherwise false
  1668. </div>
  1669. <div class="markdown level1 conceptual"></div>
  1670. <h5 class="decalaration">Declaration</h5>
  1671. <div class="codewrapper">
  1672. <pre><code class="lang-csharp hljs">public bool IsExpanded(T o)</code></pre>
  1673. </div>
  1674. <h5 class="parameters">Parameters</h5>
  1675. <table class="table table-bordered table-striped table-condensed">
  1676. <thead>
  1677. <tr>
  1678. <th>Type</th>
  1679. <th>Name</th>
  1680. <th>Description</th>
  1681. </tr>
  1682. </thead>
  1683. <tbody>
  1684. <tr>
  1685. <td><span class="xref">T</span></td>
  1686. <td><span class="parametername">o</span></td>
  1687. <td></td>
  1688. </tr>
  1689. </tbody>
  1690. </table>
  1691. <h5 class="returns">Returns</h5>
  1692. <table class="table table-bordered table-striped table-condensed">
  1693. <thead>
  1694. <tr>
  1695. <th>Type</th>
  1696. <th>Description</th>
  1697. </tr>
  1698. </thead>
  1699. <tbody>
  1700. <tr>
  1701. <td><span class="xref">System.Boolean</span></td>
  1702. <td></td>
  1703. </tr>
  1704. </tbody>
  1705. </table>
  1706. <a id="Terminal_Gui_TreeView_1_IsSelected_" data-uid="Terminal.Gui.TreeView`1.IsSelected*"></a>
  1707. <h4 id="Terminal_Gui_TreeView_1_IsSelected__0_" data-uid="Terminal.Gui.TreeView`1.IsSelected(`0)">IsSelected(T)</h4>
  1708. <div class="markdown level1 summary">
  1709. Returns true if the <code data-dev-comment-type="paramref" class="paramref">model</code> is either the
  1710. <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>
  1711. </div>
  1712. <div class="markdown level1 conceptual"></div>
  1713. <h5 class="decalaration">Declaration</h5>
  1714. <div class="codewrapper">
  1715. <pre><code class="lang-csharp hljs">public bool IsSelected(T model)</code></pre>
  1716. </div>
  1717. <h5 class="parameters">Parameters</h5>
  1718. <table class="table table-bordered table-striped table-condensed">
  1719. <thead>
  1720. <tr>
  1721. <th>Type</th>
  1722. <th>Name</th>
  1723. <th>Description</th>
  1724. </tr>
  1725. </thead>
  1726. <tbody>
  1727. <tr>
  1728. <td><span class="xref">T</span></td>
  1729. <td><span class="parametername">model</span></td>
  1730. <td></td>
  1731. </tr>
  1732. </tbody>
  1733. </table>
  1734. <h5 class="returns">Returns</h5>
  1735. <table class="table table-bordered table-striped table-condensed">
  1736. <thead>
  1737. <tr>
  1738. <th>Type</th>
  1739. <th>Description</th>
  1740. </tr>
  1741. </thead>
  1742. <tbody>
  1743. <tr>
  1744. <td><span class="xref">System.Boolean</span></td>
  1745. <td></td>
  1746. </tr>
  1747. </tbody>
  1748. </table>
  1749. <a id="Terminal_Gui_TreeView_1_MouseEvent_" data-uid="Terminal.Gui.TreeView`1.MouseEvent*"></a>
  1750. <h4 id="Terminal_Gui_TreeView_1_MouseEvent_Terminal_Gui_MouseEvent_" data-uid="Terminal.Gui.TreeView`1.MouseEvent(Terminal.Gui.MouseEvent)">MouseEvent(MouseEvent)</h4>
  1751. <div class="markdown level1 summary"></div>
  1752. <div class="markdown level1 conceptual"></div>
  1753. <h5 class="decalaration">Declaration</h5>
  1754. <div class="codewrapper">
  1755. <pre><code class="lang-csharp hljs">public override bool MouseEvent(MouseEvent me)</code></pre>
  1756. </div>
  1757. <h5 class="parameters">Parameters</h5>
  1758. <table class="table table-bordered table-striped table-condensed">
  1759. <thead>
  1760. <tr>
  1761. <th>Type</th>
  1762. <th>Name</th>
  1763. <th>Description</th>
  1764. </tr>
  1765. </thead>
  1766. <tbody>
  1767. <tr>
  1768. <td><a class="xref" href="Terminal.Gui.MouseEvent.html">MouseEvent</a></td>
  1769. <td><span class="parametername">me</span></td>
  1770. <td></td>
  1771. </tr>
  1772. </tbody>
  1773. </table>
  1774. <h5 class="returns">Returns</h5>
  1775. <table class="table table-bordered table-striped table-condensed">
  1776. <thead>
  1777. <tr>
  1778. <th>Type</th>
  1779. <th>Description</th>
  1780. </tr>
  1781. </thead>
  1782. <tbody>
  1783. <tr>
  1784. <td><span class="xref">System.Boolean</span></td>
  1785. <td></td>
  1786. </tr>
  1787. </tbody>
  1788. </table>
  1789. <h5 class="overrides">Overrides</h5>
  1790. <div><a class="xref" href="Terminal.Gui.Responder.html#Terminal_Gui_Responder_MouseEvent_Terminal_Gui_MouseEvent_">Responder.MouseEvent(MouseEvent)</a></div>
  1791. <a id="Terminal_Gui_TreeView_1_MovePageDown_" data-uid="Terminal.Gui.TreeView`1.MovePageDown*"></a>
  1792. <h4 id="Terminal_Gui_TreeView_1_MovePageDown_System_Boolean_" data-uid="Terminal.Gui.TreeView`1.MovePageDown(System.Boolean)">MovePageDown(Boolean)</h4>
  1793. <div class="markdown level1 summary">
  1794. Moves the selection down by the height of the control (1 page).
  1795. </div>
  1796. <div class="markdown level1 conceptual"></div>
  1797. <h5 class="decalaration">Declaration</h5>
  1798. <div class="codewrapper">
  1799. <pre><code class="lang-csharp hljs">public void MovePageDown(bool expandSelection = false)</code></pre>
  1800. </div>
  1801. <h5 class="parameters">Parameters</h5>
  1802. <table class="table table-bordered table-striped table-condensed">
  1803. <thead>
  1804. <tr>
  1805. <th>Type</th>
  1806. <th>Name</th>
  1807. <th>Description</th>
  1808. </tr>
  1809. </thead>
  1810. <tbody>
  1811. <tr>
  1812. <td><span class="xref">System.Boolean</span></td>
  1813. <td><span class="parametername">expandSelection</span></td>
  1814. <td>True if the navigation should add the covered nodes to the selected current selection</td>
  1815. </tr>
  1816. </tbody>
  1817. </table>
  1818. <h5 class="exceptions">Exceptions</h5>
  1819. <table class="table table-bordered table-striped table-condensed">
  1820. <thead>
  1821. <tr>
  1822. <th>Type</th>
  1823. <th>Condition</th>
  1824. </tr>
  1825. </thead>
  1826. <tbody>
  1827. <tr>
  1828. <td><span class="xref">System.NotImplementedException</span></td>
  1829. <td></td>
  1830. </tr>
  1831. </tbody>
  1832. </table>
  1833. <a id="Terminal_Gui_TreeView_1_MovePageUp_" data-uid="Terminal.Gui.TreeView`1.MovePageUp*"></a>
  1834. <h4 id="Terminal_Gui_TreeView_1_MovePageUp_System_Boolean_" data-uid="Terminal.Gui.TreeView`1.MovePageUp(System.Boolean)">MovePageUp(Boolean)</h4>
  1835. <div class="markdown level1 summary">
  1836. Moves the selection up by the height of the control (1 page).
  1837. </div>
  1838. <div class="markdown level1 conceptual"></div>
  1839. <h5 class="decalaration">Declaration</h5>
  1840. <div class="codewrapper">
  1841. <pre><code class="lang-csharp hljs">public void MovePageUp(bool expandSelection = false)</code></pre>
  1842. </div>
  1843. <h5 class="parameters">Parameters</h5>
  1844. <table class="table table-bordered table-striped table-condensed">
  1845. <thead>
  1846. <tr>
  1847. <th>Type</th>
  1848. <th>Name</th>
  1849. <th>Description</th>
  1850. </tr>
  1851. </thead>
  1852. <tbody>
  1853. <tr>
  1854. <td><span class="xref">System.Boolean</span></td>
  1855. <td><span class="parametername">expandSelection</span></td>
  1856. <td>True if the navigation should add the covered nodes to the selected current selection</td>
  1857. </tr>
  1858. </tbody>
  1859. </table>
  1860. <h5 class="exceptions">Exceptions</h5>
  1861. <table class="table table-bordered table-striped table-condensed">
  1862. <thead>
  1863. <tr>
  1864. <th>Type</th>
  1865. <th>Condition</th>
  1866. </tr>
  1867. </thead>
  1868. <tbody>
  1869. <tr>
  1870. <td><span class="xref">System.NotImplementedException</span></td>
  1871. <td></td>
  1872. </tr>
  1873. </tbody>
  1874. </table>
  1875. <a id="Terminal_Gui_TreeView_1_OnEnter_" data-uid="Terminal.Gui.TreeView`1.OnEnter*"></a>
  1876. <h4 id="Terminal_Gui_TreeView_1_OnEnter_Terminal_Gui_View_" data-uid="Terminal.Gui.TreeView`1.OnEnter(Terminal.Gui.View)">OnEnter(View)</h4>
  1877. <div class="markdown level1 summary"></div>
  1878. <div class="markdown level1 conceptual"></div>
  1879. <h5 class="decalaration">Declaration</h5>
  1880. <div class="codewrapper">
  1881. <pre><code class="lang-csharp hljs">public override bool OnEnter(View view)</code></pre>
  1882. </div>
  1883. <h5 class="parameters">Parameters</h5>
  1884. <table class="table table-bordered table-striped table-condensed">
  1885. <thead>
  1886. <tr>
  1887. <th>Type</th>
  1888. <th>Name</th>
  1889. <th>Description</th>
  1890. </tr>
  1891. </thead>
  1892. <tbody>
  1893. <tr>
  1894. <td><a class="xref" href="Terminal.Gui.View.html">View</a></td>
  1895. <td><span class="parametername">view</span></td>
  1896. <td></td>
  1897. </tr>
  1898. </tbody>
  1899. </table>
  1900. <h5 class="returns">Returns</h5>
  1901. <table class="table table-bordered table-striped table-condensed">
  1902. <thead>
  1903. <tr>
  1904. <th>Type</th>
  1905. <th>Description</th>
  1906. </tr>
  1907. </thead>
  1908. <tbody>
  1909. <tr>
  1910. <td><span class="xref">System.Boolean</span></td>
  1911. <td></td>
  1912. </tr>
  1913. </tbody>
  1914. </table>
  1915. <h5 class="overrides">Overrides</h5>
  1916. <div><a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_OnEnter_Terminal_Gui_View_">View.OnEnter(View)</a></div>
  1917. <a id="Terminal_Gui_TreeView_1_OnObjectActivated_" data-uid="Terminal.Gui.TreeView`1.OnObjectActivated*"></a>
  1918. <h4 id="Terminal_Gui_TreeView_1_OnObjectActivated_Terminal_Gui_Trees_ObjectActivatedEventArgs__0__" data-uid="Terminal.Gui.TreeView`1.OnObjectActivated(Terminal.Gui.Trees.ObjectActivatedEventArgs{`0})">OnObjectActivated(ObjectActivatedEventArgs&lt;T&gt;)</h4>
  1919. <div class="markdown level1 summary">
  1920. Raises the <a class="xref" href="Terminal.Gui.TreeView-1.html#Terminal_Gui_TreeView_1_ObjectActivated">ObjectActivated</a> event
  1921. </div>
  1922. <div class="markdown level1 conceptual"></div>
  1923. <h5 class="decalaration">Declaration</h5>
  1924. <div class="codewrapper">
  1925. <pre><code class="lang-csharp hljs">protected virtual void OnObjectActivated(ObjectActivatedEventArgs&lt;T&gt; e)</code></pre>
  1926. </div>
  1927. <h5 class="parameters">Parameters</h5>
  1928. <table class="table table-bordered table-striped table-condensed">
  1929. <thead>
  1930. <tr>
  1931. <th>Type</th>
  1932. <th>Name</th>
  1933. <th>Description</th>
  1934. </tr>
  1935. </thead>
  1936. <tbody>
  1937. <tr>
  1938. <td><a class="xref" href="Terminal.Gui.Trees.ObjectActivatedEventArgs-1.html">ObjectActivatedEventArgs</a>&lt;T&gt;</td>
  1939. <td><span class="parametername">e</span></td>
  1940. <td></td>
  1941. </tr>
  1942. </tbody>
  1943. </table>
  1944. <a id="Terminal_Gui_TreeView_1_OnSelectionChanged_" data-uid="Terminal.Gui.TreeView`1.OnSelectionChanged*"></a>
  1945. <h4 id="Terminal_Gui_TreeView_1_OnSelectionChanged_Terminal_Gui_Trees_SelectionChangedEventArgs__0__" data-uid="Terminal.Gui.TreeView`1.OnSelectionChanged(Terminal.Gui.Trees.SelectionChangedEventArgs{`0})">OnSelectionChanged(SelectionChangedEventArgs&lt;T&gt;)</h4>
  1946. <div class="markdown level1 summary">
  1947. Raises the SelectionChanged event
  1948. </div>
  1949. <div class="markdown level1 conceptual"></div>
  1950. <h5 class="decalaration">Declaration</h5>
  1951. <div class="codewrapper">
  1952. <pre><code class="lang-csharp hljs">protected virtual void OnSelectionChanged(SelectionChangedEventArgs&lt;T&gt; e)</code></pre>
  1953. </div>
  1954. <h5 class="parameters">Parameters</h5>
  1955. <table class="table table-bordered table-striped table-condensed">
  1956. <thead>
  1957. <tr>
  1958. <th>Type</th>
  1959. <th>Name</th>
  1960. <th>Description</th>
  1961. </tr>
  1962. </thead>
  1963. <tbody>
  1964. <tr>
  1965. <td><a class="xref" href="Terminal.Gui.Trees.SelectionChangedEventArgs-1.html">SelectionChangedEventArgs</a>&lt;T&gt;</td>
  1966. <td><span class="parametername">e</span></td>
  1967. <td></td>
  1968. </tr>
  1969. </tbody>
  1970. </table>
  1971. <a id="Terminal_Gui_TreeView_1_PositionCursor_" data-uid="Terminal.Gui.TreeView`1.PositionCursor*"></a>
  1972. <h4 id="Terminal_Gui_TreeView_1_PositionCursor" data-uid="Terminal.Gui.TreeView`1.PositionCursor">PositionCursor()</h4>
  1973. <div class="markdown level1 summary">
  1974. Positions the cursor at the start of the selected objects line (if visible)
  1975. </div>
  1976. <div class="markdown level1 conceptual"></div>
  1977. <h5 class="decalaration">Declaration</h5>
  1978. <div class="codewrapper">
  1979. <pre><code class="lang-csharp hljs">public override void PositionCursor()</code></pre>
  1980. </div>
  1981. <h5 class="overrides">Overrides</h5>
  1982. <div><a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_PositionCursor">View.PositionCursor()</a></div>
  1983. <a id="Terminal_Gui_TreeView_1_ProcessKey_" data-uid="Terminal.Gui.TreeView`1.ProcessKey*"></a>
  1984. <h4 id="Terminal_Gui_TreeView_1_ProcessKey_Terminal_Gui_KeyEvent_" data-uid="Terminal.Gui.TreeView`1.ProcessKey(Terminal.Gui.KeyEvent)">ProcessKey(KeyEvent)</h4>
  1985. <div class="markdown level1 summary"></div>
  1986. <div class="markdown level1 conceptual"></div>
  1987. <h5 class="decalaration">Declaration</h5>
  1988. <div class="codewrapper">
  1989. <pre><code class="lang-csharp hljs">public override bool ProcessKey(KeyEvent keyEvent)</code></pre>
  1990. </div>
  1991. <h5 class="parameters">Parameters</h5>
  1992. <table class="table table-bordered table-striped table-condensed">
  1993. <thead>
  1994. <tr>
  1995. <th>Type</th>
  1996. <th>Name</th>
  1997. <th>Description</th>
  1998. </tr>
  1999. </thead>
  2000. <tbody>
  2001. <tr>
  2002. <td><a class="xref" href="Terminal.Gui.KeyEvent.html">KeyEvent</a></td>
  2003. <td><span class="parametername">keyEvent</span></td>
  2004. <td></td>
  2005. </tr>
  2006. </tbody>
  2007. </table>
  2008. <h5 class="returns">Returns</h5>
  2009. <table class="table table-bordered table-striped table-condensed">
  2010. <thead>
  2011. <tr>
  2012. <th>Type</th>
  2013. <th>Description</th>
  2014. </tr>
  2015. </thead>
  2016. <tbody>
  2017. <tr>
  2018. <td><span class="xref">System.Boolean</span></td>
  2019. <td></td>
  2020. </tr>
  2021. </tbody>
  2022. </table>
  2023. <h5 class="overrides">Overrides</h5>
  2024. <div><a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_ProcessKey_Terminal_Gui_KeyEvent_">View.ProcessKey(KeyEvent)</a></div>
  2025. <a id="Terminal_Gui_TreeView_1_RebuildTree_" data-uid="Terminal.Gui.TreeView`1.RebuildTree*"></a>
  2026. <h4 id="Terminal_Gui_TreeView_1_RebuildTree" data-uid="Terminal.Gui.TreeView`1.RebuildTree">RebuildTree()</h4>
  2027. <div class="markdown level1 summary">
  2028. Rebuilds the tree structure for all exposed objects starting with the root objects.
  2029. Call this method when you know there are changes to the tree but don&apos;t know which
  2030. 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>)
  2031. </div>
  2032. <div class="markdown level1 conceptual"></div>
  2033. <h5 class="decalaration">Declaration</h5>
  2034. <div class="codewrapper">
  2035. <pre><code class="lang-csharp hljs">public void RebuildTree()</code></pre>
  2036. </div>
  2037. <a id="Terminal_Gui_TreeView_1_Redraw_" data-uid="Terminal.Gui.TreeView`1.Redraw*"></a>
  2038. <h4 id="Terminal_Gui_TreeView_1_Redraw_Terminal_Gui_Rect_" data-uid="Terminal.Gui.TreeView`1.Redraw(Terminal.Gui.Rect)">Redraw(Rect)</h4>
  2039. <div class="markdown level1 summary"></div>
  2040. <div class="markdown level1 conceptual"></div>
  2041. <h5 class="decalaration">Declaration</h5>
  2042. <div class="codewrapper">
  2043. <pre><code class="lang-csharp hljs">public override void Redraw(Rect bounds)</code></pre>
  2044. </div>
  2045. <h5 class="parameters">Parameters</h5>
  2046. <table class="table table-bordered table-striped table-condensed">
  2047. <thead>
  2048. <tr>
  2049. <th>Type</th>
  2050. <th>Name</th>
  2051. <th>Description</th>
  2052. </tr>
  2053. </thead>
  2054. <tbody>
  2055. <tr>
  2056. <td><a class="xref" href="Terminal.Gui.Rect.html">Rect</a></td>
  2057. <td><span class="parametername">bounds</span></td>
  2058. <td></td>
  2059. </tr>
  2060. </tbody>
  2061. </table>
  2062. <h5 class="overrides">Overrides</h5>
  2063. <div><a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Redraw_Terminal_Gui_Rect_">View.Redraw(Rect)</a></div>
  2064. <a id="Terminal_Gui_TreeView_1_RefreshObject_" data-uid="Terminal.Gui.TreeView`1.RefreshObject*"></a>
  2065. <h4 id="Terminal_Gui_TreeView_1_RefreshObject__0_System_Boolean_" data-uid="Terminal.Gui.TreeView`1.RefreshObject(`0,System.Boolean)">RefreshObject(T, Boolean)</h4>
  2066. <div class="markdown level1 summary">
  2067. Refreshes the state of the object <code data-dev-comment-type="paramref" class="paramref">o</code> in the tree. This will
  2068. recompute children, string representation etc
  2069. </div>
  2070. <div class="markdown level1 conceptual"></div>
  2071. <h5 class="decalaration">Declaration</h5>
  2072. <div class="codewrapper">
  2073. <pre><code class="lang-csharp hljs">public void RefreshObject(T o, bool startAtTop = false)</code></pre>
  2074. </div>
  2075. <h5 class="parameters">Parameters</h5>
  2076. <table class="table table-bordered table-striped table-condensed">
  2077. <thead>
  2078. <tr>
  2079. <th>Type</th>
  2080. <th>Name</th>
  2081. <th>Description</th>
  2082. </tr>
  2083. </thead>
  2084. <tbody>
  2085. <tr>
  2086. <td><span class="xref">T</span></td>
  2087. <td><span class="parametername">o</span></td>
  2088. <td></td>
  2089. </tr>
  2090. <tr>
  2091. <td><span class="xref">System.Boolean</span></td>
  2092. <td><span class="parametername">startAtTop</span></td>
  2093. <td>True to also refresh all ancestors of the objects branch
  2094. (starting with the root). False to refresh only the passed node</td>
  2095. </tr>
  2096. </tbody>
  2097. </table>
  2098. <h5 id="Terminal_Gui_TreeView_1_RefreshObject__0_System_Boolean__remarks">Remarks</h5>
  2099. <div class="markdown level1 remarks">This has no effect if the object is not exposed in the tree.</div>
  2100. <a id="Terminal_Gui_TreeView_1_Remove_" data-uid="Terminal.Gui.TreeView`1.Remove*"></a>
  2101. <h4 id="Terminal_Gui_TreeView_1_Remove__0_" data-uid="Terminal.Gui.TreeView`1.Remove(`0)">Remove(T)</h4>
  2102. <div class="markdown level1 summary">
  2103. Removes the given root object from the tree
  2104. </div>
  2105. <div class="markdown level1 conceptual"></div>
  2106. <h5 class="decalaration">Declaration</h5>
  2107. <div class="codewrapper">
  2108. <pre><code class="lang-csharp hljs">public void Remove(T o)</code></pre>
  2109. </div>
  2110. <h5 class="parameters">Parameters</h5>
  2111. <table class="table table-bordered table-striped table-condensed">
  2112. <thead>
  2113. <tr>
  2114. <th>Type</th>
  2115. <th>Name</th>
  2116. <th>Description</th>
  2117. </tr>
  2118. </thead>
  2119. <tbody>
  2120. <tr>
  2121. <td><span class="xref">T</span></td>
  2122. <td><span class="parametername">o</span></td>
  2123. <td></td>
  2124. </tr>
  2125. </tbody>
  2126. </table>
  2127. <h5 id="Terminal_Gui_TreeView_1_Remove__0__remarks">Remarks</h5>
  2128. <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
  2129. selection is cleared</div>
  2130. <a id="Terminal_Gui_TreeView_1_ScrollDown_" data-uid="Terminal.Gui.TreeView`1.ScrollDown*"></a>
  2131. <h4 id="Terminal_Gui_TreeView_1_ScrollDown" data-uid="Terminal.Gui.TreeView`1.ScrollDown">ScrollDown()</h4>
  2132. <div class="markdown level1 summary">
  2133. Scrolls the view area down a single line without changing the current selection
  2134. </div>
  2135. <div class="markdown level1 conceptual"></div>
  2136. <h5 class="decalaration">Declaration</h5>
  2137. <div class="codewrapper">
  2138. <pre><code class="lang-csharp hljs">public void ScrollDown()</code></pre>
  2139. </div>
  2140. <a id="Terminal_Gui_TreeView_1_ScrollUp_" data-uid="Terminal.Gui.TreeView`1.ScrollUp*"></a>
  2141. <h4 id="Terminal_Gui_TreeView_1_ScrollUp" data-uid="Terminal.Gui.TreeView`1.ScrollUp">ScrollUp()</h4>
  2142. <div class="markdown level1 summary">
  2143. Scrolls the view area up a single line without changing the current selection
  2144. </div>
  2145. <div class="markdown level1 conceptual"></div>
  2146. <h5 class="decalaration">Declaration</h5>
  2147. <div class="codewrapper">
  2148. <pre><code class="lang-csharp hljs">public void ScrollUp()</code></pre>
  2149. </div>
  2150. <a id="Terminal_Gui_TreeView_1_SelectAll_" data-uid="Terminal.Gui.TreeView`1.SelectAll*"></a>
  2151. <h4 id="Terminal_Gui_TreeView_1_SelectAll" data-uid="Terminal.Gui.TreeView`1.SelectAll">SelectAll()</h4>
  2152. <div class="markdown level1 summary">
  2153. 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
  2154. does nothing
  2155. </div>
  2156. <div class="markdown level1 conceptual"></div>
  2157. <h5 class="decalaration">Declaration</h5>
  2158. <div class="codewrapper">
  2159. <pre><code class="lang-csharp hljs">public void SelectAll()</code></pre>
  2160. </div>
  2161. <h3 id="events">Events
  2162. </h3>
  2163. <h4 id="Terminal_Gui_TreeView_1_ObjectActivated" data-uid="Terminal.Gui.TreeView`1.ObjectActivated">ObjectActivated</h4>
  2164. <div class="markdown level1 summary">
  2165. This event is raised when an object is activated e.g. by double clicking or
  2166. pressing <a class="xref" href="Terminal.Gui.TreeView-1.html#Terminal_Gui_TreeView_1_ObjectActivationKey">ObjectActivationKey</a>
  2167. </div>
  2168. <div class="markdown level1 conceptual"></div>
  2169. <h5 class="decalaration">Declaration</h5>
  2170. <div class="codewrapper">
  2171. <pre><code class="lang-csharp hljs">public event Action&lt;ObjectActivatedEventArgs&lt;T&gt;&gt; ObjectActivated</code></pre>
  2172. </div>
  2173. <h5 class="eventType">Event Type</h5>
  2174. <table class="table table-bordered table-striped table-condensed">
  2175. <thead>
  2176. <tr>
  2177. <th>Type</th>
  2178. <th>Description</th>
  2179. </tr>
  2180. </thead>
  2181. <tbody>
  2182. <tr>
  2183. <td><span class="xref">System.Action</span>&lt;<a class="xref" href="Terminal.Gui.Trees.ObjectActivatedEventArgs-1.html">ObjectActivatedEventArgs</a>&lt;T&gt;&gt;</td>
  2184. <td></td>
  2185. </tr>
  2186. </tbody>
  2187. </table>
  2188. <h4 id="Terminal_Gui_TreeView_1_SelectionChanged" data-uid="Terminal.Gui.TreeView`1.SelectionChanged">SelectionChanged</h4>
  2189. <div class="markdown level1 summary">
  2190. Called when the <a class="xref" href="Terminal.Gui.TreeView-1.html#Terminal_Gui_TreeView_1_SelectedObject">SelectedObject</a> changes
  2191. </div>
  2192. <div class="markdown level1 conceptual"></div>
  2193. <h5 class="decalaration">Declaration</h5>
  2194. <div class="codewrapper">
  2195. <pre><code class="lang-csharp hljs">public event EventHandler&lt;SelectionChangedEventArgs&lt;T&gt;&gt; SelectionChanged</code></pre>
  2196. </div>
  2197. <h5 class="eventType">Event Type</h5>
  2198. <table class="table table-bordered table-striped table-condensed">
  2199. <thead>
  2200. <tr>
  2201. <th>Type</th>
  2202. <th>Description</th>
  2203. </tr>
  2204. </thead>
  2205. <tbody>
  2206. <tr>
  2207. <td><span class="xref">System.EventHandler</span>&lt;<a class="xref" href="Terminal.Gui.Trees.SelectionChangedEventArgs-1.html">SelectionChangedEventArgs</a>&lt;T&gt;&gt;</td>
  2208. <td></td>
  2209. </tr>
  2210. </tbody>
  2211. </table>
  2212. <h3 id="implements">Implements</h3>
  2213. <div>
  2214. <span class="xref">System.IDisposable</span>
  2215. </div>
  2216. <div>
  2217. <span class="xref">System.ComponentModel.ISupportInitializeNotification</span>
  2218. </div>
  2219. <div>
  2220. <span class="xref">System.ComponentModel.ISupportInitialize</span>
  2221. </div>
  2222. <div>
  2223. <a class="xref" href="Terminal.Gui.ITreeView.html">ITreeView</a>
  2224. </div>
  2225. </article>
  2226. </div>
  2227. <div class="hidden-sm col-md-2" role="complementary">
  2228. <div class="sideaffix">
  2229. <nav class="bs-docs-sidebar hidden-print hidden-xs hidden-sm affix" id="affix">
  2230. <h5>In This Article</h5>
  2231. <div></div>
  2232. </nav>
  2233. </div>
  2234. </div>
  2235. </div>
  2236. </div>
  2237. <footer>
  2238. <div class="grad-bottom"></div>
  2239. <div class="footer">
  2240. <div class="container">
  2241. <span class="pull-right">
  2242. <a href="#top">Back to top</a>
  2243. </span>
  2244. <span>Generated by <strong>DocFX</strong></span>
  2245. </div>
  2246. </div>
  2247. </footer>
  2248. </div>
  2249. <script type="text/javascript" src="../../styles/docfx.vendor.js"></script>
  2250. <script type="text/javascript" src="../../styles/docfx.js"></script>
  2251. <script type="text/javascript" src="../../styles/main.js"></script>
  2252. </body>
  2253. </html>