Terminal.Gui.TreeView-1.html 141 KB

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