Terminal.Gui.TextView.html 89 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227
  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 TextView
  8. </title>
  9. <meta name="viewport" content="width=device-width">
  10. <meta name="title" content="Class TextView
  11. ">
  12. <meta name="generator" content="docfx 2.59.0.0">
  13. <link rel="shortcut icon" href="../../favicon.ico">
  14. <link rel="stylesheet" href="../../styles/docfx.vendor.css">
  15. <link rel="stylesheet" href="../../styles/docfx.css">
  16. <link rel="stylesheet" href="../../styles/main.css">
  17. <meta property="docfx:navrel" content="../../toc.html">
  18. <meta property="docfx:tocrel" content="toc.html">
  19. <meta property="docfx:rel" content="../../">
  20. </head>
  21. <body data-spy="scroll" data-target="#affix" data-offset="120">
  22. <div id="wrapper">
  23. <header>
  24. <nav id="autocollapse" class="navbar navbar-inverse ng-scope" role="navigation">
  25. <div class="container">
  26. <div class="navbar-header">
  27. <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar">
  28. <span class="sr-only">Toggle navigation</span>
  29. <span class="icon-bar"></span>
  30. <span class="icon-bar"></span>
  31. <span class="icon-bar"></span>
  32. </button>
  33. <a class="navbar-brand" href="../../index.html">
  34. <img id="logo" class="svg" src="../../images/logo48.png" alt="">
  35. </a>
  36. </div>
  37. <div class="collapse navbar-collapse" id="navbar">
  38. <form class="navbar-form navbar-right" role="search" id="search">
  39. <div class="form-group">
  40. <input type="text" class="form-control" id="search-query" placeholder="Search" autocomplete="off">
  41. </div>
  42. </form>
  43. </div>
  44. </div>
  45. </nav>
  46. <div class="subnav navbar navbar-default">
  47. <div class="container hide-when-search" id="breadcrumb">
  48. <ul class="breadcrumb">
  49. <li></li>
  50. </ul>
  51. </div>
  52. </div>
  53. </header>
  54. <div class="container body-content">
  55. <div id="search-results">
  56. <div class="search-list">Search Results for <span></span></div>
  57. <div class="sr-items">
  58. <p><i class="glyphicon glyphicon-refresh index-loading"></i></p>
  59. </div>
  60. <ul id="pagination" data-first="First" data-prev="Previous" data-next="Next" data-last="Last"></ul>
  61. </div>
  62. </div>
  63. <div role="main" class="container body-content hide-when-search">
  64. <div class="sidenav hide-when-search">
  65. <a class="btn toc-toggle collapse" data-toggle="collapse" href="#sidetoggle" aria-expanded="false" aria-controls="sidetoggle">Show / Hide Table of Contents</a>
  66. <div class="sidetoggle collapse" id="sidetoggle">
  67. <div id="sidetoc"></div>
  68. </div>
  69. </div>
  70. <div class="article row grid-right">
  71. <div class="col-md-10">
  72. <article class="content wrap" id="_content" data-uid="Terminal.Gui.TextView">
  73. <h1 id="Terminal_Gui_TextView" data-uid="Terminal.Gui.TextView" class="text-break">Class TextView
  74. </h1>
  75. <div class="markdown level0 summary">
  76. Multi-line text editing <a class="xref" href="Terminal.Gui.View.html">View</a>
  77. </div>
  78. <div class="markdown level0 conceptual"></div>
  79. <div class="inheritance">
  80. <h5>Inheritance</h5>
  81. <div class="level0"><span class="xref">System.Object</span></div>
  82. <div class="level1"><a class="xref" href="Terminal.Gui.Responder.html">Responder</a></div>
  83. <div class="level2"><a class="xref" href="Terminal.Gui.View.html">View</a></div>
  84. <div class="level3"><span class="xref">TextView</span></div>
  85. </div>
  86. <div classs="implements">
  87. <h5>Implements</h5>
  88. <div><span class="xref">System.IDisposable</span></div>
  89. <div><span class="xref">System.ComponentModel.ISupportInitializeNotification</span></div>
  90. <div><span class="xref">System.ComponentModel.ISupportInitialize</span></div>
  91. </div>
  92. <div class="inheritedMembers">
  93. <h5>Inherited Members</h5>
  94. <div>
  95. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Added">View.Added</a>
  96. </div>
  97. <div>
  98. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Removed">View.Removed</a>
  99. </div>
  100. <div>
  101. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Enter">View.Enter</a>
  102. </div>
  103. <div>
  104. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Leave">View.Leave</a>
  105. </div>
  106. <div>
  107. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_MouseEnter">View.MouseEnter</a>
  108. </div>
  109. <div>
  110. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_MouseLeave">View.MouseLeave</a>
  111. </div>
  112. <div>
  113. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_MouseClick">View.MouseClick</a>
  114. </div>
  115. <div>
  116. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_CanFocusChanged">View.CanFocusChanged</a>
  117. </div>
  118. <div>
  119. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_EnabledChanged">View.EnabledChanged</a>
  120. </div>
  121. <div>
  122. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_VisibleChanged">View.VisibleChanged</a>
  123. </div>
  124. <div>
  125. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_HotKeyChanged">View.HotKeyChanged</a>
  126. </div>
  127. <div>
  128. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_HotKey">View.HotKey</a>
  129. </div>
  130. <div>
  131. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_HotKeySpecifier">View.HotKeySpecifier</a>
  132. </div>
  133. <div>
  134. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Shortcut">View.Shortcut</a>
  135. </div>
  136. <div>
  137. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_ShortcutTag">View.ShortcutTag</a>
  138. </div>
  139. <div>
  140. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_ShortcutAction">View.ShortcutAction</a>
  141. </div>
  142. <div>
  143. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Data">View.Data</a>
  144. </div>
  145. <div>
  146. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Driver">View.Driver</a>
  147. </div>
  148. <div>
  149. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Subviews">View.Subviews</a>
  150. </div>
  151. <div>
  152. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_TabIndexes">View.TabIndexes</a>
  153. </div>
  154. <div>
  155. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_TabIndex">View.TabIndex</a>
  156. </div>
  157. <div>
  158. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_TabStop">View.TabStop</a>
  159. </div>
  160. <div>
  161. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Id">View.Id</a>
  162. </div>
  163. <div>
  164. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_IsCurrentTop">View.IsCurrentTop</a>
  165. </div>
  166. <div>
  167. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_WantMousePositionReports">View.WantMousePositionReports</a>
  168. </div>
  169. <div>
  170. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_WantContinuousButtonPressed">View.WantContinuousButtonPressed</a>
  171. </div>
  172. <div>
  173. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_LayoutStyle">View.LayoutStyle</a>
  174. </div>
  175. <div>
  176. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Bounds">View.Bounds</a>
  177. </div>
  178. <div>
  179. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_X">View.X</a>
  180. </div>
  181. <div>
  182. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Y">View.Y</a>
  183. </div>
  184. <div>
  185. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Width">View.Width</a>
  186. </div>
  187. <div>
  188. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Height">View.Height</a>
  189. </div>
  190. <div>
  191. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_SuperView">View.SuperView</a>
  192. </div>
  193. <div>
  194. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_SetNeedsDisplay">View.SetNeedsDisplay()</a>
  195. </div>
  196. <div>
  197. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_ClearLayoutNeeded">View.ClearLayoutNeeded()</a>
  198. </div>
  199. <div>
  200. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_SetNeedsDisplay_Terminal_Gui_Rect_">View.SetNeedsDisplay(Rect)</a>
  201. </div>
  202. <div>
  203. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_SetChildNeedsDisplay">View.SetChildNeedsDisplay()</a>
  204. </div>
  205. <div>
  206. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Add_Terminal_Gui_View_">View.Add(View)</a>
  207. </div>
  208. <div>
  209. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Add_Terminal_Gui_View___">View.Add(View[])</a>
  210. </div>
  211. <div>
  212. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_RemoveAll">View.RemoveAll()</a>
  213. </div>
  214. <div>
  215. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Remove_Terminal_Gui_View_">View.Remove(View)</a>
  216. </div>
  217. <div>
  218. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_BringSubviewToFront_Terminal_Gui_View_">View.BringSubviewToFront(View)</a>
  219. </div>
  220. <div>
  221. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_SendSubviewToBack_Terminal_Gui_View_">View.SendSubviewToBack(View)</a>
  222. </div>
  223. <div>
  224. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_SendSubviewBackwards_Terminal_Gui_View_">View.SendSubviewBackwards(View)</a>
  225. </div>
  226. <div>
  227. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_BringSubviewForward_Terminal_Gui_View_">View.BringSubviewForward(View)</a>
  228. </div>
  229. <div>
  230. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Clear">View.Clear()</a>
  231. </div>
  232. <div>
  233. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Clear_Terminal_Gui_Rect_">View.Clear(Rect)</a>
  234. </div>
  235. <div>
  236. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_ScreenToView_System_Int32_System_Int32_">View.ScreenToView(Int32, Int32)</a>
  237. </div>
  238. <div>
  239. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_ClipToBounds">View.ClipToBounds()</a>
  240. </div>
  241. <div>
  242. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_SetClip_Terminal_Gui_Rect_">View.SetClip(Rect)</a>
  243. </div>
  244. <div>
  245. <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>
  246. </div>
  247. <div>
  248. <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>
  249. </div>
  250. <div>
  251. <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>
  252. </div>
  253. <div>
  254. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Move_System_Int32_System_Int32_System_Boolean_">View.Move(Int32, Int32, Boolean)</a>
  255. </div>
  256. <div>
  257. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_HasFocus">View.HasFocus</a>
  258. </div>
  259. <div>
  260. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_OnAdded_Terminal_Gui_View_">View.OnAdded(View)</a>
  261. </div>
  262. <div>
  263. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_OnRemoved_Terminal_Gui_View_">View.OnRemoved(View)</a>
  264. </div>
  265. <div>
  266. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Focused">View.Focused</a>
  267. </div>
  268. <div>
  269. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_MostFocused">View.MostFocused</a>
  270. </div>
  271. <div>
  272. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_ColorScheme">View.ColorScheme</a>
  273. </div>
  274. <div>
  275. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_AddRune_System_Int32_System_Int32_System_Rune_">View.AddRune(Int32, Int32, Rune)</a>
  276. </div>
  277. <div>
  278. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_ClearNeedsDisplay">View.ClearNeedsDisplay()</a>
  279. </div>
  280. <div>
  281. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_DrawContent">View.DrawContent</a>
  282. </div>
  283. <div>
  284. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_OnDrawContent_Terminal_Gui_Rect_">View.OnDrawContent(Rect)</a>
  285. </div>
  286. <div>
  287. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_DrawContentComplete">View.DrawContentComplete</a>
  288. </div>
  289. <div>
  290. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_OnDrawContentComplete_Terminal_Gui_Rect_">View.OnDrawContentComplete(Rect)</a>
  291. </div>
  292. <div>
  293. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_SetFocus">View.SetFocus()</a>
  294. </div>
  295. <div>
  296. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_KeyPress">View.KeyPress</a>
  297. </div>
  298. <div>
  299. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_InvokeKeybindings_Terminal_Gui_KeyEvent_">View.InvokeKeybindings(KeyEvent)</a>
  300. </div>
  301. <div>
  302. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_AddKeyBinding_Terminal_Gui_Key_Terminal_Gui_Command_">View.AddKeyBinding(Key, Command)</a>
  303. </div>
  304. <div>
  305. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_ReplaceKeyBinding_Terminal_Gui_Key_Terminal_Gui_Key_">View.ReplaceKeyBinding(Key, Key)</a>
  306. </div>
  307. <div>
  308. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_ContainsKeyBinding_Terminal_Gui_Key_">View.ContainsKeyBinding(Key)</a>
  309. </div>
  310. <div>
  311. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_ClearKeybindings">View.ClearKeybindings()</a>
  312. </div>
  313. <div>
  314. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_ClearKeybinding_Terminal_Gui_Key_">View.ClearKeybinding(Key)</a>
  315. </div>
  316. <div>
  317. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_ClearKeybinding_Terminal_Gui_Command_">View.ClearKeybinding(Command)</a>
  318. </div>
  319. <div>
  320. <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>
  321. </div>
  322. <div>
  323. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_GetSupportedCommands">View.GetSupportedCommands()</a>
  324. </div>
  325. <div>
  326. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_GetKeyFromCommand_Terminal_Gui_Command_">View.GetKeyFromCommand(Command)</a>
  327. </div>
  328. <div>
  329. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_ProcessHotKey_Terminal_Gui_KeyEvent_">View.ProcessHotKey(KeyEvent)</a>
  330. </div>
  331. <div>
  332. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_ProcessColdKey_Terminal_Gui_KeyEvent_">View.ProcessColdKey(KeyEvent)</a>
  333. </div>
  334. <div>
  335. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_KeyDown">View.KeyDown</a>
  336. </div>
  337. <div>
  338. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_OnKeyDown_Terminal_Gui_KeyEvent_">View.OnKeyDown(KeyEvent)</a>
  339. </div>
  340. <div>
  341. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_KeyUp">View.KeyUp</a>
  342. </div>
  343. <div>
  344. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_EnsureFocus">View.EnsureFocus()</a>
  345. </div>
  346. <div>
  347. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_FocusFirst">View.FocusFirst()</a>
  348. </div>
  349. <div>
  350. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_FocusLast">View.FocusLast()</a>
  351. </div>
  352. <div>
  353. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_FocusPrev">View.FocusPrev()</a>
  354. </div>
  355. <div>
  356. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_FocusNext">View.FocusNext()</a>
  357. </div>
  358. <div>
  359. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_LayoutStarted">View.LayoutStarted</a>
  360. </div>
  361. <div>
  362. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_LayoutComplete">View.LayoutComplete</a>
  363. </div>
  364. <div>
  365. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Initialized">View.Initialized</a>
  366. </div>
  367. <div>
  368. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_LayoutSubviews">View.LayoutSubviews()</a>
  369. </div>
  370. <div>
  371. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_AutoSize">View.AutoSize</a>
  372. </div>
  373. <div>
  374. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_TextAlignment">View.TextAlignment</a>
  375. </div>
  376. <div>
  377. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_VerticalTextAlignment">View.VerticalTextAlignment</a>
  378. </div>
  379. <div>
  380. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_TextDirection">View.TextDirection</a>
  381. </div>
  382. <div>
  383. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_IsInitialized">View.IsInitialized</a>
  384. </div>
  385. <div>
  386. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Enabled">View.Enabled</a>
  387. </div>
  388. <div>
  389. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Visible">View.Visible</a>
  390. </div>
  391. <div>
  392. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Border">View.Border</a>
  393. </div>
  394. <div>
  395. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_ToString">View.ToString()</a>
  396. </div>
  397. <div>
  398. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_OnMouseEnter_Terminal_Gui_MouseEvent_">View.OnMouseEnter(MouseEvent)</a>
  399. </div>
  400. <div>
  401. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_OnMouseLeave_Terminal_Gui_MouseEvent_">View.OnMouseLeave(MouseEvent)</a>
  402. </div>
  403. <div>
  404. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_OnMouseEvent_Terminal_Gui_MouseEvent_">View.OnMouseEvent(MouseEvent)</a>
  405. </div>
  406. <div>
  407. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_OnMouseClick_Terminal_Gui_View_MouseEventArgs_">View.OnMouseClick(View.MouseEventArgs)</a>
  408. </div>
  409. <div>
  410. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_OnCanFocusChanged">View.OnCanFocusChanged()</a>
  411. </div>
  412. <div>
  413. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_OnEnabledChanged">View.OnEnabledChanged()</a>
  414. </div>
  415. <div>
  416. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_OnVisibleChanged">View.OnVisibleChanged()</a>
  417. </div>
  418. <div>
  419. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Dispose_System_Boolean_">View.Dispose(Boolean)</a>
  420. </div>
  421. <div>
  422. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_BeginInit">View.BeginInit()</a>
  423. </div>
  424. <div>
  425. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_EndInit">View.EndInit()</a>
  426. </div>
  427. <div>
  428. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_SetWidth_System_Int32_System_Int32__">View.SetWidth(Int32, Int32)</a>
  429. </div>
  430. <div>
  431. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_SetHeight_System_Int32_System_Int32__">View.SetHeight(Int32, Int32)</a>
  432. </div>
  433. <div>
  434. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_GetCurrentWidth_System_Int32__">View.GetCurrentWidth(Int32)</a>
  435. </div>
  436. <div>
  437. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_GetCurrentHeight_System_Int32__">View.GetCurrentHeight(Int32)</a>
  438. </div>
  439. <div>
  440. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_GetNormalColor">View.GetNormalColor()</a>
  441. </div>
  442. <div>
  443. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_GetTopSuperView">View.GetTopSuperView()</a>
  444. </div>
  445. <div>
  446. <a class="xref" href="Terminal.Gui.Responder.html#Terminal_Gui_Responder_Dispose">Responder.Dispose()</a>
  447. </div>
  448. <div>
  449. <span class="xref">System.Object.Equals(System.Object)</span>
  450. </div>
  451. <div>
  452. <span class="xref">System.Object.Equals(System.Object, System.Object)</span>
  453. </div>
  454. <div>
  455. <span class="xref">System.Object.GetHashCode()</span>
  456. </div>
  457. <div>
  458. <span class="xref">System.Object.GetType()</span>
  459. </div>
  460. <div>
  461. <span class="xref">System.Object.MemberwiseClone()</span>
  462. </div>
  463. <div>
  464. <span class="xref">System.Object.ReferenceEquals(System.Object, System.Object)</span>
  465. </div>
  466. </div>
  467. <h6><strong>Namespace</strong>: <a class="xref" href="Terminal.Gui.html">Terminal.Gui</a></h6>
  468. <h6><strong>Assembly</strong>: Terminal.Gui.dll</h6>
  469. <h5 id="Terminal_Gui_TextView_syntax">Syntax</h5>
  470. <div class="codewrapper">
  471. <pre><code class="lang-csharp hljs">public class TextView : View, IDisposable, ISupportInitializeNotification, ISupportInitialize</code></pre>
  472. </div>
  473. <h5 id="Terminal_Gui_TextView_remarks"><strong>Remarks</strong></h5>
  474. <div class="markdown level0 remarks">
  475. <p>
  476. <a class="xref" href="Terminal.Gui.TextView.html">TextView</a> provides a multi-line text editor. Users interact
  477. with it with the standard Emacs commands for movement or the arrow
  478. keys.
  479. </p>
  480. <table><thead><tr><th>Shortcut</th><th>Action performed</th></tr></thead><tbody><tr><td>Left cursor, Control-b</td><td>
  481. Moves the editing point left.
  482. </td></tr><tr><td>Right cursor, Control-f</td><td>
  483. Moves the editing point right.
  484. </td></tr><tr><td>Alt-b</td><td>
  485. Moves one word back.
  486. </td></tr><tr><td>Alt-f</td><td>
  487. Moves one word forward.
  488. </td></tr><tr><td>Up cursor, Control-p</td><td>
  489. Moves the editing point one line up.
  490. </td></tr><tr><td>Down cursor, Control-n</td><td>
  491. Moves the editing point one line down
  492. </td></tr><tr><td>Home key, Control-a</td><td>
  493. Moves the cursor to the beginning of the line.
  494. </td></tr><tr><td>End key, Control-e</td><td>
  495. Moves the cursor to the end of the line.
  496. </td></tr><tr><td>Control-Home</td><td>
  497. Scrolls to the first line and moves the cursor there.
  498. </td></tr><tr><td>Control-End</td><td>
  499. Scrolls to the last line and moves the cursor there.
  500. </td></tr><tr><td>Delete, Control-d</td><td>
  501. Deletes the character in front of the cursor.
  502. </td></tr><tr><td>Backspace</td><td>
  503. Deletes the character behind the cursor.
  504. </td></tr><tr><td>Control-k</td><td>
  505. Deletes the text until the end of the line and replaces the kill buffer
  506. with the deleted text. You can paste this text in a different place by
  507. using Control-y.
  508. </td></tr><tr><td>Control-y</td><td>
  509. Pastes the content of the kill ring into the current position.
  510. </td></tr><tr><td>Alt-d</td><td>
  511. Deletes the word above the cursor and adds it to the kill ring. You
  512. can paste the contents of the kill ring with Control-y.
  513. </td></tr><tr><td>Control-q</td><td>
  514. Quotes the next input character, to prevent the normal processing of
  515. key handling to take place.
  516. </td></tr></tbody></table>
  517. </div>
  518. <h3 id="constructors">Constructors
  519. </h3>
  520. <a id="Terminal_Gui_TextView__ctor_" data-uid="Terminal.Gui.TextView.#ctor*"></a>
  521. <h4 id="Terminal_Gui_TextView__ctor" data-uid="Terminal.Gui.TextView.#ctor">TextView()</h4>
  522. <div class="markdown level1 summary">
  523. Initializes a <a class="xref" href="Terminal.Gui.TextView.html">TextView</a> on the specified area,
  524. with dimensions controlled with the X, Y, Width and Height properties.
  525. </div>
  526. <div class="markdown level1 conceptual"></div>
  527. <h5 class="decalaration">Declaration</h5>
  528. <div class="codewrapper">
  529. <pre><code class="lang-csharp hljs">public TextView()</code></pre>
  530. </div>
  531. <a id="Terminal_Gui_TextView__ctor_" data-uid="Terminal.Gui.TextView.#ctor*"></a>
  532. <h4 id="Terminal_Gui_TextView__ctor_Terminal_Gui_Rect_" data-uid="Terminal.Gui.TextView.#ctor(Terminal.Gui.Rect)">TextView(Rect)</h4>
  533. <div class="markdown level1 summary">
  534. Initializes a <a class="xref" href="Terminal.Gui.TextView.html">TextView</a> on the specified area, with absolute position and size.
  535. </div>
  536. <div class="markdown level1 conceptual"></div>
  537. <h5 class="decalaration">Declaration</h5>
  538. <div class="codewrapper">
  539. <pre><code class="lang-csharp hljs">public TextView(Rect frame)</code></pre>
  540. </div>
  541. <h5 class="parameters">Parameters</h5>
  542. <table class="table table-bordered table-striped table-condensed">
  543. <thead>
  544. <tr>
  545. <th>Type</th>
  546. <th>Name</th>
  547. <th>Description</th>
  548. </tr>
  549. </thead>
  550. <tbody>
  551. <tr>
  552. <td><a class="xref" href="Terminal.Gui.Rect.html">Rect</a></td>
  553. <td><span class="parametername">frame</span></td>
  554. <td></td>
  555. </tr>
  556. </tbody>
  557. </table>
  558. <h5 id="Terminal_Gui_TextView__ctor_Terminal_Gui_Rect__remarks">Remarks</h5>
  559. <div class="markdown level1 remarks">
  560. </div>
  561. <h3 id="properties">Properties
  562. </h3>
  563. <a id="Terminal_Gui_TextView_AllowsReturn_" data-uid="Terminal.Gui.TextView.AllowsReturn*"></a>
  564. <h4 id="Terminal_Gui_TextView_AllowsReturn" data-uid="Terminal.Gui.TextView.AllowsReturn">AllowsReturn</h4>
  565. <div class="markdown level1 summary">
  566. Gets or sets a value indicating whether pressing ENTER in a <a class="xref" href="Terminal.Gui.TextView.html">TextView</a>
  567. creates a new line of text in the view or activates the default button for the toplevel.
  568. </div>
  569. <div class="markdown level1 conceptual"></div>
  570. <h5 class="decalaration">Declaration</h5>
  571. <div class="codewrapper">
  572. <pre><code class="lang-csharp hljs">public bool AllowsReturn { get; set; }</code></pre>
  573. </div>
  574. <h5 class="propertyValue">Property Value</h5>
  575. <table class="table table-bordered table-striped table-condensed">
  576. <thead>
  577. <tr>
  578. <th>Type</th>
  579. <th>Description</th>
  580. </tr>
  581. </thead>
  582. <tbody>
  583. <tr>
  584. <td><span class="xref">System.Boolean</span></td>
  585. <td></td>
  586. </tr>
  587. </tbody>
  588. </table>
  589. <a id="Terminal_Gui_TextView_AllowsTab_" data-uid="Terminal.Gui.TextView.AllowsTab*"></a>
  590. <h4 id="Terminal_Gui_TextView_AllowsTab" data-uid="Terminal.Gui.TextView.AllowsTab">AllowsTab</h4>
  591. <div class="markdown level1 summary">
  592. Gets or sets a value indicating whether pressing the TAB key in a <a class="xref" href="Terminal.Gui.TextView.html">TextView</a>
  593. types a TAB character in the view instead of moving the focus to the next view in the tab order.
  594. </div>
  595. <div class="markdown level1 conceptual"></div>
  596. <h5 class="decalaration">Declaration</h5>
  597. <div class="codewrapper">
  598. <pre><code class="lang-csharp hljs">public bool AllowsTab { get; set; }</code></pre>
  599. </div>
  600. <h5 class="propertyValue">Property Value</h5>
  601. <table class="table table-bordered table-striped table-condensed">
  602. <thead>
  603. <tr>
  604. <th>Type</th>
  605. <th>Description</th>
  606. </tr>
  607. </thead>
  608. <tbody>
  609. <tr>
  610. <td><span class="xref">System.Boolean</span></td>
  611. <td></td>
  612. </tr>
  613. </tbody>
  614. </table>
  615. <a id="Terminal_Gui_TextView_Autocomplete_" data-uid="Terminal.Gui.TextView.Autocomplete*"></a>
  616. <h4 id="Terminal_Gui_TextView_Autocomplete" data-uid="Terminal.Gui.TextView.Autocomplete">Autocomplete</h4>
  617. <div class="markdown level1 summary">
  618. Provides autocomplete context menu based on suggestions at the current cursor
  619. position. Populate <a class="xref" href="Terminal.Gui.Autocomplete.html#Terminal_Gui_Autocomplete_AllSuggestions">AllSuggestions</a> to enable this feature
  620. </div>
  621. <div class="markdown level1 conceptual"></div>
  622. <h5 class="decalaration">Declaration</h5>
  623. <div class="codewrapper">
  624. <pre><code class="lang-csharp hljs">public IAutocomplete Autocomplete { get; protected set; }</code></pre>
  625. </div>
  626. <h5 class="propertyValue">Property Value</h5>
  627. <table class="table table-bordered table-striped table-condensed">
  628. <thead>
  629. <tr>
  630. <th>Type</th>
  631. <th>Description</th>
  632. </tr>
  633. </thead>
  634. <tbody>
  635. <tr>
  636. <td><a class="xref" href="Terminal.Gui.IAutocomplete.html">IAutocomplete</a></td>
  637. <td></td>
  638. </tr>
  639. </tbody>
  640. </table>
  641. <a id="Terminal_Gui_TextView_BottomOffset_" data-uid="Terminal.Gui.TextView.BottomOffset*"></a>
  642. <h4 id="Terminal_Gui_TextView_BottomOffset" data-uid="Terminal.Gui.TextView.BottomOffset">BottomOffset</h4>
  643. <div class="markdown level1 summary">
  644. The bottom offset needed to use a horizontal scrollbar or for another reason.
  645. This is only needed with the keyboard navigation.
  646. </div>
  647. <div class="markdown level1 conceptual"></div>
  648. <h5 class="decalaration">Declaration</h5>
  649. <div class="codewrapper">
  650. <pre><code class="lang-csharp hljs">public int BottomOffset { get; set; }</code></pre>
  651. </div>
  652. <h5 class="propertyValue">Property Value</h5>
  653. <table class="table table-bordered table-striped table-condensed">
  654. <thead>
  655. <tr>
  656. <th>Type</th>
  657. <th>Description</th>
  658. </tr>
  659. </thead>
  660. <tbody>
  661. <tr>
  662. <td><span class="xref">System.Int32</span></td>
  663. <td></td>
  664. </tr>
  665. </tbody>
  666. </table>
  667. <a id="Terminal_Gui_TextView_CanFocus_" data-uid="Terminal.Gui.TextView.CanFocus*"></a>
  668. <h4 id="Terminal_Gui_TextView_CanFocus" data-uid="Terminal.Gui.TextView.CanFocus">CanFocus</h4>
  669. <div class="markdown level1 summary"></div>
  670. <div class="markdown level1 conceptual"></div>
  671. <h5 class="decalaration">Declaration</h5>
  672. <div class="codewrapper">
  673. <pre><code class="lang-csharp hljs">public override bool CanFocus { get; set; }</code></pre>
  674. </div>
  675. <h5 class="propertyValue">Property Value</h5>
  676. <table class="table table-bordered table-striped table-condensed">
  677. <thead>
  678. <tr>
  679. <th>Type</th>
  680. <th>Description</th>
  681. </tr>
  682. </thead>
  683. <tbody>
  684. <tr>
  685. <td><span class="xref">System.Boolean</span></td>
  686. <td></td>
  687. </tr>
  688. </tbody>
  689. </table>
  690. <h5 class="overrides">Overrides</h5>
  691. <div><a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_CanFocus">View.CanFocus</a></div>
  692. <a id="Terminal_Gui_TextView_ContextMenu_" data-uid="Terminal.Gui.TextView.ContextMenu*"></a>
  693. <h4 id="Terminal_Gui_TextView_ContextMenu" data-uid="Terminal.Gui.TextView.ContextMenu">ContextMenu</h4>
  694. <div class="markdown level1 summary">
  695. Get the <a class="xref" href="Terminal.Gui.TextView.html#Terminal_Gui_TextView_ContextMenu">ContextMenu</a> for this view.
  696. </div>
  697. <div class="markdown level1 conceptual"></div>
  698. <h5 class="decalaration">Declaration</h5>
  699. <div class="codewrapper">
  700. <pre><code class="lang-csharp hljs">public ContextMenu ContextMenu { get; }</code></pre>
  701. </div>
  702. <h5 class="propertyValue">Property Value</h5>
  703. <table class="table table-bordered table-striped table-condensed">
  704. <thead>
  705. <tr>
  706. <th>Type</th>
  707. <th>Description</th>
  708. </tr>
  709. </thead>
  710. <tbody>
  711. <tr>
  712. <td><a class="xref" href="Terminal.Gui.ContextMenu.html">ContextMenu</a></td>
  713. <td></td>
  714. </tr>
  715. </tbody>
  716. </table>
  717. <a id="Terminal_Gui_TextView_CurrentColumn_" data-uid="Terminal.Gui.TextView.CurrentColumn*"></a>
  718. <h4 id="Terminal_Gui_TextView_CurrentColumn" data-uid="Terminal.Gui.TextView.CurrentColumn">CurrentColumn</h4>
  719. <div class="markdown level1 summary">
  720. Gets the cursor column.
  721. </div>
  722. <div class="markdown level1 conceptual"></div>
  723. <h5 class="decalaration">Declaration</h5>
  724. <div class="codewrapper">
  725. <pre><code class="lang-csharp hljs">public int CurrentColumn { get; }</code></pre>
  726. </div>
  727. <h5 class="propertyValue">Property Value</h5>
  728. <table class="table table-bordered table-striped table-condensed">
  729. <thead>
  730. <tr>
  731. <th>Type</th>
  732. <th>Description</th>
  733. </tr>
  734. </thead>
  735. <tbody>
  736. <tr>
  737. <td><span class="xref">System.Int32</span></td>
  738. <td>The cursor column.</td>
  739. </tr>
  740. </tbody>
  741. </table>
  742. <a id="Terminal_Gui_TextView_CurrentRow_" data-uid="Terminal.Gui.TextView.CurrentRow*"></a>
  743. <h4 id="Terminal_Gui_TextView_CurrentRow" data-uid="Terminal.Gui.TextView.CurrentRow">CurrentRow</h4>
  744. <div class="markdown level1 summary">
  745. Gets the current cursor row.
  746. </div>
  747. <div class="markdown level1 conceptual"></div>
  748. <h5 class="decalaration">Declaration</h5>
  749. <div class="codewrapper">
  750. <pre><code class="lang-csharp hljs">public int CurrentRow { get; }</code></pre>
  751. </div>
  752. <h5 class="propertyValue">Property Value</h5>
  753. <table class="table table-bordered table-striped table-condensed">
  754. <thead>
  755. <tr>
  756. <th>Type</th>
  757. <th>Description</th>
  758. </tr>
  759. </thead>
  760. <tbody>
  761. <tr>
  762. <td><span class="xref">System.Int32</span></td>
  763. <td></td>
  764. </tr>
  765. </tbody>
  766. </table>
  767. <a id="Terminal_Gui_TextView_CursorPosition_" data-uid="Terminal.Gui.TextView.CursorPosition*"></a>
  768. <h4 id="Terminal_Gui_TextView_CursorPosition" data-uid="Terminal.Gui.TextView.CursorPosition">CursorPosition</h4>
  769. <div class="markdown level1 summary">
  770. Sets or gets the current cursor position.
  771. </div>
  772. <div class="markdown level1 conceptual"></div>
  773. <h5 class="decalaration">Declaration</h5>
  774. <div class="codewrapper">
  775. <pre><code class="lang-csharp hljs">public Point CursorPosition { get; set; }</code></pre>
  776. </div>
  777. <h5 class="propertyValue">Property Value</h5>
  778. <table class="table table-bordered table-striped table-condensed">
  779. <thead>
  780. <tr>
  781. <th>Type</th>
  782. <th>Description</th>
  783. </tr>
  784. </thead>
  785. <tbody>
  786. <tr>
  787. <td><a class="xref" href="Terminal.Gui.Point.html">Point</a></td>
  788. <td></td>
  789. </tr>
  790. </tbody>
  791. </table>
  792. <a id="Terminal_Gui_TextView_DesiredCursorVisibility_" data-uid="Terminal.Gui.TextView.DesiredCursorVisibility*"></a>
  793. <h4 id="Terminal_Gui_TextView_DesiredCursorVisibility" data-uid="Terminal.Gui.TextView.DesiredCursorVisibility">DesiredCursorVisibility</h4>
  794. <div class="markdown level1 summary">
  795. Get / Set the wished cursor when the field is focused
  796. </div>
  797. <div class="markdown level1 conceptual"></div>
  798. <h5 class="decalaration">Declaration</h5>
  799. <div class="codewrapper">
  800. <pre><code class="lang-csharp hljs">public CursorVisibility DesiredCursorVisibility { get; set; }</code></pre>
  801. </div>
  802. <h5 class="propertyValue">Property Value</h5>
  803. <table class="table table-bordered table-striped table-condensed">
  804. <thead>
  805. <tr>
  806. <th>Type</th>
  807. <th>Description</th>
  808. </tr>
  809. </thead>
  810. <tbody>
  811. <tr>
  812. <td><a class="xref" href="Terminal.Gui.CursorVisibility.html">CursorVisibility</a></td>
  813. <td></td>
  814. </tr>
  815. </tbody>
  816. </table>
  817. <a id="Terminal_Gui_TextView_Frame_" data-uid="Terminal.Gui.TextView.Frame*"></a>
  818. <h4 id="Terminal_Gui_TextView_Frame" data-uid="Terminal.Gui.TextView.Frame">Frame</h4>
  819. <div class="markdown level1 summary"></div>
  820. <div class="markdown level1 conceptual"></div>
  821. <h5 class="decalaration">Declaration</h5>
  822. <div class="codewrapper">
  823. <pre><code class="lang-csharp hljs">public override Rect Frame { get; set; }</code></pre>
  824. </div>
  825. <h5 class="propertyValue">Property Value</h5>
  826. <table class="table table-bordered table-striped table-condensed">
  827. <thead>
  828. <tr>
  829. <th>Type</th>
  830. <th>Description</th>
  831. </tr>
  832. </thead>
  833. <tbody>
  834. <tr>
  835. <td><a class="xref" href="Terminal.Gui.Rect.html">Rect</a></td>
  836. <td></td>
  837. </tr>
  838. </tbody>
  839. </table>
  840. <h5 class="overrides">Overrides</h5>
  841. <div><a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Frame">View.Frame</a></div>
  842. <a id="Terminal_Gui_TextView_HasHistoryChanges_" data-uid="Terminal.Gui.TextView.HasHistoryChanges*"></a>
  843. <h4 id="Terminal_Gui_TextView_HasHistoryChanges" data-uid="Terminal.Gui.TextView.HasHistoryChanges">HasHistoryChanges</h4>
  844. <div class="markdown level1 summary">
  845. Indicates whatever the text has history changes or not.
  846. <span class="xref">true</span> if the text has history changes <span class="xref">false</span> otherwise.
  847. </div>
  848. <div class="markdown level1 conceptual"></div>
  849. <h5 class="decalaration">Declaration</h5>
  850. <div class="codewrapper">
  851. <pre><code class="lang-csharp hljs">public bool HasHistoryChanges { get; }</code></pre>
  852. </div>
  853. <h5 class="propertyValue">Property Value</h5>
  854. <table class="table table-bordered table-striped table-condensed">
  855. <thead>
  856. <tr>
  857. <th>Type</th>
  858. <th>Description</th>
  859. </tr>
  860. </thead>
  861. <tbody>
  862. <tr>
  863. <td><span class="xref">System.Boolean</span></td>
  864. <td></td>
  865. </tr>
  866. </tbody>
  867. </table>
  868. <a id="Terminal_Gui_TextView_IsDirty_" data-uid="Terminal.Gui.TextView.IsDirty*"></a>
  869. <h4 id="Terminal_Gui_TextView_IsDirty" data-uid="Terminal.Gui.TextView.IsDirty">IsDirty</h4>
  870. <div class="markdown level1 summary">
  871. Indicates whatever the text was changed or not.
  872. <span class="xref">true</span> if the text was changed <span class="xref">false</span> otherwise.
  873. </div>
  874. <div class="markdown level1 conceptual"></div>
  875. <h5 class="decalaration">Declaration</h5>
  876. <div class="codewrapper">
  877. <pre><code class="lang-csharp hljs">public bool IsDirty { get; }</code></pre>
  878. </div>
  879. <h5 class="propertyValue">Property Value</h5>
  880. <table class="table table-bordered table-striped table-condensed">
  881. <thead>
  882. <tr>
  883. <th>Type</th>
  884. <th>Description</th>
  885. </tr>
  886. </thead>
  887. <tbody>
  888. <tr>
  889. <td><span class="xref">System.Boolean</span></td>
  890. <td></td>
  891. </tr>
  892. </tbody>
  893. </table>
  894. <a id="Terminal_Gui_TextView_LeftColumn_" data-uid="Terminal.Gui.TextView.LeftColumn*"></a>
  895. <h4 id="Terminal_Gui_TextView_LeftColumn" data-uid="Terminal.Gui.TextView.LeftColumn">LeftColumn</h4>
  896. <div class="markdown level1 summary">
  897. Gets or sets the left column.
  898. </div>
  899. <div class="markdown level1 conceptual"></div>
  900. <h5 class="decalaration">Declaration</h5>
  901. <div class="codewrapper">
  902. <pre><code class="lang-csharp hljs">public int LeftColumn { get; set; }</code></pre>
  903. </div>
  904. <h5 class="propertyValue">Property Value</h5>
  905. <table class="table table-bordered table-striped table-condensed">
  906. <thead>
  907. <tr>
  908. <th>Type</th>
  909. <th>Description</th>
  910. </tr>
  911. </thead>
  912. <tbody>
  913. <tr>
  914. <td><span class="xref">System.Int32</span></td>
  915. <td></td>
  916. </tr>
  917. </tbody>
  918. </table>
  919. <a id="Terminal_Gui_TextView_Lines_" data-uid="Terminal.Gui.TextView.Lines*"></a>
  920. <h4 id="Terminal_Gui_TextView_Lines" data-uid="Terminal.Gui.TextView.Lines">Lines</h4>
  921. <div class="markdown level1 summary">
  922. Gets the number of lines.
  923. </div>
  924. <div class="markdown level1 conceptual"></div>
  925. <h5 class="decalaration">Declaration</h5>
  926. <div class="codewrapper">
  927. <pre><code class="lang-csharp hljs">public int Lines { get; }</code></pre>
  928. </div>
  929. <h5 class="propertyValue">Property Value</h5>
  930. <table class="table table-bordered table-striped table-condensed">
  931. <thead>
  932. <tr>
  933. <th>Type</th>
  934. <th>Description</th>
  935. </tr>
  936. </thead>
  937. <tbody>
  938. <tr>
  939. <td><span class="xref">System.Int32</span></td>
  940. <td></td>
  941. </tr>
  942. </tbody>
  943. </table>
  944. <a id="Terminal_Gui_TextView_Maxlength_" data-uid="Terminal.Gui.TextView.Maxlength*"></a>
  945. <h4 id="Terminal_Gui_TextView_Maxlength" data-uid="Terminal.Gui.TextView.Maxlength">Maxlength</h4>
  946. <div class="markdown level1 summary">
  947. Gets the maximum visible length line.
  948. </div>
  949. <div class="markdown level1 conceptual"></div>
  950. <h5 class="decalaration">Declaration</h5>
  951. <div class="codewrapper">
  952. <pre><code class="lang-csharp hljs">public int Maxlength { get; }</code></pre>
  953. </div>
  954. <h5 class="propertyValue">Property Value</h5>
  955. <table class="table table-bordered table-striped table-condensed">
  956. <thead>
  957. <tr>
  958. <th>Type</th>
  959. <th>Description</th>
  960. </tr>
  961. </thead>
  962. <tbody>
  963. <tr>
  964. <td><span class="xref">System.Int32</span></td>
  965. <td></td>
  966. </tr>
  967. </tbody>
  968. </table>
  969. <a id="Terminal_Gui_TextView_Multiline_" data-uid="Terminal.Gui.TextView.Multiline*"></a>
  970. <h4 id="Terminal_Gui_TextView_Multiline" data-uid="Terminal.Gui.TextView.Multiline">Multiline</h4>
  971. <div class="markdown level1 summary">
  972. Gets or sets a value indicating whether this <a class="xref" href="Terminal.Gui.TextView.html">TextView</a> is a multiline text view.
  973. </div>
  974. <div class="markdown level1 conceptual"></div>
  975. <h5 class="decalaration">Declaration</h5>
  976. <div class="codewrapper">
  977. <pre><code class="lang-csharp hljs">public bool Multiline { get; set; }</code></pre>
  978. </div>
  979. <h5 class="propertyValue">Property Value</h5>
  980. <table class="table table-bordered table-striped table-condensed">
  981. <thead>
  982. <tr>
  983. <th>Type</th>
  984. <th>Description</th>
  985. </tr>
  986. </thead>
  987. <tbody>
  988. <tr>
  989. <td><span class="xref">System.Boolean</span></td>
  990. <td></td>
  991. </tr>
  992. </tbody>
  993. </table>
  994. <a id="Terminal_Gui_TextView_ReadOnly_" data-uid="Terminal.Gui.TextView.ReadOnly*"></a>
  995. <h4 id="Terminal_Gui_TextView_ReadOnly" data-uid="Terminal.Gui.TextView.ReadOnly">ReadOnly</h4>
  996. <div class="markdown level1 summary">
  997. Gets or sets whether the <a class="xref" href="Terminal.Gui.TextView.html">TextView</a> is in read-only mode or not
  998. </div>
  999. <div class="markdown level1 conceptual"></div>
  1000. <h5 class="decalaration">Declaration</h5>
  1001. <div class="codewrapper">
  1002. <pre><code class="lang-csharp hljs">public bool ReadOnly { get; set; }</code></pre>
  1003. </div>
  1004. <h5 class="propertyValue">Property Value</h5>
  1005. <table class="table table-bordered table-striped table-condensed">
  1006. <thead>
  1007. <tr>
  1008. <th>Type</th>
  1009. <th>Description</th>
  1010. </tr>
  1011. </thead>
  1012. <tbody>
  1013. <tr>
  1014. <td><span class="xref">System.Boolean</span></td>
  1015. <td>Boolean value(Default false)</td>
  1016. </tr>
  1017. </tbody>
  1018. </table>
  1019. <a id="Terminal_Gui_TextView_RightOffset_" data-uid="Terminal.Gui.TextView.RightOffset*"></a>
  1020. <h4 id="Terminal_Gui_TextView_RightOffset" data-uid="Terminal.Gui.TextView.RightOffset">RightOffset</h4>
  1021. <div class="markdown level1 summary">
  1022. The right offset needed to use a vertical scrollbar or for another reason.
  1023. This is only needed with the keyboard navigation.
  1024. </div>
  1025. <div class="markdown level1 conceptual"></div>
  1026. <h5 class="decalaration">Declaration</h5>
  1027. <div class="codewrapper">
  1028. <pre><code class="lang-csharp hljs">public int RightOffset { get; set; }</code></pre>
  1029. </div>
  1030. <h5 class="propertyValue">Property Value</h5>
  1031. <table class="table table-bordered table-striped table-condensed">
  1032. <thead>
  1033. <tr>
  1034. <th>Type</th>
  1035. <th>Description</th>
  1036. </tr>
  1037. </thead>
  1038. <tbody>
  1039. <tr>
  1040. <td><span class="xref">System.Int32</span></td>
  1041. <td></td>
  1042. </tr>
  1043. </tbody>
  1044. </table>
  1045. <a id="Terminal_Gui_TextView_SelectedLength_" data-uid="Terminal.Gui.TextView.SelectedLength*"></a>
  1046. <h4 id="Terminal_Gui_TextView_SelectedLength" data-uid="Terminal.Gui.TextView.SelectedLength">SelectedLength</h4>
  1047. <div class="markdown level1 summary">
  1048. Length of the selected text.
  1049. </div>
  1050. <div class="markdown level1 conceptual"></div>
  1051. <h5 class="decalaration">Declaration</h5>
  1052. <div class="codewrapper">
  1053. <pre><code class="lang-csharp hljs">public int SelectedLength { get; }</code></pre>
  1054. </div>
  1055. <h5 class="propertyValue">Property Value</h5>
  1056. <table class="table table-bordered table-striped table-condensed">
  1057. <thead>
  1058. <tr>
  1059. <th>Type</th>
  1060. <th>Description</th>
  1061. </tr>
  1062. </thead>
  1063. <tbody>
  1064. <tr>
  1065. <td><span class="xref">System.Int32</span></td>
  1066. <td></td>
  1067. </tr>
  1068. </tbody>
  1069. </table>
  1070. <a id="Terminal_Gui_TextView_SelectedText_" data-uid="Terminal.Gui.TextView.SelectedText*"></a>
  1071. <h4 id="Terminal_Gui_TextView_SelectedText" data-uid="Terminal.Gui.TextView.SelectedText">SelectedText</h4>
  1072. <div class="markdown level1 summary">
  1073. The selected text.
  1074. </div>
  1075. <div class="markdown level1 conceptual"></div>
  1076. <h5 class="decalaration">Declaration</h5>
  1077. <div class="codewrapper">
  1078. <pre><code class="lang-csharp hljs">public ustring SelectedText { get; }</code></pre>
  1079. </div>
  1080. <h5 class="propertyValue">Property Value</h5>
  1081. <table class="table table-bordered table-striped table-condensed">
  1082. <thead>
  1083. <tr>
  1084. <th>Type</th>
  1085. <th>Description</th>
  1086. </tr>
  1087. </thead>
  1088. <tbody>
  1089. <tr>
  1090. <td><span class="xref">NStack.ustring</span></td>
  1091. <td></td>
  1092. </tr>
  1093. </tbody>
  1094. </table>
  1095. <a id="Terminal_Gui_TextView_Selecting_" data-uid="Terminal.Gui.TextView.Selecting*"></a>
  1096. <h4 id="Terminal_Gui_TextView_Selecting" data-uid="Terminal.Gui.TextView.Selecting">Selecting</h4>
  1097. <div class="markdown level1 summary">
  1098. Get or sets the selecting.
  1099. </div>
  1100. <div class="markdown level1 conceptual"></div>
  1101. <h5 class="decalaration">Declaration</h5>
  1102. <div class="codewrapper">
  1103. <pre><code class="lang-csharp hljs">public bool Selecting { get; set; }</code></pre>
  1104. </div>
  1105. <h5 class="propertyValue">Property Value</h5>
  1106. <table class="table table-bordered table-striped table-condensed">
  1107. <thead>
  1108. <tr>
  1109. <th>Type</th>
  1110. <th>Description</th>
  1111. </tr>
  1112. </thead>
  1113. <tbody>
  1114. <tr>
  1115. <td><span class="xref">System.Boolean</span></td>
  1116. <td></td>
  1117. </tr>
  1118. </tbody>
  1119. </table>
  1120. <a id="Terminal_Gui_TextView_SelectionStartColumn_" data-uid="Terminal.Gui.TextView.SelectionStartColumn*"></a>
  1121. <h4 id="Terminal_Gui_TextView_SelectionStartColumn" data-uid="Terminal.Gui.TextView.SelectionStartColumn">SelectionStartColumn</h4>
  1122. <div class="markdown level1 summary">
  1123. Start column position of the selected text.
  1124. </div>
  1125. <div class="markdown level1 conceptual"></div>
  1126. <h5 class="decalaration">Declaration</h5>
  1127. <div class="codewrapper">
  1128. <pre><code class="lang-csharp hljs">public int SelectionStartColumn { get; set; }</code></pre>
  1129. </div>
  1130. <h5 class="propertyValue">Property Value</h5>
  1131. <table class="table table-bordered table-striped table-condensed">
  1132. <thead>
  1133. <tr>
  1134. <th>Type</th>
  1135. <th>Description</th>
  1136. </tr>
  1137. </thead>
  1138. <tbody>
  1139. <tr>
  1140. <td><span class="xref">System.Int32</span></td>
  1141. <td></td>
  1142. </tr>
  1143. </tbody>
  1144. </table>
  1145. <a id="Terminal_Gui_TextView_SelectionStartRow_" data-uid="Terminal.Gui.TextView.SelectionStartRow*"></a>
  1146. <h4 id="Terminal_Gui_TextView_SelectionStartRow" data-uid="Terminal.Gui.TextView.SelectionStartRow">SelectionStartRow</h4>
  1147. <div class="markdown level1 summary">
  1148. Start row position of the selected text.
  1149. </div>
  1150. <div class="markdown level1 conceptual"></div>
  1151. <h5 class="decalaration">Declaration</h5>
  1152. <div class="codewrapper">
  1153. <pre><code class="lang-csharp hljs">public int SelectionStartRow { get; set; }</code></pre>
  1154. </div>
  1155. <h5 class="propertyValue">Property Value</h5>
  1156. <table class="table table-bordered table-striped table-condensed">
  1157. <thead>
  1158. <tr>
  1159. <th>Type</th>
  1160. <th>Description</th>
  1161. </tr>
  1162. </thead>
  1163. <tbody>
  1164. <tr>
  1165. <td><span class="xref">System.Int32</span></td>
  1166. <td></td>
  1167. </tr>
  1168. </tbody>
  1169. </table>
  1170. <a id="Terminal_Gui_TextView_TabWidth_" data-uid="Terminal.Gui.TextView.TabWidth*"></a>
  1171. <h4 id="Terminal_Gui_TextView_TabWidth" data-uid="Terminal.Gui.TextView.TabWidth">TabWidth</h4>
  1172. <div class="markdown level1 summary">
  1173. Gets or sets a value indicating the number of whitespace when pressing the TAB key.
  1174. </div>
  1175. <div class="markdown level1 conceptual"></div>
  1176. <h5 class="decalaration">Declaration</h5>
  1177. <div class="codewrapper">
  1178. <pre><code class="lang-csharp hljs">public int TabWidth { get; set; }</code></pre>
  1179. </div>
  1180. <h5 class="propertyValue">Property Value</h5>
  1181. <table class="table table-bordered table-striped table-condensed">
  1182. <thead>
  1183. <tr>
  1184. <th>Type</th>
  1185. <th>Description</th>
  1186. </tr>
  1187. </thead>
  1188. <tbody>
  1189. <tr>
  1190. <td><span class="xref">System.Int32</span></td>
  1191. <td></td>
  1192. </tr>
  1193. </tbody>
  1194. </table>
  1195. <a id="Terminal_Gui_TextView_Text_" data-uid="Terminal.Gui.TextView.Text*"></a>
  1196. <h4 id="Terminal_Gui_TextView_Text" data-uid="Terminal.Gui.TextView.Text">Text</h4>
  1197. <div class="markdown level1 summary">
  1198. Sets or gets the text in the <a class="xref" href="Terminal.Gui.TextView.html">TextView</a>.
  1199. </div>
  1200. <div class="markdown level1 conceptual"></div>
  1201. <h5 class="decalaration">Declaration</h5>
  1202. <div class="codewrapper">
  1203. <pre><code class="lang-csharp hljs">public override ustring Text { get; set; }</code></pre>
  1204. </div>
  1205. <h5 class="propertyValue">Property Value</h5>
  1206. <table class="table table-bordered table-striped table-condensed">
  1207. <thead>
  1208. <tr>
  1209. <th>Type</th>
  1210. <th>Description</th>
  1211. </tr>
  1212. </thead>
  1213. <tbody>
  1214. <tr>
  1215. <td><span class="xref">NStack.ustring</span></td>
  1216. <td></td>
  1217. </tr>
  1218. </tbody>
  1219. </table>
  1220. <h5 class="overrides">Overrides</h5>
  1221. <div><a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Text">View.Text</a></div>
  1222. <h5 id="Terminal_Gui_TextView_Text_remarks">Remarks</h5>
  1223. <div class="markdown level1 remarks">
  1224. </div>
  1225. <a id="Terminal_Gui_TextView_TopRow_" data-uid="Terminal.Gui.TextView.TopRow*"></a>
  1226. <h4 id="Terminal_Gui_TextView_TopRow" data-uid="Terminal.Gui.TextView.TopRow">TopRow</h4>
  1227. <div class="markdown level1 summary">
  1228. Gets or sets the top row.
  1229. </div>
  1230. <div class="markdown level1 conceptual"></div>
  1231. <h5 class="decalaration">Declaration</h5>
  1232. <div class="codewrapper">
  1233. <pre><code class="lang-csharp hljs">public int TopRow { get; set; }</code></pre>
  1234. </div>
  1235. <h5 class="propertyValue">Property Value</h5>
  1236. <table class="table table-bordered table-striped table-condensed">
  1237. <thead>
  1238. <tr>
  1239. <th>Type</th>
  1240. <th>Description</th>
  1241. </tr>
  1242. </thead>
  1243. <tbody>
  1244. <tr>
  1245. <td><span class="xref">System.Int32</span></td>
  1246. <td></td>
  1247. </tr>
  1248. </tbody>
  1249. </table>
  1250. <a id="Terminal_Gui_TextView_Used_" data-uid="Terminal.Gui.TextView.Used*"></a>
  1251. <h4 id="Terminal_Gui_TextView_Used" data-uid="Terminal.Gui.TextView.Used">Used</h4>
  1252. <div class="markdown level1 summary">
  1253. Tracks whether the text view should be considered &quot;used&quot;, that is, that the user has moved in the entry,
  1254. so new input should be appended at the cursor position, rather than clearing the entry
  1255. </div>
  1256. <div class="markdown level1 conceptual"></div>
  1257. <h5 class="decalaration">Declaration</h5>
  1258. <div class="codewrapper">
  1259. <pre><code class="lang-csharp hljs">public bool Used { get; set; }</code></pre>
  1260. </div>
  1261. <h5 class="propertyValue">Property Value</h5>
  1262. <table class="table table-bordered table-striped table-condensed">
  1263. <thead>
  1264. <tr>
  1265. <th>Type</th>
  1266. <th>Description</th>
  1267. </tr>
  1268. </thead>
  1269. <tbody>
  1270. <tr>
  1271. <td><span class="xref">System.Boolean</span></td>
  1272. <td></td>
  1273. </tr>
  1274. </tbody>
  1275. </table>
  1276. <a id="Terminal_Gui_TextView_WordWrap_" data-uid="Terminal.Gui.TextView.WordWrap*"></a>
  1277. <h4 id="Terminal_Gui_TextView_WordWrap" data-uid="Terminal.Gui.TextView.WordWrap">WordWrap</h4>
  1278. <div class="markdown level1 summary">
  1279. Allows word wrap the to fit the available container width.
  1280. </div>
  1281. <div class="markdown level1 conceptual"></div>
  1282. <h5 class="decalaration">Declaration</h5>
  1283. <div class="codewrapper">
  1284. <pre><code class="lang-csharp hljs">public bool WordWrap { get; set; }</code></pre>
  1285. </div>
  1286. <h5 class="propertyValue">Property Value</h5>
  1287. <table class="table table-bordered table-striped table-condensed">
  1288. <thead>
  1289. <tr>
  1290. <th>Type</th>
  1291. <th>Description</th>
  1292. </tr>
  1293. </thead>
  1294. <tbody>
  1295. <tr>
  1296. <td><span class="xref">System.Boolean</span></td>
  1297. <td></td>
  1298. </tr>
  1299. </tbody>
  1300. </table>
  1301. <h3 id="methods">Methods
  1302. </h3>
  1303. <a id="Terminal_Gui_TextView_ClearHistoryChanges_" data-uid="Terminal.Gui.TextView.ClearHistoryChanges*"></a>
  1304. <h4 id="Terminal_Gui_TextView_ClearHistoryChanges" data-uid="Terminal.Gui.TextView.ClearHistoryChanges">ClearHistoryChanges()</h4>
  1305. <div class="markdown level1 summary">
  1306. Allows clearing the <span class="xref">Terminal.Gui.HistoryText.HistoryTextItem</span> items updating the original text.
  1307. </div>
  1308. <div class="markdown level1 conceptual"></div>
  1309. <h5 class="decalaration">Declaration</h5>
  1310. <div class="codewrapper">
  1311. <pre><code class="lang-csharp hljs">public void ClearHistoryChanges()</code></pre>
  1312. </div>
  1313. <a id="Terminal_Gui_TextView_CloseFile_" data-uid="Terminal.Gui.TextView.CloseFile*"></a>
  1314. <h4 id="Terminal_Gui_TextView_CloseFile" data-uid="Terminal.Gui.TextView.CloseFile">CloseFile()</h4>
  1315. <div class="markdown level1 summary">
  1316. Closes the contents of the stream into the <a class="xref" href="Terminal.Gui.TextView.html">TextView</a>.
  1317. </div>
  1318. <div class="markdown level1 conceptual"></div>
  1319. <h5 class="decalaration">Declaration</h5>
  1320. <div class="codewrapper">
  1321. <pre><code class="lang-csharp hljs">public bool CloseFile()</code></pre>
  1322. </div>
  1323. <h5 class="returns">Returns</h5>
  1324. <table class="table table-bordered table-striped table-condensed">
  1325. <thead>
  1326. <tr>
  1327. <th>Type</th>
  1328. <th>Description</th>
  1329. </tr>
  1330. </thead>
  1331. <tbody>
  1332. <tr>
  1333. <td><span class="xref">System.Boolean</span></td>
  1334. <td><code>true</code>, if stream was closed, <code>false</code> otherwise.</td>
  1335. </tr>
  1336. </tbody>
  1337. </table>
  1338. <a id="Terminal_Gui_TextView_ColorNormal_" data-uid="Terminal.Gui.TextView.ColorNormal*"></a>
  1339. <h4 id="Terminal_Gui_TextView_ColorNormal" data-uid="Terminal.Gui.TextView.ColorNormal">ColorNormal()</h4>
  1340. <div class="markdown level1 summary">
  1341. Sets the driver to the default color for the control where no text is being rendered. Defaults to <a class="xref" href="Terminal.Gui.ColorScheme.html#Terminal_Gui_ColorScheme_Normal">Normal</a>.
  1342. </div>
  1343. <div class="markdown level1 conceptual"></div>
  1344. <h5 class="decalaration">Declaration</h5>
  1345. <div class="codewrapper">
  1346. <pre><code class="lang-csharp hljs">protected virtual void ColorNormal()</code></pre>
  1347. </div>
  1348. <a id="Terminal_Gui_TextView_ColorNormal_" data-uid="Terminal.Gui.TextView.ColorNormal*"></a>
  1349. <h4 id="Terminal_Gui_TextView_ColorNormal_System_Collections_Generic_List_System_Rune__System_Int32_" data-uid="Terminal.Gui.TextView.ColorNormal(System.Collections.Generic.List{System.Rune},System.Int32)">ColorNormal(List&lt;Rune&gt;, Int32)</h4>
  1350. <div class="markdown level1 summary">
  1351. Sets the <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Driver">Driver</a> to an appropriate color for rendering the given <code data-dev-comment-type="paramref" class="paramref">idx</code> of the
  1352. current <code data-dev-comment-type="paramref" class="paramref">line</code>. Override to provide custom coloring by calling <a class="xref" href="Terminal.Gui.ConsoleDriver.html#Terminal_Gui_ConsoleDriver_SetAttribute_Terminal_Gui_Attribute_">SetAttribute(Attribute)</a>
  1353. Defaults to <a class="xref" href="Terminal.Gui.ColorScheme.html#Terminal_Gui_ColorScheme_Normal">Normal</a>.
  1354. </div>
  1355. <div class="markdown level1 conceptual"></div>
  1356. <h5 class="decalaration">Declaration</h5>
  1357. <div class="codewrapper">
  1358. <pre><code class="lang-csharp hljs">protected virtual void ColorNormal(List&lt;Rune&gt; line, int idx)</code></pre>
  1359. </div>
  1360. <h5 class="parameters">Parameters</h5>
  1361. <table class="table table-bordered table-striped table-condensed">
  1362. <thead>
  1363. <tr>
  1364. <th>Type</th>
  1365. <th>Name</th>
  1366. <th>Description</th>
  1367. </tr>
  1368. </thead>
  1369. <tbody>
  1370. <tr>
  1371. <td><span class="xref">System.Collections.Generic.List</span>&lt;<span class="xref">System.Rune</span>&gt;</td>
  1372. <td><span class="parametername">line</span></td>
  1373. <td></td>
  1374. </tr>
  1375. <tr>
  1376. <td><span class="xref">System.Int32</span></td>
  1377. <td><span class="parametername">idx</span></td>
  1378. <td></td>
  1379. </tr>
  1380. </tbody>
  1381. </table>
  1382. <a id="Terminal_Gui_TextView_ColorSelection_" data-uid="Terminal.Gui.TextView.ColorSelection*"></a>
  1383. <h4 id="Terminal_Gui_TextView_ColorSelection_System_Collections_Generic_List_System_Rune__System_Int32_" data-uid="Terminal.Gui.TextView.ColorSelection(System.Collections.Generic.List{System.Rune},System.Int32)">ColorSelection(List&lt;Rune&gt;, Int32)</h4>
  1384. <div class="markdown level1 summary">
  1385. Sets the <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Driver">Driver</a> to an appropriate color for rendering the given <code data-dev-comment-type="paramref" class="paramref">idx</code> of the
  1386. current <code data-dev-comment-type="paramref" class="paramref">line</code>. Override to provide custom coloring by calling <a class="xref" href="Terminal.Gui.ConsoleDriver.html#Terminal_Gui_ConsoleDriver_SetAttribute_Terminal_Gui_Attribute_">SetAttribute(Attribute)</a>
  1387. Defaults to <a class="xref" href="Terminal.Gui.ColorScheme.html#Terminal_Gui_ColorScheme_Focus">Focus</a>.
  1388. </div>
  1389. <div class="markdown level1 conceptual"></div>
  1390. <h5 class="decalaration">Declaration</h5>
  1391. <div class="codewrapper">
  1392. <pre><code class="lang-csharp hljs">protected virtual void ColorSelection(List&lt;Rune&gt; line, int idx)</code></pre>
  1393. </div>
  1394. <h5 class="parameters">Parameters</h5>
  1395. <table class="table table-bordered table-striped table-condensed">
  1396. <thead>
  1397. <tr>
  1398. <th>Type</th>
  1399. <th>Name</th>
  1400. <th>Description</th>
  1401. </tr>
  1402. </thead>
  1403. <tbody>
  1404. <tr>
  1405. <td><span class="xref">System.Collections.Generic.List</span>&lt;<span class="xref">System.Rune</span>&gt;</td>
  1406. <td><span class="parametername">line</span></td>
  1407. <td></td>
  1408. </tr>
  1409. <tr>
  1410. <td><span class="xref">System.Int32</span></td>
  1411. <td><span class="parametername">idx</span></td>
  1412. <td></td>
  1413. </tr>
  1414. </tbody>
  1415. </table>
  1416. <a id="Terminal_Gui_TextView_ColorUsed_" data-uid="Terminal.Gui.TextView.ColorUsed*"></a>
  1417. <h4 id="Terminal_Gui_TextView_ColorUsed_System_Collections_Generic_List_System_Rune__System_Int32_" data-uid="Terminal.Gui.TextView.ColorUsed(System.Collections.Generic.List{System.Rune},System.Int32)">ColorUsed(List&lt;Rune&gt;, Int32)</h4>
  1418. <div class="markdown level1 summary">
  1419. Sets the <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Driver">Driver</a> to an appropriate color for rendering the given <code data-dev-comment-type="paramref" class="paramref">idx</code> of the
  1420. current <code data-dev-comment-type="paramref" class="paramref">line</code>. Override to provide custom coloring by calling <a class="xref" href="Terminal.Gui.ConsoleDriver.html#Terminal_Gui_ConsoleDriver_SetAttribute_Terminal_Gui_Attribute_">SetAttribute(Attribute)</a>
  1421. Defaults to <a class="xref" href="Terminal.Gui.ColorScheme.html#Terminal_Gui_ColorScheme_HotFocus">HotFocus</a>.
  1422. </div>
  1423. <div class="markdown level1 conceptual"></div>
  1424. <h5 class="decalaration">Declaration</h5>
  1425. <div class="codewrapper">
  1426. <pre><code class="lang-csharp hljs">protected virtual void ColorUsed(List&lt;Rune&gt; line, int idx)</code></pre>
  1427. </div>
  1428. <h5 class="parameters">Parameters</h5>
  1429. <table class="table table-bordered table-striped table-condensed">
  1430. <thead>
  1431. <tr>
  1432. <th>Type</th>
  1433. <th>Name</th>
  1434. <th>Description</th>
  1435. </tr>
  1436. </thead>
  1437. <tbody>
  1438. <tr>
  1439. <td><span class="xref">System.Collections.Generic.List</span>&lt;<span class="xref">System.Rune</span>&gt;</td>
  1440. <td><span class="parametername">line</span></td>
  1441. <td></td>
  1442. </tr>
  1443. <tr>
  1444. <td><span class="xref">System.Int32</span></td>
  1445. <td><span class="parametername">idx</span></td>
  1446. <td></td>
  1447. </tr>
  1448. </tbody>
  1449. </table>
  1450. <a id="Terminal_Gui_TextView_Copy_" data-uid="Terminal.Gui.TextView.Copy*"></a>
  1451. <h4 id="Terminal_Gui_TextView_Copy" data-uid="Terminal.Gui.TextView.Copy">Copy()</h4>
  1452. <div class="markdown level1 summary">
  1453. Copy the selected text to the clipboard contents.
  1454. </div>
  1455. <div class="markdown level1 conceptual"></div>
  1456. <h5 class="decalaration">Declaration</h5>
  1457. <div class="codewrapper">
  1458. <pre><code class="lang-csharp hljs">public void Copy()</code></pre>
  1459. </div>
  1460. <a id="Terminal_Gui_TextView_Cut_" data-uid="Terminal.Gui.TextView.Cut*"></a>
  1461. <h4 id="Terminal_Gui_TextView_Cut" data-uid="Terminal.Gui.TextView.Cut">Cut()</h4>
  1462. <div class="markdown level1 summary">
  1463. Cut the selected text to the clipboard contents.
  1464. </div>
  1465. <div class="markdown level1 conceptual"></div>
  1466. <h5 class="decalaration">Declaration</h5>
  1467. <div class="codewrapper">
  1468. <pre><code class="lang-csharp hljs">public void Cut()</code></pre>
  1469. </div>
  1470. <a id="Terminal_Gui_TextView_DeleteAll_" data-uid="Terminal.Gui.TextView.DeleteAll*"></a>
  1471. <h4 id="Terminal_Gui_TextView_DeleteAll" data-uid="Terminal.Gui.TextView.DeleteAll">DeleteAll()</h4>
  1472. <div class="markdown level1 summary">
  1473. Deletes all text.
  1474. </div>
  1475. <div class="markdown level1 conceptual"></div>
  1476. <h5 class="decalaration">Declaration</h5>
  1477. <div class="codewrapper">
  1478. <pre><code class="lang-csharp hljs">public void DeleteAll()</code></pre>
  1479. </div>
  1480. <a id="Terminal_Gui_TextView_DeleteCharLeft_" data-uid="Terminal.Gui.TextView.DeleteCharLeft*"></a>
  1481. <h4 id="Terminal_Gui_TextView_DeleteCharLeft" data-uid="Terminal.Gui.TextView.DeleteCharLeft">DeleteCharLeft()</h4>
  1482. <div class="markdown level1 summary">
  1483. Deletes all the selected or a single character at left from the position of the cursor.
  1484. </div>
  1485. <div class="markdown level1 conceptual"></div>
  1486. <h5 class="decalaration">Declaration</h5>
  1487. <div class="codewrapper">
  1488. <pre><code class="lang-csharp hljs">public void DeleteCharLeft()</code></pre>
  1489. </div>
  1490. <a id="Terminal_Gui_TextView_DeleteCharRight_" data-uid="Terminal.Gui.TextView.DeleteCharRight*"></a>
  1491. <h4 id="Terminal_Gui_TextView_DeleteCharRight" data-uid="Terminal.Gui.TextView.DeleteCharRight">DeleteCharRight()</h4>
  1492. <div class="markdown level1 summary">
  1493. Deletes all the selected or a single character at right from the position of the cursor.
  1494. </div>
  1495. <div class="markdown level1 conceptual"></div>
  1496. <h5 class="decalaration">Declaration</h5>
  1497. <div class="codewrapper">
  1498. <pre><code class="lang-csharp hljs">public void DeleteCharRight()</code></pre>
  1499. </div>
  1500. <a id="Terminal_Gui_TextView_FindNextText_" data-uid="Terminal.Gui.TextView.FindNextText*"></a>
  1501. <h4 id="Terminal_Gui_TextView_FindNextText_NStack_ustring_System_Boolean__System_Boolean_System_Boolean_NStack_ustring_System_Boolean_" data-uid="Terminal.Gui.TextView.FindNextText(NStack.ustring,System.Boolean@,System.Boolean,System.Boolean,NStack.ustring,System.Boolean)">FindNextText(ustring, out Boolean, Boolean, Boolean, ustring, Boolean)</h4>
  1502. <div class="markdown level1 summary">
  1503. Find the next text based on the match case with the option to replace it.
  1504. </div>
  1505. <div class="markdown level1 conceptual"></div>
  1506. <h5 class="decalaration">Declaration</h5>
  1507. <div class="codewrapper">
  1508. <pre><code class="lang-csharp hljs">public bool FindNextText(ustring textToFind, out bool gaveFullTurn, bool matchCase = false, bool matchWholeWord = false, ustring textToReplace = null, bool replace = false)</code></pre>
  1509. </div>
  1510. <h5 class="parameters">Parameters</h5>
  1511. <table class="table table-bordered table-striped table-condensed">
  1512. <thead>
  1513. <tr>
  1514. <th>Type</th>
  1515. <th>Name</th>
  1516. <th>Description</th>
  1517. </tr>
  1518. </thead>
  1519. <tbody>
  1520. <tr>
  1521. <td><span class="xref">NStack.ustring</span></td>
  1522. <td><span class="parametername">textToFind</span></td>
  1523. <td>The text to find.</td>
  1524. </tr>
  1525. <tr>
  1526. <td><span class="xref">System.Boolean</span></td>
  1527. <td><span class="parametername">gaveFullTurn</span></td>
  1528. <td><code>true</code>If all the text was forward searched.<code>false</code>otherwise.</td>
  1529. </tr>
  1530. <tr>
  1531. <td><span class="xref">System.Boolean</span></td>
  1532. <td><span class="parametername">matchCase</span></td>
  1533. <td>The match case setting.</td>
  1534. </tr>
  1535. <tr>
  1536. <td><span class="xref">System.Boolean</span></td>
  1537. <td><span class="parametername">matchWholeWord</span></td>
  1538. <td>The match whole word setting.</td>
  1539. </tr>
  1540. <tr>
  1541. <td><span class="xref">NStack.ustring</span></td>
  1542. <td><span class="parametername">textToReplace</span></td>
  1543. <td>The text to replace.</td>
  1544. </tr>
  1545. <tr>
  1546. <td><span class="xref">System.Boolean</span></td>
  1547. <td><span class="parametername">replace</span></td>
  1548. <td><code>true</code>If is replacing.<code>false</code>otherwise.</td>
  1549. </tr>
  1550. </tbody>
  1551. </table>
  1552. <h5 class="returns">Returns</h5>
  1553. <table class="table table-bordered table-striped table-condensed">
  1554. <thead>
  1555. <tr>
  1556. <th>Type</th>
  1557. <th>Description</th>
  1558. </tr>
  1559. </thead>
  1560. <tbody>
  1561. <tr>
  1562. <td><span class="xref">System.Boolean</span></td>
  1563. <td><code>true</code>If the text was found.<code>false</code>otherwise.</td>
  1564. </tr>
  1565. </tbody>
  1566. </table>
  1567. <a id="Terminal_Gui_TextView_FindPreviousText_" data-uid="Terminal.Gui.TextView.FindPreviousText*"></a>
  1568. <h4 id="Terminal_Gui_TextView_FindPreviousText_NStack_ustring_System_Boolean__System_Boolean_System_Boolean_NStack_ustring_System_Boolean_" data-uid="Terminal.Gui.TextView.FindPreviousText(NStack.ustring,System.Boolean@,System.Boolean,System.Boolean,NStack.ustring,System.Boolean)">FindPreviousText(ustring, out Boolean, Boolean, Boolean, ustring, Boolean)</h4>
  1569. <div class="markdown level1 summary">
  1570. Find the previous text based on the match case with the option to replace it.
  1571. </div>
  1572. <div class="markdown level1 conceptual"></div>
  1573. <h5 class="decalaration">Declaration</h5>
  1574. <div class="codewrapper">
  1575. <pre><code class="lang-csharp hljs">public bool FindPreviousText(ustring textToFind, out bool gaveFullTurn, bool matchCase = false, bool matchWholeWord = false, ustring textToReplace = null, bool replace = false)</code></pre>
  1576. </div>
  1577. <h5 class="parameters">Parameters</h5>
  1578. <table class="table table-bordered table-striped table-condensed">
  1579. <thead>
  1580. <tr>
  1581. <th>Type</th>
  1582. <th>Name</th>
  1583. <th>Description</th>
  1584. </tr>
  1585. </thead>
  1586. <tbody>
  1587. <tr>
  1588. <td><span class="xref">NStack.ustring</span></td>
  1589. <td><span class="parametername">textToFind</span></td>
  1590. <td>The text to find.</td>
  1591. </tr>
  1592. <tr>
  1593. <td><span class="xref">System.Boolean</span></td>
  1594. <td><span class="parametername">gaveFullTurn</span></td>
  1595. <td><code>true</code>If all the text was backward searched.<code>false</code>otherwise.</td>
  1596. </tr>
  1597. <tr>
  1598. <td><span class="xref">System.Boolean</span></td>
  1599. <td><span class="parametername">matchCase</span></td>
  1600. <td>The match case setting.</td>
  1601. </tr>
  1602. <tr>
  1603. <td><span class="xref">System.Boolean</span></td>
  1604. <td><span class="parametername">matchWholeWord</span></td>
  1605. <td>The match whole word setting.</td>
  1606. </tr>
  1607. <tr>
  1608. <td><span class="xref">NStack.ustring</span></td>
  1609. <td><span class="parametername">textToReplace</span></td>
  1610. <td>The text to replace.</td>
  1611. </tr>
  1612. <tr>
  1613. <td><span class="xref">System.Boolean</span></td>
  1614. <td><span class="parametername">replace</span></td>
  1615. <td><code>true</code>If the text was found.<code>false</code>otherwise.</td>
  1616. </tr>
  1617. </tbody>
  1618. </table>
  1619. <h5 class="returns">Returns</h5>
  1620. <table class="table table-bordered table-striped table-condensed">
  1621. <thead>
  1622. <tr>
  1623. <th>Type</th>
  1624. <th>Description</th>
  1625. </tr>
  1626. </thead>
  1627. <tbody>
  1628. <tr>
  1629. <td><span class="xref">System.Boolean</span></td>
  1630. <td><code>true</code>If the text was found.<code>false</code>otherwise.</td>
  1631. </tr>
  1632. </tbody>
  1633. </table>
  1634. <a id="Terminal_Gui_TextView_FindTextChanged_" data-uid="Terminal.Gui.TextView.FindTextChanged*"></a>
  1635. <h4 id="Terminal_Gui_TextView_FindTextChanged" data-uid="Terminal.Gui.TextView.FindTextChanged">FindTextChanged()</h4>
  1636. <div class="markdown level1 summary">
  1637. Reset the flag to stop continuous find.
  1638. </div>
  1639. <div class="markdown level1 conceptual"></div>
  1640. <h5 class="decalaration">Declaration</h5>
  1641. <div class="codewrapper">
  1642. <pre><code class="lang-csharp hljs">public void FindTextChanged()</code></pre>
  1643. </div>
  1644. <a id="Terminal_Gui_TextView_GetCurrentLine_" data-uid="Terminal.Gui.TextView.GetCurrentLine*"></a>
  1645. <h4 id="Terminal_Gui_TextView_GetCurrentLine" data-uid="Terminal.Gui.TextView.GetCurrentLine">GetCurrentLine()</h4>
  1646. <div class="markdown level1 summary">
  1647. Returns the characters on the current line (where the cursor is positioned).
  1648. Use <a class="xref" href="Terminal.Gui.TextView.html#Terminal_Gui_TextView_CurrentColumn">CurrentColumn</a> to determine the position of the cursor within
  1649. that line
  1650. </div>
  1651. <div class="markdown level1 conceptual"></div>
  1652. <h5 class="decalaration">Declaration</h5>
  1653. <div class="codewrapper">
  1654. <pre><code class="lang-csharp hljs">public List&lt;Rune&gt; GetCurrentLine()</code></pre>
  1655. </div>
  1656. <h5 class="returns">Returns</h5>
  1657. <table class="table table-bordered table-striped table-condensed">
  1658. <thead>
  1659. <tr>
  1660. <th>Type</th>
  1661. <th>Description</th>
  1662. </tr>
  1663. </thead>
  1664. <tbody>
  1665. <tr>
  1666. <td><span class="xref">System.Collections.Generic.List</span>&lt;<span class="xref">System.Rune</span>&gt;</td>
  1667. <td></td>
  1668. </tr>
  1669. </tbody>
  1670. </table>
  1671. <a id="Terminal_Gui_TextView_InsertText_" data-uid="Terminal.Gui.TextView.InsertText*"></a>
  1672. <h4 id="Terminal_Gui_TextView_InsertText_System_String_" data-uid="Terminal.Gui.TextView.InsertText(System.String)">InsertText(String)</h4>
  1673. <div class="markdown level1 summary">
  1674. Inserts the given <code data-dev-comment-type="paramref" class="paramref">toAdd</code> text at the current cursor position
  1675. exactly as if the user had just typed it
  1676. </div>
  1677. <div class="markdown level1 conceptual"></div>
  1678. <h5 class="decalaration">Declaration</h5>
  1679. <div class="codewrapper">
  1680. <pre><code class="lang-csharp hljs">public void InsertText(string toAdd)</code></pre>
  1681. </div>
  1682. <h5 class="parameters">Parameters</h5>
  1683. <table class="table table-bordered table-striped table-condensed">
  1684. <thead>
  1685. <tr>
  1686. <th>Type</th>
  1687. <th>Name</th>
  1688. <th>Description</th>
  1689. </tr>
  1690. </thead>
  1691. <tbody>
  1692. <tr>
  1693. <td><span class="xref">System.String</span></td>
  1694. <td><span class="parametername">toAdd</span></td>
  1695. <td>Text to add</td>
  1696. </tr>
  1697. </tbody>
  1698. </table>
  1699. <a id="Terminal_Gui_TextView_LoadFile_" data-uid="Terminal.Gui.TextView.LoadFile*"></a>
  1700. <h4 id="Terminal_Gui_TextView_LoadFile_System_String_" data-uid="Terminal.Gui.TextView.LoadFile(System.String)">LoadFile(String)</h4>
  1701. <div class="markdown level1 summary">
  1702. Loads the contents of the file into the <a class="xref" href="Terminal.Gui.TextView.html">TextView</a>.
  1703. </div>
  1704. <div class="markdown level1 conceptual"></div>
  1705. <h5 class="decalaration">Declaration</h5>
  1706. <div class="codewrapper">
  1707. <pre><code class="lang-csharp hljs">public bool LoadFile(string path)</code></pre>
  1708. </div>
  1709. <h5 class="parameters">Parameters</h5>
  1710. <table class="table table-bordered table-striped table-condensed">
  1711. <thead>
  1712. <tr>
  1713. <th>Type</th>
  1714. <th>Name</th>
  1715. <th>Description</th>
  1716. </tr>
  1717. </thead>
  1718. <tbody>
  1719. <tr>
  1720. <td><span class="xref">System.String</span></td>
  1721. <td><span class="parametername">path</span></td>
  1722. <td>Path to the file to load.</td>
  1723. </tr>
  1724. </tbody>
  1725. </table>
  1726. <h5 class="returns">Returns</h5>
  1727. <table class="table table-bordered table-striped table-condensed">
  1728. <thead>
  1729. <tr>
  1730. <th>Type</th>
  1731. <th>Description</th>
  1732. </tr>
  1733. </thead>
  1734. <tbody>
  1735. <tr>
  1736. <td><span class="xref">System.Boolean</span></td>
  1737. <td><code>true</code>, if file was loaded, <code>false</code> otherwise.</td>
  1738. </tr>
  1739. </tbody>
  1740. </table>
  1741. <a id="Terminal_Gui_TextView_LoadStream_" data-uid="Terminal.Gui.TextView.LoadStream*"></a>
  1742. <h4 id="Terminal_Gui_TextView_LoadStream_System_IO_Stream_" data-uid="Terminal.Gui.TextView.LoadStream(System.IO.Stream)">LoadStream(Stream)</h4>
  1743. <div class="markdown level1 summary">
  1744. Loads the contents of the stream into the <a class="xref" href="Terminal.Gui.TextView.html">TextView</a>.
  1745. </div>
  1746. <div class="markdown level1 conceptual"></div>
  1747. <h5 class="decalaration">Declaration</h5>
  1748. <div class="codewrapper">
  1749. <pre><code class="lang-csharp hljs">public void LoadStream(Stream stream)</code></pre>
  1750. </div>
  1751. <h5 class="parameters">Parameters</h5>
  1752. <table class="table table-bordered table-striped table-condensed">
  1753. <thead>
  1754. <tr>
  1755. <th>Type</th>
  1756. <th>Name</th>
  1757. <th>Description</th>
  1758. </tr>
  1759. </thead>
  1760. <tbody>
  1761. <tr>
  1762. <td><span class="xref">System.IO.Stream</span></td>
  1763. <td><span class="parametername">stream</span></td>
  1764. <td>Stream to load the contents from.</td>
  1765. </tr>
  1766. </tbody>
  1767. </table>
  1768. <a id="Terminal_Gui_TextView_MouseEvent_" data-uid="Terminal.Gui.TextView.MouseEvent*"></a>
  1769. <h4 id="Terminal_Gui_TextView_MouseEvent_Terminal_Gui_MouseEvent_" data-uid="Terminal.Gui.TextView.MouseEvent(Terminal.Gui.MouseEvent)">MouseEvent(MouseEvent)</h4>
  1770. <div class="markdown level1 summary"></div>
  1771. <div class="markdown level1 conceptual"></div>
  1772. <h5 class="decalaration">Declaration</h5>
  1773. <div class="codewrapper">
  1774. <pre><code class="lang-csharp hljs">public override bool MouseEvent(MouseEvent ev)</code></pre>
  1775. </div>
  1776. <h5 class="parameters">Parameters</h5>
  1777. <table class="table table-bordered table-striped table-condensed">
  1778. <thead>
  1779. <tr>
  1780. <th>Type</th>
  1781. <th>Name</th>
  1782. <th>Description</th>
  1783. </tr>
  1784. </thead>
  1785. <tbody>
  1786. <tr>
  1787. <td><a class="xref" href="Terminal.Gui.MouseEvent.html">MouseEvent</a></td>
  1788. <td><span class="parametername">ev</span></td>
  1789. <td></td>
  1790. </tr>
  1791. </tbody>
  1792. </table>
  1793. <h5 class="returns">Returns</h5>
  1794. <table class="table table-bordered table-striped table-condensed">
  1795. <thead>
  1796. <tr>
  1797. <th>Type</th>
  1798. <th>Description</th>
  1799. </tr>
  1800. </thead>
  1801. <tbody>
  1802. <tr>
  1803. <td><span class="xref">System.Boolean</span></td>
  1804. <td></td>
  1805. </tr>
  1806. </tbody>
  1807. </table>
  1808. <h5 class="overrides">Overrides</h5>
  1809. <div><a class="xref" href="Terminal.Gui.Responder.html#Terminal_Gui_Responder_MouseEvent_Terminal_Gui_MouseEvent_">Responder.MouseEvent(MouseEvent)</a></div>
  1810. <a id="Terminal_Gui_TextView_MoveEnd_" data-uid="Terminal.Gui.TextView.MoveEnd*"></a>
  1811. <h4 id="Terminal_Gui_TextView_MoveEnd" data-uid="Terminal.Gui.TextView.MoveEnd">MoveEnd()</h4>
  1812. <div class="markdown level1 summary">
  1813. Will scroll the <a class="xref" href="Terminal.Gui.TextView.html">TextView</a> to the last line and position the cursor there.
  1814. </div>
  1815. <div class="markdown level1 conceptual"></div>
  1816. <h5 class="decalaration">Declaration</h5>
  1817. <div class="codewrapper">
  1818. <pre><code class="lang-csharp hljs">public void MoveEnd()</code></pre>
  1819. </div>
  1820. <a id="Terminal_Gui_TextView_MoveHome_" data-uid="Terminal.Gui.TextView.MoveHome*"></a>
  1821. <h4 id="Terminal_Gui_TextView_MoveHome" data-uid="Terminal.Gui.TextView.MoveHome">MoveHome()</h4>
  1822. <div class="markdown level1 summary">
  1823. Will scroll the <a class="xref" href="Terminal.Gui.TextView.html">TextView</a> to the first line and position the cursor there.
  1824. </div>
  1825. <div class="markdown level1 conceptual"></div>
  1826. <h5 class="decalaration">Declaration</h5>
  1827. <div class="codewrapper">
  1828. <pre><code class="lang-csharp hljs">public void MoveHome()</code></pre>
  1829. </div>
  1830. <a id="Terminal_Gui_TextView_OnEnter_" data-uid="Terminal.Gui.TextView.OnEnter*"></a>
  1831. <h4 id="Terminal_Gui_TextView_OnEnter_Terminal_Gui_View_" data-uid="Terminal.Gui.TextView.OnEnter(Terminal.Gui.View)">OnEnter(View)</h4>
  1832. <div class="markdown level1 summary"></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 override bool OnEnter(View view)</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><a class="xref" href="Terminal.Gui.View.html">View</a></td>
  1850. <td><span class="parametername">view</span></td>
  1851. <td></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">System.Boolean</span></td>
  1866. <td></td>
  1867. </tr>
  1868. </tbody>
  1869. </table>
  1870. <h5 class="overrides">Overrides</h5>
  1871. <div><a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_OnEnter_Terminal_Gui_View_">View.OnEnter(View)</a></div>
  1872. <a id="Terminal_Gui_TextView_OnKeyUp_" data-uid="Terminal.Gui.TextView.OnKeyUp*"></a>
  1873. <h4 id="Terminal_Gui_TextView_OnKeyUp_Terminal_Gui_KeyEvent_" data-uid="Terminal.Gui.TextView.OnKeyUp(Terminal.Gui.KeyEvent)">OnKeyUp(KeyEvent)</h4>
  1874. <div class="markdown level1 summary"></div>
  1875. <div class="markdown level1 conceptual"></div>
  1876. <h5 class="decalaration">Declaration</h5>
  1877. <div class="codewrapper">
  1878. <pre><code class="lang-csharp hljs">public override bool OnKeyUp(KeyEvent kb)</code></pre>
  1879. </div>
  1880. <h5 class="parameters">Parameters</h5>
  1881. <table class="table table-bordered table-striped table-condensed">
  1882. <thead>
  1883. <tr>
  1884. <th>Type</th>
  1885. <th>Name</th>
  1886. <th>Description</th>
  1887. </tr>
  1888. </thead>
  1889. <tbody>
  1890. <tr>
  1891. <td><a class="xref" href="Terminal.Gui.KeyEvent.html">KeyEvent</a></td>
  1892. <td><span class="parametername">kb</span></td>
  1893. <td></td>
  1894. </tr>
  1895. </tbody>
  1896. </table>
  1897. <h5 class="returns">Returns</h5>
  1898. <table class="table table-bordered table-striped table-condensed">
  1899. <thead>
  1900. <tr>
  1901. <th>Type</th>
  1902. <th>Description</th>
  1903. </tr>
  1904. </thead>
  1905. <tbody>
  1906. <tr>
  1907. <td><span class="xref">System.Boolean</span></td>
  1908. <td></td>
  1909. </tr>
  1910. </tbody>
  1911. </table>
  1912. <h5 class="overrides">Overrides</h5>
  1913. <div><a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_OnKeyUp_Terminal_Gui_KeyEvent_">View.OnKeyUp(KeyEvent)</a></div>
  1914. <a id="Terminal_Gui_TextView_OnLeave_" data-uid="Terminal.Gui.TextView.OnLeave*"></a>
  1915. <h4 id="Terminal_Gui_TextView_OnLeave_Terminal_Gui_View_" data-uid="Terminal.Gui.TextView.OnLeave(Terminal.Gui.View)">OnLeave(View)</h4>
  1916. <div class="markdown level1 summary"></div>
  1917. <div class="markdown level1 conceptual"></div>
  1918. <h5 class="decalaration">Declaration</h5>
  1919. <div class="codewrapper">
  1920. <pre><code class="lang-csharp hljs">public override bool OnLeave(View view)</code></pre>
  1921. </div>
  1922. <h5 class="parameters">Parameters</h5>
  1923. <table class="table table-bordered table-striped table-condensed">
  1924. <thead>
  1925. <tr>
  1926. <th>Type</th>
  1927. <th>Name</th>
  1928. <th>Description</th>
  1929. </tr>
  1930. </thead>
  1931. <tbody>
  1932. <tr>
  1933. <td><a class="xref" href="Terminal.Gui.View.html">View</a></td>
  1934. <td><span class="parametername">view</span></td>
  1935. <td></td>
  1936. </tr>
  1937. </tbody>
  1938. </table>
  1939. <h5 class="returns">Returns</h5>
  1940. <table class="table table-bordered table-striped table-condensed">
  1941. <thead>
  1942. <tr>
  1943. <th>Type</th>
  1944. <th>Description</th>
  1945. </tr>
  1946. </thead>
  1947. <tbody>
  1948. <tr>
  1949. <td><span class="xref">System.Boolean</span></td>
  1950. <td></td>
  1951. </tr>
  1952. </tbody>
  1953. </table>
  1954. <h5 class="overrides">Overrides</h5>
  1955. <div><a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_OnLeave_Terminal_Gui_View_">View.OnLeave(View)</a></div>
  1956. <a id="Terminal_Gui_TextView_Paste_" data-uid="Terminal.Gui.TextView.Paste*"></a>
  1957. <h4 id="Terminal_Gui_TextView_Paste" data-uid="Terminal.Gui.TextView.Paste">Paste()</h4>
  1958. <div class="markdown level1 summary">
  1959. Paste the clipboard contents into the current selected position.
  1960. </div>
  1961. <div class="markdown level1 conceptual"></div>
  1962. <h5 class="decalaration">Declaration</h5>
  1963. <div class="codewrapper">
  1964. <pre><code class="lang-csharp hljs">public void Paste()</code></pre>
  1965. </div>
  1966. <a id="Terminal_Gui_TextView_PositionCursor_" data-uid="Terminal.Gui.TextView.PositionCursor*"></a>
  1967. <h4 id="Terminal_Gui_TextView_PositionCursor" data-uid="Terminal.Gui.TextView.PositionCursor">PositionCursor()</h4>
  1968. <div class="markdown level1 summary">
  1969. Positions the cursor on the current row and column
  1970. </div>
  1971. <div class="markdown level1 conceptual"></div>
  1972. <h5 class="decalaration">Declaration</h5>
  1973. <div class="codewrapper">
  1974. <pre><code class="lang-csharp hljs">public override void PositionCursor()</code></pre>
  1975. </div>
  1976. <h5 class="overrides">Overrides</h5>
  1977. <div><a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_PositionCursor">View.PositionCursor()</a></div>
  1978. <a id="Terminal_Gui_TextView_ProcessKey_" data-uid="Terminal.Gui.TextView.ProcessKey*"></a>
  1979. <h4 id="Terminal_Gui_TextView_ProcessKey_Terminal_Gui_KeyEvent_" data-uid="Terminal.Gui.TextView.ProcessKey(Terminal.Gui.KeyEvent)">ProcessKey(KeyEvent)</h4>
  1980. <div class="markdown level1 summary"></div>
  1981. <div class="markdown level1 conceptual"></div>
  1982. <h5 class="decalaration">Declaration</h5>
  1983. <div class="codewrapper">
  1984. <pre><code class="lang-csharp hljs">public override bool ProcessKey(KeyEvent kb)</code></pre>
  1985. </div>
  1986. <h5 class="parameters">Parameters</h5>
  1987. <table class="table table-bordered table-striped table-condensed">
  1988. <thead>
  1989. <tr>
  1990. <th>Type</th>
  1991. <th>Name</th>
  1992. <th>Description</th>
  1993. </tr>
  1994. </thead>
  1995. <tbody>
  1996. <tr>
  1997. <td><a class="xref" href="Terminal.Gui.KeyEvent.html">KeyEvent</a></td>
  1998. <td><span class="parametername">kb</span></td>
  1999. <td></td>
  2000. </tr>
  2001. </tbody>
  2002. </table>
  2003. <h5 class="returns">Returns</h5>
  2004. <table class="table table-bordered table-striped table-condensed">
  2005. <thead>
  2006. <tr>
  2007. <th>Type</th>
  2008. <th>Description</th>
  2009. </tr>
  2010. </thead>
  2011. <tbody>
  2012. <tr>
  2013. <td><span class="xref">System.Boolean</span></td>
  2014. <td></td>
  2015. </tr>
  2016. </tbody>
  2017. </table>
  2018. <h5 class="overrides">Overrides</h5>
  2019. <div><a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_ProcessKey_Terminal_Gui_KeyEvent_">View.ProcessKey(KeyEvent)</a></div>
  2020. <a id="Terminal_Gui_TextView_Redraw_" data-uid="Terminal.Gui.TextView.Redraw*"></a>
  2021. <h4 id="Terminal_Gui_TextView_Redraw_Terminal_Gui_Rect_" data-uid="Terminal.Gui.TextView.Redraw(Terminal.Gui.Rect)">Redraw(Rect)</h4>
  2022. <div class="markdown level1 summary"></div>
  2023. <div class="markdown level1 conceptual"></div>
  2024. <h5 class="decalaration">Declaration</h5>
  2025. <div class="codewrapper">
  2026. <pre><code class="lang-csharp hljs">public override void Redraw(Rect bounds)</code></pre>
  2027. </div>
  2028. <h5 class="parameters">Parameters</h5>
  2029. <table class="table table-bordered table-striped table-condensed">
  2030. <thead>
  2031. <tr>
  2032. <th>Type</th>
  2033. <th>Name</th>
  2034. <th>Description</th>
  2035. </tr>
  2036. </thead>
  2037. <tbody>
  2038. <tr>
  2039. <td><a class="xref" href="Terminal.Gui.Rect.html">Rect</a></td>
  2040. <td><span class="parametername">bounds</span></td>
  2041. <td></td>
  2042. </tr>
  2043. </tbody>
  2044. </table>
  2045. <h5 class="overrides">Overrides</h5>
  2046. <div><a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Redraw_Terminal_Gui_Rect_">View.Redraw(Rect)</a></div>
  2047. <a id="Terminal_Gui_TextView_ReplaceAllText_" data-uid="Terminal.Gui.TextView.ReplaceAllText*"></a>
  2048. <h4 id="Terminal_Gui_TextView_ReplaceAllText_NStack_ustring_System_Boolean_System_Boolean_NStack_ustring_" data-uid="Terminal.Gui.TextView.ReplaceAllText(NStack.ustring,System.Boolean,System.Boolean,NStack.ustring)">ReplaceAllText(ustring, Boolean, Boolean, ustring)</h4>
  2049. <div class="markdown level1 summary">
  2050. Replaces all the text based on the match case.
  2051. </div>
  2052. <div class="markdown level1 conceptual"></div>
  2053. <h5 class="decalaration">Declaration</h5>
  2054. <div class="codewrapper">
  2055. <pre><code class="lang-csharp hljs">public bool ReplaceAllText(ustring textToFind, bool matchCase = false, bool matchWholeWord = false, ustring textToReplace = null)</code></pre>
  2056. </div>
  2057. <h5 class="parameters">Parameters</h5>
  2058. <table class="table table-bordered table-striped table-condensed">
  2059. <thead>
  2060. <tr>
  2061. <th>Type</th>
  2062. <th>Name</th>
  2063. <th>Description</th>
  2064. </tr>
  2065. </thead>
  2066. <tbody>
  2067. <tr>
  2068. <td><span class="xref">NStack.ustring</span></td>
  2069. <td><span class="parametername">textToFind</span></td>
  2070. <td>The text to find.</td>
  2071. </tr>
  2072. <tr>
  2073. <td><span class="xref">System.Boolean</span></td>
  2074. <td><span class="parametername">matchCase</span></td>
  2075. <td>The match case setting.</td>
  2076. </tr>
  2077. <tr>
  2078. <td><span class="xref">System.Boolean</span></td>
  2079. <td><span class="parametername">matchWholeWord</span></td>
  2080. <td>The match whole word setting.</td>
  2081. </tr>
  2082. <tr>
  2083. <td><span class="xref">NStack.ustring</span></td>
  2084. <td><span class="parametername">textToReplace</span></td>
  2085. <td>The text to replace.</td>
  2086. </tr>
  2087. </tbody>
  2088. </table>
  2089. <h5 class="returns">Returns</h5>
  2090. <table class="table table-bordered table-striped table-condensed">
  2091. <thead>
  2092. <tr>
  2093. <th>Type</th>
  2094. <th>Description</th>
  2095. </tr>
  2096. </thead>
  2097. <tbody>
  2098. <tr>
  2099. <td><span class="xref">System.Boolean</span></td>
  2100. <td><code>true</code>If the text was found.<code>false</code>otherwise.</td>
  2101. </tr>
  2102. </tbody>
  2103. </table>
  2104. <a id="Terminal_Gui_TextView_ScrollTo_" data-uid="Terminal.Gui.TextView.ScrollTo*"></a>
  2105. <h4 id="Terminal_Gui_TextView_ScrollTo_System_Int32_System_Boolean_" data-uid="Terminal.Gui.TextView.ScrollTo(System.Int32,System.Boolean)">ScrollTo(Int32, Boolean)</h4>
  2106. <div class="markdown level1 summary">
  2107. Will scroll the <a class="xref" href="Terminal.Gui.TextView.html">TextView</a> to display the specified row at the top if <code data-dev-comment-type="paramref" class="paramref">isRow</code> is true or
  2108. will scroll the <a class="xref" href="Terminal.Gui.TextView.html">TextView</a> to display the specified column at the left if <code data-dev-comment-type="paramref" class="paramref">isRow</code> is false.
  2109. </div>
  2110. <div class="markdown level1 conceptual"></div>
  2111. <h5 class="decalaration">Declaration</h5>
  2112. <div class="codewrapper">
  2113. <pre><code class="lang-csharp hljs">public void ScrollTo(int idx, bool isRow = true)</code></pre>
  2114. </div>
  2115. <h5 class="parameters">Parameters</h5>
  2116. <table class="table table-bordered table-striped table-condensed">
  2117. <thead>
  2118. <tr>
  2119. <th>Type</th>
  2120. <th>Name</th>
  2121. <th>Description</th>
  2122. </tr>
  2123. </thead>
  2124. <tbody>
  2125. <tr>
  2126. <td><span class="xref">System.Int32</span></td>
  2127. <td><span class="parametername">idx</span></td>
  2128. <td>Row that should be displayed at the top or Column that should be displayed at the left,
  2129. if the value is negative it will be reset to zero</td>
  2130. </tr>
  2131. <tr>
  2132. <td><span class="xref">System.Boolean</span></td>
  2133. <td><span class="parametername">isRow</span></td>
  2134. <td>If true (default) the <code data-dev-comment-type="paramref" class="paramref">idx</code> is a row, column otherwise.</td>
  2135. </tr>
  2136. </tbody>
  2137. </table>
  2138. <a id="Terminal_Gui_TextView_SelectAll_" data-uid="Terminal.Gui.TextView.SelectAll*"></a>
  2139. <h4 id="Terminal_Gui_TextView_SelectAll" data-uid="Terminal.Gui.TextView.SelectAll">SelectAll()</h4>
  2140. <div class="markdown level1 summary">
  2141. Select all text.
  2142. </div>
  2143. <div class="markdown level1 conceptual"></div>
  2144. <h5 class="decalaration">Declaration</h5>
  2145. <div class="codewrapper">
  2146. <pre><code class="lang-csharp hljs">public void SelectAll()</code></pre>
  2147. </div>
  2148. <h3 id="events">Events
  2149. </h3>
  2150. <h4 id="Terminal_Gui_TextView_TextChanged" data-uid="Terminal.Gui.TextView.TextChanged">TextChanged</h4>
  2151. <div class="markdown level1 summary">
  2152. Raised when the <a class="xref" href="Terminal.Gui.TextView.html#Terminal_Gui_TextView_Text">Text</a> of the <a class="xref" href="Terminal.Gui.TextView.html">TextView</a> changes.
  2153. </div>
  2154. <div class="markdown level1 conceptual"></div>
  2155. <h5 class="decalaration">Declaration</h5>
  2156. <div class="codewrapper">
  2157. <pre><code class="lang-csharp hljs">public event Action TextChanged</code></pre>
  2158. </div>
  2159. <h5 class="eventType">Event Type</h5>
  2160. <table class="table table-bordered table-striped table-condensed">
  2161. <thead>
  2162. <tr>
  2163. <th>Type</th>
  2164. <th>Description</th>
  2165. </tr>
  2166. </thead>
  2167. <tbody>
  2168. <tr>
  2169. <td><span class="xref">System.Action</span></td>
  2170. <td></td>
  2171. </tr>
  2172. </tbody>
  2173. </table>
  2174. <h3 id="implements">Implements</h3>
  2175. <div>
  2176. <span class="xref">System.IDisposable</span>
  2177. </div>
  2178. <div>
  2179. <span class="xref">System.ComponentModel.ISupportInitializeNotification</span>
  2180. </div>
  2181. <div>
  2182. <span class="xref">System.ComponentModel.ISupportInitialize</span>
  2183. </div>
  2184. </article>
  2185. </div>
  2186. <div class="hidden-sm col-md-2" role="complementary">
  2187. <div class="sideaffix">
  2188. <nav class="bs-docs-sidebar hidden-print hidden-xs hidden-sm affix" id="affix">
  2189. <h5>In This Article</h5>
  2190. <div></div>
  2191. </nav>
  2192. </div>
  2193. </div>
  2194. </div>
  2195. </div>
  2196. <footer>
  2197. <div class="grad-bottom"></div>
  2198. <div class="footer">
  2199. <div class="container">
  2200. <span class="pull-right">
  2201. <a href="#top">Back to top</a>
  2202. </span>
  2203. <span>Generated by <strong>DocFX</strong></span>
  2204. </div>
  2205. </div>
  2206. </footer>
  2207. </div>
  2208. <script type="text/javascript" src="../../styles/docfx.vendor.js"></script>
  2209. <script type="text/javascript" src="../../styles/docfx.js"></script>
  2210. <script type="text/javascript" src="../../styles/main.js"></script>
  2211. </body>
  2212. </html>