Terminal.Gui.TreeView-1.html 92 KB

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