Terminal.Gui.TextField.html 62 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527
  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 TextField
  8. </title>
  9. <meta name="viewport" content="width=device-width">
  10. <meta name="title" content="Class TextField
  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.TextField">
  73. <h1 id="Terminal_Gui_TextField" data-uid="Terminal.Gui.TextField" class="text-break">Class TextField
  74. </h1>
  75. <div class="markdown level0 summary">
  76. Single-line text entry <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">TextField</span></div>
  85. <div class="level4"><a class="xref" href="Terminal.Gui.DateField.html">DateField</a></div>
  86. <div class="level4"><a class="xref" href="Terminal.Gui.TimeField.html">TimeField</a></div>
  87. </div>
  88. <div classs="implements">
  89. <h5>Implements</h5>
  90. <div><span class="xref">System.IDisposable</span></div>
  91. <div><span class="xref">System.ComponentModel.ISupportInitializeNotification</span></div>
  92. <div><span class="xref">System.ComponentModel.ISupportInitialize</span></div>
  93. </div>
  94. <div class="inheritedMembers">
  95. <h5>Inherited Members</h5>
  96. <div>
  97. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Added">View.Added</a>
  98. </div>
  99. <div>
  100. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Removed">View.Removed</a>
  101. </div>
  102. <div>
  103. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Enter">View.Enter</a>
  104. </div>
  105. <div>
  106. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Leave">View.Leave</a>
  107. </div>
  108. <div>
  109. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_MouseEnter">View.MouseEnter</a>
  110. </div>
  111. <div>
  112. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_MouseLeave">View.MouseLeave</a>
  113. </div>
  114. <div>
  115. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_MouseClick">View.MouseClick</a>
  116. </div>
  117. <div>
  118. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_CanFocusChanged">View.CanFocusChanged</a>
  119. </div>
  120. <div>
  121. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_EnabledChanged">View.EnabledChanged</a>
  122. </div>
  123. <div>
  124. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_VisibleChanged">View.VisibleChanged</a>
  125. </div>
  126. <div>
  127. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_HotKeyChanged">View.HotKeyChanged</a>
  128. </div>
  129. <div>
  130. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_HotKey">View.HotKey</a>
  131. </div>
  132. <div>
  133. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_HotKeySpecifier">View.HotKeySpecifier</a>
  134. </div>
  135. <div>
  136. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Shortcut">View.Shortcut</a>
  137. </div>
  138. <div>
  139. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_ShortcutTag">View.ShortcutTag</a>
  140. </div>
  141. <div>
  142. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_ShortcutAction">View.ShortcutAction</a>
  143. </div>
  144. <div>
  145. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Data">View.Data</a>
  146. </div>
  147. <div>
  148. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Driver">View.Driver</a>
  149. </div>
  150. <div>
  151. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Subviews">View.Subviews</a>
  152. </div>
  153. <div>
  154. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_TabIndexes">View.TabIndexes</a>
  155. </div>
  156. <div>
  157. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_TabIndex">View.TabIndex</a>
  158. </div>
  159. <div>
  160. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_TabStop">View.TabStop</a>
  161. </div>
  162. <div>
  163. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Id">View.Id</a>
  164. </div>
  165. <div>
  166. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_IsCurrentTop">View.IsCurrentTop</a>
  167. </div>
  168. <div>
  169. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_WantMousePositionReports">View.WantMousePositionReports</a>
  170. </div>
  171. <div>
  172. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_WantContinuousButtonPressed">View.WantContinuousButtonPressed</a>
  173. </div>
  174. <div>
  175. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_LayoutStyle">View.LayoutStyle</a>
  176. </div>
  177. <div>
  178. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Bounds">View.Bounds</a>
  179. </div>
  180. <div>
  181. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_X">View.X</a>
  182. </div>
  183. <div>
  184. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Y">View.Y</a>
  185. </div>
  186. <div>
  187. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Width">View.Width</a>
  188. </div>
  189. <div>
  190. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Height">View.Height</a>
  191. </div>
  192. <div>
  193. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_SuperView">View.SuperView</a>
  194. </div>
  195. <div>
  196. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_SetNeedsDisplay">View.SetNeedsDisplay()</a>
  197. </div>
  198. <div>
  199. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_ClearLayoutNeeded">View.ClearLayoutNeeded()</a>
  200. </div>
  201. <div>
  202. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_SetNeedsDisplay_Terminal_Gui_Rect_">View.SetNeedsDisplay(Rect)</a>
  203. </div>
  204. <div>
  205. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_SetChildNeedsDisplay">View.SetChildNeedsDisplay()</a>
  206. </div>
  207. <div>
  208. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Add_Terminal_Gui_View_">View.Add(View)</a>
  209. </div>
  210. <div>
  211. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Add_Terminal_Gui_View___">View.Add(View[])</a>
  212. </div>
  213. <div>
  214. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_RemoveAll">View.RemoveAll()</a>
  215. </div>
  216. <div>
  217. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Remove_Terminal_Gui_View_">View.Remove(View)</a>
  218. </div>
  219. <div>
  220. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_BringSubviewToFront_Terminal_Gui_View_">View.BringSubviewToFront(View)</a>
  221. </div>
  222. <div>
  223. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_SendSubviewToBack_Terminal_Gui_View_">View.SendSubviewToBack(View)</a>
  224. </div>
  225. <div>
  226. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_SendSubviewBackwards_Terminal_Gui_View_">View.SendSubviewBackwards(View)</a>
  227. </div>
  228. <div>
  229. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_BringSubviewForward_Terminal_Gui_View_">View.BringSubviewForward(View)</a>
  230. </div>
  231. <div>
  232. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Clear">View.Clear()</a>
  233. </div>
  234. <div>
  235. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Clear_Terminal_Gui_Rect_">View.Clear(Rect)</a>
  236. </div>
  237. <div>
  238. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_ScreenToView_System_Int32_System_Int32_">View.ScreenToView(Int32, Int32)</a>
  239. </div>
  240. <div>
  241. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_ClipToBounds">View.ClipToBounds()</a>
  242. </div>
  243. <div>
  244. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_SetClip_Terminal_Gui_Rect_">View.SetClip(Rect)</a>
  245. </div>
  246. <div>
  247. <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>
  248. </div>
  249. <div>
  250. <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>
  251. </div>
  252. <div>
  253. <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>
  254. </div>
  255. <div>
  256. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Move_System_Int32_System_Int32_System_Boolean_">View.Move(Int32, Int32, Boolean)</a>
  257. </div>
  258. <div>
  259. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_HasFocus">View.HasFocus</a>
  260. </div>
  261. <div>
  262. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_OnAdded_Terminal_Gui_View_">View.OnAdded(View)</a>
  263. </div>
  264. <div>
  265. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_OnRemoved_Terminal_Gui_View_">View.OnRemoved(View)</a>
  266. </div>
  267. <div>
  268. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Focused">View.Focused</a>
  269. </div>
  270. <div>
  271. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_MostFocused">View.MostFocused</a>
  272. </div>
  273. <div>
  274. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_ColorScheme">View.ColorScheme</a>
  275. </div>
  276. <div>
  277. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_AddRune_System_Int32_System_Int32_System_Rune_">View.AddRune(Int32, Int32, Rune)</a>
  278. </div>
  279. <div>
  280. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_ClearNeedsDisplay">View.ClearNeedsDisplay()</a>
  281. </div>
  282. <div>
  283. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_DrawContent">View.DrawContent</a>
  284. </div>
  285. <div>
  286. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_OnDrawContent_Terminal_Gui_Rect_">View.OnDrawContent(Rect)</a>
  287. </div>
  288. <div>
  289. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_DrawContentComplete">View.DrawContentComplete</a>
  290. </div>
  291. <div>
  292. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_OnDrawContentComplete_Terminal_Gui_Rect_">View.OnDrawContentComplete(Rect)</a>
  293. </div>
  294. <div>
  295. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_SetFocus">View.SetFocus()</a>
  296. </div>
  297. <div>
  298. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_KeyPress">View.KeyPress</a>
  299. </div>
  300. <div>
  301. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_InvokeKeybindings_Terminal_Gui_KeyEvent_">View.InvokeKeybindings(KeyEvent)</a>
  302. </div>
  303. <div>
  304. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_AddKeyBinding_Terminal_Gui_Key_Terminal_Gui_Command_">View.AddKeyBinding(Key, Command)</a>
  305. </div>
  306. <div>
  307. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_ReplaceKeyBinding_Terminal_Gui_Key_Terminal_Gui_Key_">View.ReplaceKeyBinding(Key, Key)</a>
  308. </div>
  309. <div>
  310. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_ContainsKeyBinding_Terminal_Gui_Key_">View.ContainsKeyBinding(Key)</a>
  311. </div>
  312. <div>
  313. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_ClearKeybindings">View.ClearKeybindings()</a>
  314. </div>
  315. <div>
  316. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_ClearKeybinding_Terminal_Gui_Key_">View.ClearKeybinding(Key)</a>
  317. </div>
  318. <div>
  319. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_ClearKeybinding_Terminal_Gui_Command_">View.ClearKeybinding(Command)</a>
  320. </div>
  321. <div>
  322. <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>
  323. </div>
  324. <div>
  325. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_GetSupportedCommands">View.GetSupportedCommands()</a>
  326. </div>
  327. <div>
  328. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_GetKeyFromCommand_Terminal_Gui_Command_">View.GetKeyFromCommand(Command)</a>
  329. </div>
  330. <div>
  331. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_ProcessHotKey_Terminal_Gui_KeyEvent_">View.ProcessHotKey(KeyEvent)</a>
  332. </div>
  333. <div>
  334. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_ProcessColdKey_Terminal_Gui_KeyEvent_">View.ProcessColdKey(KeyEvent)</a>
  335. </div>
  336. <div>
  337. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_KeyDown">View.KeyDown</a>
  338. </div>
  339. <div>
  340. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_OnKeyDown_Terminal_Gui_KeyEvent_">View.OnKeyDown(KeyEvent)</a>
  341. </div>
  342. <div>
  343. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_KeyUp">View.KeyUp</a>
  344. </div>
  345. <div>
  346. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_OnKeyUp_Terminal_Gui_KeyEvent_">View.OnKeyUp(KeyEvent)</a>
  347. </div>
  348. <div>
  349. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_EnsureFocus">View.EnsureFocus()</a>
  350. </div>
  351. <div>
  352. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_FocusFirst">View.FocusFirst()</a>
  353. </div>
  354. <div>
  355. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_FocusLast">View.FocusLast()</a>
  356. </div>
  357. <div>
  358. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_FocusPrev">View.FocusPrev()</a>
  359. </div>
  360. <div>
  361. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_FocusNext">View.FocusNext()</a>
  362. </div>
  363. <div>
  364. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_LayoutStarted">View.LayoutStarted</a>
  365. </div>
  366. <div>
  367. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_LayoutComplete">View.LayoutComplete</a>
  368. </div>
  369. <div>
  370. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Initialized">View.Initialized</a>
  371. </div>
  372. <div>
  373. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_LayoutSubviews">View.LayoutSubviews()</a>
  374. </div>
  375. <div>
  376. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_AutoSize">View.AutoSize</a>
  377. </div>
  378. <div>
  379. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_TextAlignment">View.TextAlignment</a>
  380. </div>
  381. <div>
  382. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_VerticalTextAlignment">View.VerticalTextAlignment</a>
  383. </div>
  384. <div>
  385. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_TextDirection">View.TextDirection</a>
  386. </div>
  387. <div>
  388. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_IsInitialized">View.IsInitialized</a>
  389. </div>
  390. <div>
  391. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Enabled">View.Enabled</a>
  392. </div>
  393. <div>
  394. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Visible">View.Visible</a>
  395. </div>
  396. <div>
  397. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Border">View.Border</a>
  398. </div>
  399. <div>
  400. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_ToString">View.ToString()</a>
  401. </div>
  402. <div>
  403. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_OnMouseEnter_Terminal_Gui_MouseEvent_">View.OnMouseEnter(MouseEvent)</a>
  404. </div>
  405. <div>
  406. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_OnMouseLeave_Terminal_Gui_MouseEvent_">View.OnMouseLeave(MouseEvent)</a>
  407. </div>
  408. <div>
  409. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_OnMouseEvent_Terminal_Gui_MouseEvent_">View.OnMouseEvent(MouseEvent)</a>
  410. </div>
  411. <div>
  412. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_OnMouseClick_Terminal_Gui_View_MouseEventArgs_">View.OnMouseClick(View.MouseEventArgs)</a>
  413. </div>
  414. <div>
  415. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_OnCanFocusChanged">View.OnCanFocusChanged()</a>
  416. </div>
  417. <div>
  418. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_OnEnabledChanged">View.OnEnabledChanged()</a>
  419. </div>
  420. <div>
  421. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_OnVisibleChanged">View.OnVisibleChanged()</a>
  422. </div>
  423. <div>
  424. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Dispose_System_Boolean_">View.Dispose(Boolean)</a>
  425. </div>
  426. <div>
  427. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_BeginInit">View.BeginInit()</a>
  428. </div>
  429. <div>
  430. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_EndInit">View.EndInit()</a>
  431. </div>
  432. <div>
  433. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_SetWidth_System_Int32_System_Int32__">View.SetWidth(Int32, Int32)</a>
  434. </div>
  435. <div>
  436. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_SetHeight_System_Int32_System_Int32__">View.SetHeight(Int32, Int32)</a>
  437. </div>
  438. <div>
  439. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_GetCurrentWidth_System_Int32__">View.GetCurrentWidth(Int32)</a>
  440. </div>
  441. <div>
  442. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_GetCurrentHeight_System_Int32__">View.GetCurrentHeight(Int32)</a>
  443. </div>
  444. <div>
  445. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_GetNormalColor">View.GetNormalColor()</a>
  446. </div>
  447. <div>
  448. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_GetTopSuperView">View.GetTopSuperView()</a>
  449. </div>
  450. <div>
  451. <a class="xref" href="Terminal.Gui.Responder.html#Terminal_Gui_Responder_Dispose">Responder.Dispose()</a>
  452. </div>
  453. <div>
  454. <span class="xref">System.Object.Equals(System.Object)</span>
  455. </div>
  456. <div>
  457. <span class="xref">System.Object.Equals(System.Object, System.Object)</span>
  458. </div>
  459. <div>
  460. <span class="xref">System.Object.GetHashCode()</span>
  461. </div>
  462. <div>
  463. <span class="xref">System.Object.GetType()</span>
  464. </div>
  465. <div>
  466. <span class="xref">System.Object.MemberwiseClone()</span>
  467. </div>
  468. <div>
  469. <span class="xref">System.Object.ReferenceEquals(System.Object, System.Object)</span>
  470. </div>
  471. </div>
  472. <h6><strong>Namespace</strong>: <a class="xref" href="Terminal.Gui.html">Terminal.Gui</a></h6>
  473. <h6><strong>Assembly</strong>: Terminal.Gui.dll</h6>
  474. <h5 id="Terminal_Gui_TextField_syntax">Syntax</h5>
  475. <div class="codewrapper">
  476. <pre><code class="lang-csharp hljs">public class TextField : View, IDisposable, ISupportInitializeNotification, ISupportInitialize</code></pre>
  477. </div>
  478. <h5 id="Terminal_Gui_TextField_remarks"><strong>Remarks</strong></h5>
  479. <div class="markdown level0 remarks">
  480. The <a class="xref" href="Terminal.Gui.TextField.html">TextField</a> <a class="xref" href="Terminal.Gui.View.html">View</a> provides editing functionality and mouse support.
  481. </div>
  482. <h3 id="constructors">Constructors
  483. </h3>
  484. <a id="Terminal_Gui_TextField__ctor_" data-uid="Terminal.Gui.TextField.#ctor*"></a>
  485. <h4 id="Terminal_Gui_TextField__ctor" data-uid="Terminal.Gui.TextField.#ctor">TextField()</h4>
  486. <div class="markdown level1 summary">
  487. Initializes a new instance of the <a class="xref" href="Terminal.Gui.TextField.html">TextField</a> class using <a class="xref" href="Terminal.Gui.LayoutStyle.html#Terminal_Gui_LayoutStyle_Computed">Computed</a> positioning.
  488. </div>
  489. <div class="markdown level1 conceptual"></div>
  490. <h5 class="decalaration">Declaration</h5>
  491. <div class="codewrapper">
  492. <pre><code class="lang-csharp hljs">public TextField()</code></pre>
  493. </div>
  494. <a id="Terminal_Gui_TextField__ctor_" data-uid="Terminal.Gui.TextField.#ctor*"></a>
  495. <h4 id="Terminal_Gui_TextField__ctor_NStack_ustring_" data-uid="Terminal.Gui.TextField.#ctor(NStack.ustring)">TextField(ustring)</h4>
  496. <div class="markdown level1 summary">
  497. Initializes a new instance of the <a class="xref" href="Terminal.Gui.TextField.html">TextField</a> class using <a class="xref" href="Terminal.Gui.LayoutStyle.html#Terminal_Gui_LayoutStyle_Computed">Computed</a> positioning.
  498. </div>
  499. <div class="markdown level1 conceptual"></div>
  500. <h5 class="decalaration">Declaration</h5>
  501. <div class="codewrapper">
  502. <pre><code class="lang-csharp hljs">public TextField(ustring text)</code></pre>
  503. </div>
  504. <h5 class="parameters">Parameters</h5>
  505. <table class="table table-bordered table-striped table-condensed">
  506. <thead>
  507. <tr>
  508. <th>Type</th>
  509. <th>Name</th>
  510. <th>Description</th>
  511. </tr>
  512. </thead>
  513. <tbody>
  514. <tr>
  515. <td><span class="xref">NStack.ustring</span></td>
  516. <td><span class="parametername">text</span></td>
  517. <td>Initial text contents.</td>
  518. </tr>
  519. </tbody>
  520. </table>
  521. <a id="Terminal_Gui_TextField__ctor_" data-uid="Terminal.Gui.TextField.#ctor*"></a>
  522. <h4 id="Terminal_Gui_TextField__ctor_System_Int32_System_Int32_System_Int32_NStack_ustring_" data-uid="Terminal.Gui.TextField.#ctor(System.Int32,System.Int32,System.Int32,NStack.ustring)">TextField(Int32, Int32, Int32, ustring)</h4>
  523. <div class="markdown level1 summary">
  524. Initializes a new instance of the <a class="xref" href="Terminal.Gui.TextField.html">TextField</a> class using <a class="xref" href="Terminal.Gui.LayoutStyle.html#Terminal_Gui_LayoutStyle_Absolute">Absolute</a> positioning.
  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 TextField(int x, int y, int w, ustring text)</code></pre>
  530. </div>
  531. <h5 class="parameters">Parameters</h5>
  532. <table class="table table-bordered table-striped table-condensed">
  533. <thead>
  534. <tr>
  535. <th>Type</th>
  536. <th>Name</th>
  537. <th>Description</th>
  538. </tr>
  539. </thead>
  540. <tbody>
  541. <tr>
  542. <td><span class="xref">System.Int32</span></td>
  543. <td><span class="parametername">x</span></td>
  544. <td>The x coordinate.</td>
  545. </tr>
  546. <tr>
  547. <td><span class="xref">System.Int32</span></td>
  548. <td><span class="parametername">y</span></td>
  549. <td>The y coordinate.</td>
  550. </tr>
  551. <tr>
  552. <td><span class="xref">System.Int32</span></td>
  553. <td><span class="parametername">w</span></td>
  554. <td>The width.</td>
  555. </tr>
  556. <tr>
  557. <td><span class="xref">NStack.ustring</span></td>
  558. <td><span class="parametername">text</span></td>
  559. <td>Initial text contents.</td>
  560. </tr>
  561. </tbody>
  562. </table>
  563. <a id="Terminal_Gui_TextField__ctor_" data-uid="Terminal.Gui.TextField.#ctor*"></a>
  564. <h4 id="Terminal_Gui_TextField__ctor_System_String_" data-uid="Terminal.Gui.TextField.#ctor(System.String)">TextField(String)</h4>
  565. <div class="markdown level1 summary">
  566. Initializes a new instance of the <a class="xref" href="Terminal.Gui.TextField.html">TextField</a> class using <a class="xref" href="Terminal.Gui.LayoutStyle.html#Terminal_Gui_LayoutStyle_Computed">Computed</a> positioning.
  567. </div>
  568. <div class="markdown level1 conceptual"></div>
  569. <h5 class="decalaration">Declaration</h5>
  570. <div class="codewrapper">
  571. <pre><code class="lang-csharp hljs">public TextField(string text)</code></pre>
  572. </div>
  573. <h5 class="parameters">Parameters</h5>
  574. <table class="table table-bordered table-striped table-condensed">
  575. <thead>
  576. <tr>
  577. <th>Type</th>
  578. <th>Name</th>
  579. <th>Description</th>
  580. </tr>
  581. </thead>
  582. <tbody>
  583. <tr>
  584. <td><span class="xref">System.String</span></td>
  585. <td><span class="parametername">text</span></td>
  586. <td>Initial text contents.</td>
  587. </tr>
  588. </tbody>
  589. </table>
  590. <h3 id="properties">Properties
  591. </h3>
  592. <a id="Terminal_Gui_TextField_Autocomplete_" data-uid="Terminal.Gui.TextField.Autocomplete*"></a>
  593. <h4 id="Terminal_Gui_TextField_Autocomplete" data-uid="Terminal.Gui.TextField.Autocomplete">Autocomplete</h4>
  594. <div class="markdown level1 summary">
  595. Provides autocomplete context menu based on suggestions at the current cursor
  596. position. Populate <a class="xref" href="Terminal.Gui.Autocomplete.html#Terminal_Gui_Autocomplete_AllSuggestions">AllSuggestions</a> to enable this feature.
  597. </div>
  598. <div class="markdown level1 conceptual"></div>
  599. <h5 class="decalaration">Declaration</h5>
  600. <div class="codewrapper">
  601. <pre><code class="lang-csharp hljs">public IAutocomplete Autocomplete { get; protected set; }</code></pre>
  602. </div>
  603. <h5 class="propertyValue">Property Value</h5>
  604. <table class="table table-bordered table-striped table-condensed">
  605. <thead>
  606. <tr>
  607. <th>Type</th>
  608. <th>Description</th>
  609. </tr>
  610. </thead>
  611. <tbody>
  612. <tr>
  613. <td><a class="xref" href="Terminal.Gui.IAutocomplete.html">IAutocomplete</a></td>
  614. <td></td>
  615. </tr>
  616. </tbody>
  617. </table>
  618. <a id="Terminal_Gui_TextField_CanFocus_" data-uid="Terminal.Gui.TextField.CanFocus*"></a>
  619. <h4 id="Terminal_Gui_TextField_CanFocus" data-uid="Terminal.Gui.TextField.CanFocus">CanFocus</h4>
  620. <div class="markdown level1 summary"></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 override bool CanFocus { get; 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><span class="xref">System.Boolean</span></td>
  637. <td></td>
  638. </tr>
  639. </tbody>
  640. </table>
  641. <h5 class="overrides">Overrides</h5>
  642. <div><a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_CanFocus">View.CanFocus</a></div>
  643. <a id="Terminal_Gui_TextField_ContextMenu_" data-uid="Terminal.Gui.TextField.ContextMenu*"></a>
  644. <h4 id="Terminal_Gui_TextField_ContextMenu" data-uid="Terminal.Gui.TextField.ContextMenu">ContextMenu</h4>
  645. <div class="markdown level1 summary">
  646. Get the <a class="xref" href="Terminal.Gui.TextField.html#Terminal_Gui_TextField_ContextMenu">ContextMenu</a> for this view.
  647. </div>
  648. <div class="markdown level1 conceptual"></div>
  649. <h5 class="decalaration">Declaration</h5>
  650. <div class="codewrapper">
  651. <pre><code class="lang-csharp hljs">public ContextMenu ContextMenu { get; }</code></pre>
  652. </div>
  653. <h5 class="propertyValue">Property Value</h5>
  654. <table class="table table-bordered table-striped table-condensed">
  655. <thead>
  656. <tr>
  657. <th>Type</th>
  658. <th>Description</th>
  659. </tr>
  660. </thead>
  661. <tbody>
  662. <tr>
  663. <td><a class="xref" href="Terminal.Gui.ContextMenu.html">ContextMenu</a></td>
  664. <td></td>
  665. </tr>
  666. </tbody>
  667. </table>
  668. <a id="Terminal_Gui_TextField_CursorPosition_" data-uid="Terminal.Gui.TextField.CursorPosition*"></a>
  669. <h4 id="Terminal_Gui_TextField_CursorPosition" data-uid="Terminal.Gui.TextField.CursorPosition">CursorPosition</h4>
  670. <div class="markdown level1 summary">
  671. Sets or gets the current cursor position.
  672. </div>
  673. <div class="markdown level1 conceptual"></div>
  674. <h5 class="decalaration">Declaration</h5>
  675. <div class="codewrapper">
  676. <pre><code class="lang-csharp hljs">public virtual int CursorPosition { get; set; }</code></pre>
  677. </div>
  678. <h5 class="propertyValue">Property Value</h5>
  679. <table class="table table-bordered table-striped table-condensed">
  680. <thead>
  681. <tr>
  682. <th>Type</th>
  683. <th>Description</th>
  684. </tr>
  685. </thead>
  686. <tbody>
  687. <tr>
  688. <td><span class="xref">System.Int32</span></td>
  689. <td></td>
  690. </tr>
  691. </tbody>
  692. </table>
  693. <a id="Terminal_Gui_TextField_DesiredCursorVisibility_" data-uid="Terminal.Gui.TextField.DesiredCursorVisibility*"></a>
  694. <h4 id="Terminal_Gui_TextField_DesiredCursorVisibility" data-uid="Terminal.Gui.TextField.DesiredCursorVisibility">DesiredCursorVisibility</h4>
  695. <div class="markdown level1 summary">
  696. Get / Set the wished cursor when the field is focused
  697. </div>
  698. <div class="markdown level1 conceptual"></div>
  699. <h5 class="decalaration">Declaration</h5>
  700. <div class="codewrapper">
  701. <pre><code class="lang-csharp hljs">public CursorVisibility DesiredCursorVisibility { get; set; }</code></pre>
  702. </div>
  703. <h5 class="propertyValue">Property Value</h5>
  704. <table class="table table-bordered table-striped table-condensed">
  705. <thead>
  706. <tr>
  707. <th>Type</th>
  708. <th>Description</th>
  709. </tr>
  710. </thead>
  711. <tbody>
  712. <tr>
  713. <td><a class="xref" href="Terminal.Gui.CursorVisibility.html">CursorVisibility</a></td>
  714. <td></td>
  715. </tr>
  716. </tbody>
  717. </table>
  718. <a id="Terminal_Gui_TextField_Frame_" data-uid="Terminal.Gui.TextField.Frame*"></a>
  719. <h4 id="Terminal_Gui_TextField_Frame" data-uid="Terminal.Gui.TextField.Frame">Frame</h4>
  720. <div class="markdown level1 summary"></div>
  721. <div class="markdown level1 conceptual"></div>
  722. <h5 class="decalaration">Declaration</h5>
  723. <div class="codewrapper">
  724. <pre><code class="lang-csharp hljs">public override Rect Frame { get; set; }</code></pre>
  725. </div>
  726. <h5 class="propertyValue">Property Value</h5>
  727. <table class="table table-bordered table-striped table-condensed">
  728. <thead>
  729. <tr>
  730. <th>Type</th>
  731. <th>Description</th>
  732. </tr>
  733. </thead>
  734. <tbody>
  735. <tr>
  736. <td><a class="xref" href="Terminal.Gui.Rect.html">Rect</a></td>
  737. <td></td>
  738. </tr>
  739. </tbody>
  740. </table>
  741. <h5 class="overrides">Overrides</h5>
  742. <div><a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Frame">View.Frame</a></div>
  743. <a id="Terminal_Gui_TextField_HasHistoryChanges_" data-uid="Terminal.Gui.TextField.HasHistoryChanges*"></a>
  744. <h4 id="Terminal_Gui_TextField_HasHistoryChanges" data-uid="Terminal.Gui.TextField.HasHistoryChanges">HasHistoryChanges</h4>
  745. <div class="markdown level1 summary">
  746. Indicates whatever the text has history changes or not.
  747. <span class="xref">true</span> if the text has history changes <span class="xref">false</span> otherwise.
  748. </div>
  749. <div class="markdown level1 conceptual"></div>
  750. <h5 class="decalaration">Declaration</h5>
  751. <div class="codewrapper">
  752. <pre><code class="lang-csharp hljs">public bool HasHistoryChanges { get; }</code></pre>
  753. </div>
  754. <h5 class="propertyValue">Property Value</h5>
  755. <table class="table table-bordered table-striped table-condensed">
  756. <thead>
  757. <tr>
  758. <th>Type</th>
  759. <th>Description</th>
  760. </tr>
  761. </thead>
  762. <tbody>
  763. <tr>
  764. <td><span class="xref">System.Boolean</span></td>
  765. <td></td>
  766. </tr>
  767. </tbody>
  768. </table>
  769. <a id="Terminal_Gui_TextField_IsDirty_" data-uid="Terminal.Gui.TextField.IsDirty*"></a>
  770. <h4 id="Terminal_Gui_TextField_IsDirty" data-uid="Terminal.Gui.TextField.IsDirty">IsDirty</h4>
  771. <div class="markdown level1 summary">
  772. Indicates whatever the text was changed or not.
  773. <span class="xref">true</span> if the text was changed <span class="xref">false</span> otherwise.
  774. </div>
  775. <div class="markdown level1 conceptual"></div>
  776. <h5 class="decalaration">Declaration</h5>
  777. <div class="codewrapper">
  778. <pre><code class="lang-csharp hljs">public bool IsDirty { get; }</code></pre>
  779. </div>
  780. <h5 class="propertyValue">Property Value</h5>
  781. <table class="table table-bordered table-striped table-condensed">
  782. <thead>
  783. <tr>
  784. <th>Type</th>
  785. <th>Description</th>
  786. </tr>
  787. </thead>
  788. <tbody>
  789. <tr>
  790. <td><span class="xref">System.Boolean</span></td>
  791. <td></td>
  792. </tr>
  793. </tbody>
  794. </table>
  795. <a id="Terminal_Gui_TextField_ReadOnly_" data-uid="Terminal.Gui.TextField.ReadOnly*"></a>
  796. <h4 id="Terminal_Gui_TextField_ReadOnly" data-uid="Terminal.Gui.TextField.ReadOnly">ReadOnly</h4>
  797. <div class="markdown level1 summary">
  798. If set to true its not allow any changes in the text.
  799. </div>
  800. <div class="markdown level1 conceptual"></div>
  801. <h5 class="decalaration">Declaration</h5>
  802. <div class="codewrapper">
  803. <pre><code class="lang-csharp hljs">public bool ReadOnly { get; set; }</code></pre>
  804. </div>
  805. <h5 class="propertyValue">Property Value</h5>
  806. <table class="table table-bordered table-striped table-condensed">
  807. <thead>
  808. <tr>
  809. <th>Type</th>
  810. <th>Description</th>
  811. </tr>
  812. </thead>
  813. <tbody>
  814. <tr>
  815. <td><span class="xref">System.Boolean</span></td>
  816. <td></td>
  817. </tr>
  818. </tbody>
  819. </table>
  820. <a id="Terminal_Gui_TextField_ScrollOffset_" data-uid="Terminal.Gui.TextField.ScrollOffset*"></a>
  821. <h4 id="Terminal_Gui_TextField_ScrollOffset" data-uid="Terminal.Gui.TextField.ScrollOffset">ScrollOffset</h4>
  822. <div class="markdown level1 summary">
  823. Gets the left offset position.
  824. </div>
  825. <div class="markdown level1 conceptual"></div>
  826. <h5 class="decalaration">Declaration</h5>
  827. <div class="codewrapper">
  828. <pre><code class="lang-csharp hljs">public int ScrollOffset { get; }</code></pre>
  829. </div>
  830. <h5 class="propertyValue">Property Value</h5>
  831. <table class="table table-bordered table-striped table-condensed">
  832. <thead>
  833. <tr>
  834. <th>Type</th>
  835. <th>Description</th>
  836. </tr>
  837. </thead>
  838. <tbody>
  839. <tr>
  840. <td><span class="xref">System.Int32</span></td>
  841. <td></td>
  842. </tr>
  843. </tbody>
  844. </table>
  845. <a id="Terminal_Gui_TextField_Secret_" data-uid="Terminal.Gui.TextField.Secret*"></a>
  846. <h4 id="Terminal_Gui_TextField_Secret" data-uid="Terminal.Gui.TextField.Secret">Secret</h4>
  847. <div class="markdown level1 summary">
  848. Sets the secret property.
  849. </div>
  850. <div class="markdown level1 conceptual"></div>
  851. <h5 class="decalaration">Declaration</h5>
  852. <div class="codewrapper">
  853. <pre><code class="lang-csharp hljs">public bool Secret { get; set; }</code></pre>
  854. </div>
  855. <h5 class="propertyValue">Property Value</h5>
  856. <table class="table table-bordered table-striped table-condensed">
  857. <thead>
  858. <tr>
  859. <th>Type</th>
  860. <th>Description</th>
  861. </tr>
  862. </thead>
  863. <tbody>
  864. <tr>
  865. <td><span class="xref">System.Boolean</span></td>
  866. <td></td>
  867. </tr>
  868. </tbody>
  869. </table>
  870. <h5 id="Terminal_Gui_TextField_Secret_remarks">Remarks</h5>
  871. <div class="markdown level1 remarks">
  872. This makes the text entry suitable for entering passwords.
  873. </div>
  874. <a id="Terminal_Gui_TextField_SelectedLength_" data-uid="Terminal.Gui.TextField.SelectedLength*"></a>
  875. <h4 id="Terminal_Gui_TextField_SelectedLength" data-uid="Terminal.Gui.TextField.SelectedLength">SelectedLength</h4>
  876. <div class="markdown level1 summary">
  877. Length of the selected text.
  878. </div>
  879. <div class="markdown level1 conceptual"></div>
  880. <h5 class="decalaration">Declaration</h5>
  881. <div class="codewrapper">
  882. <pre><code class="lang-csharp hljs">public int SelectedLength { get; }</code></pre>
  883. </div>
  884. <h5 class="propertyValue">Property Value</h5>
  885. <table class="table table-bordered table-striped table-condensed">
  886. <thead>
  887. <tr>
  888. <th>Type</th>
  889. <th>Description</th>
  890. </tr>
  891. </thead>
  892. <tbody>
  893. <tr>
  894. <td><span class="xref">System.Int32</span></td>
  895. <td></td>
  896. </tr>
  897. </tbody>
  898. </table>
  899. <a id="Terminal_Gui_TextField_SelectedStart_" data-uid="Terminal.Gui.TextField.SelectedStart*"></a>
  900. <h4 id="Terminal_Gui_TextField_SelectedStart" data-uid="Terminal.Gui.TextField.SelectedStart">SelectedStart</h4>
  901. <div class="markdown level1 summary">
  902. Start position of the selected text.
  903. </div>
  904. <div class="markdown level1 conceptual"></div>
  905. <h5 class="decalaration">Declaration</h5>
  906. <div class="codewrapper">
  907. <pre><code class="lang-csharp hljs">public int SelectedStart { get; set; }</code></pre>
  908. </div>
  909. <h5 class="propertyValue">Property Value</h5>
  910. <table class="table table-bordered table-striped table-condensed">
  911. <thead>
  912. <tr>
  913. <th>Type</th>
  914. <th>Description</th>
  915. </tr>
  916. </thead>
  917. <tbody>
  918. <tr>
  919. <td><span class="xref">System.Int32</span></td>
  920. <td></td>
  921. </tr>
  922. </tbody>
  923. </table>
  924. <a id="Terminal_Gui_TextField_SelectedText_" data-uid="Terminal.Gui.TextField.SelectedText*"></a>
  925. <h4 id="Terminal_Gui_TextField_SelectedText" data-uid="Terminal.Gui.TextField.SelectedText">SelectedText</h4>
  926. <div class="markdown level1 summary">
  927. The selected text.
  928. </div>
  929. <div class="markdown level1 conceptual"></div>
  930. <h5 class="decalaration">Declaration</h5>
  931. <div class="codewrapper">
  932. <pre><code class="lang-csharp hljs">public ustring SelectedText { get; }</code></pre>
  933. </div>
  934. <h5 class="propertyValue">Property Value</h5>
  935. <table class="table table-bordered table-striped table-condensed">
  936. <thead>
  937. <tr>
  938. <th>Type</th>
  939. <th>Description</th>
  940. </tr>
  941. </thead>
  942. <tbody>
  943. <tr>
  944. <td><span class="xref">NStack.ustring</span></td>
  945. <td></td>
  946. </tr>
  947. </tbody>
  948. </table>
  949. <a id="Terminal_Gui_TextField_Text_" data-uid="Terminal.Gui.TextField.Text*"></a>
  950. <h4 id="Terminal_Gui_TextField_Text" data-uid="Terminal.Gui.TextField.Text">Text</h4>
  951. <div class="markdown level1 summary">
  952. Sets or gets the text held by the view.
  953. </div>
  954. <div class="markdown level1 conceptual"></div>
  955. <h5 class="decalaration">Declaration</h5>
  956. <div class="codewrapper">
  957. <pre><code class="lang-csharp hljs">public ustring Text { get; set; }</code></pre>
  958. </div>
  959. <h5 class="propertyValue">Property Value</h5>
  960. <table class="table table-bordered table-striped table-condensed">
  961. <thead>
  962. <tr>
  963. <th>Type</th>
  964. <th>Description</th>
  965. </tr>
  966. </thead>
  967. <tbody>
  968. <tr>
  969. <td><span class="xref">NStack.ustring</span></td>
  970. <td></td>
  971. </tr>
  972. </tbody>
  973. </table>
  974. <h5 id="Terminal_Gui_TextField_Text_remarks">Remarks</h5>
  975. <div class="markdown level1 remarks">
  976. </div>
  977. <a id="Terminal_Gui_TextField_Used_" data-uid="Terminal.Gui.TextField.Used*"></a>
  978. <h4 id="Terminal_Gui_TextField_Used" data-uid="Terminal.Gui.TextField.Used">Used</h4>
  979. <div class="markdown level1 summary">
  980. Tracks whether the text field should be considered &quot;used&quot;, that is, that the user has moved in the entry, so new input should be appended at the cursor position, rather than clearing the entry
  981. </div>
  982. <div class="markdown level1 conceptual"></div>
  983. <h5 class="decalaration">Declaration</h5>
  984. <div class="codewrapper">
  985. <pre><code class="lang-csharp hljs">public bool Used { get; set; }</code></pre>
  986. </div>
  987. <h5 class="propertyValue">Property Value</h5>
  988. <table class="table table-bordered table-striped table-condensed">
  989. <thead>
  990. <tr>
  991. <th>Type</th>
  992. <th>Description</th>
  993. </tr>
  994. </thead>
  995. <tbody>
  996. <tr>
  997. <td><span class="xref">System.Boolean</span></td>
  998. <td></td>
  999. </tr>
  1000. </tbody>
  1001. </table>
  1002. <h3 id="methods">Methods
  1003. </h3>
  1004. <a id="Terminal_Gui_TextField_ClearAllSelection_" data-uid="Terminal.Gui.TextField.ClearAllSelection*"></a>
  1005. <h4 id="Terminal_Gui_TextField_ClearAllSelection" data-uid="Terminal.Gui.TextField.ClearAllSelection">ClearAllSelection()</h4>
  1006. <div class="markdown level1 summary">
  1007. Clear the selected text.
  1008. </div>
  1009. <div class="markdown level1 conceptual"></div>
  1010. <h5 class="decalaration">Declaration</h5>
  1011. <div class="codewrapper">
  1012. <pre><code class="lang-csharp hljs">public void ClearAllSelection()</code></pre>
  1013. </div>
  1014. <a id="Terminal_Gui_TextField_ClearHistoryChanges_" data-uid="Terminal.Gui.TextField.ClearHistoryChanges*"></a>
  1015. <h4 id="Terminal_Gui_TextField_ClearHistoryChanges" data-uid="Terminal.Gui.TextField.ClearHistoryChanges">ClearHistoryChanges()</h4>
  1016. <div class="markdown level1 summary">
  1017. Allows clearing the <span class="xref">Terminal.Gui.HistoryText.HistoryTextItem</span> items updating the original text.
  1018. </div>
  1019. <div class="markdown level1 conceptual"></div>
  1020. <h5 class="decalaration">Declaration</h5>
  1021. <div class="codewrapper">
  1022. <pre><code class="lang-csharp hljs">public void ClearHistoryChanges()</code></pre>
  1023. </div>
  1024. <a id="Terminal_Gui_TextField_Copy_" data-uid="Terminal.Gui.TextField.Copy*"></a>
  1025. <h4 id="Terminal_Gui_TextField_Copy" data-uid="Terminal.Gui.TextField.Copy">Copy()</h4>
  1026. <div class="markdown level1 summary">
  1027. Copy the selected text to the clipboard.
  1028. </div>
  1029. <div class="markdown level1 conceptual"></div>
  1030. <h5 class="decalaration">Declaration</h5>
  1031. <div class="codewrapper">
  1032. <pre><code class="lang-csharp hljs">public virtual void Copy()</code></pre>
  1033. </div>
  1034. <a id="Terminal_Gui_TextField_Cut_" data-uid="Terminal.Gui.TextField.Cut*"></a>
  1035. <h4 id="Terminal_Gui_TextField_Cut" data-uid="Terminal.Gui.TextField.Cut">Cut()</h4>
  1036. <div class="markdown level1 summary">
  1037. Cut the selected text to the clipboard.
  1038. </div>
  1039. <div class="markdown level1 conceptual"></div>
  1040. <h5 class="decalaration">Declaration</h5>
  1041. <div class="codewrapper">
  1042. <pre><code class="lang-csharp hljs">public virtual void Cut()</code></pre>
  1043. </div>
  1044. <a id="Terminal_Gui_TextField_DeleteAll_" data-uid="Terminal.Gui.TextField.DeleteAll*"></a>
  1045. <h4 id="Terminal_Gui_TextField_DeleteAll" data-uid="Terminal.Gui.TextField.DeleteAll">DeleteAll()</h4>
  1046. <div class="markdown level1 summary">
  1047. Deletes all text.
  1048. </div>
  1049. <div class="markdown level1 conceptual"></div>
  1050. <h5 class="decalaration">Declaration</h5>
  1051. <div class="codewrapper">
  1052. <pre><code class="lang-csharp hljs">public void DeleteAll()</code></pre>
  1053. </div>
  1054. <a id="Terminal_Gui_TextField_DeleteCharLeft_" data-uid="Terminal.Gui.TextField.DeleteCharLeft*"></a>
  1055. <h4 id="Terminal_Gui_TextField_DeleteCharLeft_System_Boolean_" data-uid="Terminal.Gui.TextField.DeleteCharLeft(System.Boolean)">DeleteCharLeft(Boolean)</h4>
  1056. <div class="markdown level1 summary">
  1057. Deletes the left character.
  1058. </div>
  1059. <div class="markdown level1 conceptual"></div>
  1060. <h5 class="decalaration">Declaration</h5>
  1061. <div class="codewrapper">
  1062. <pre><code class="lang-csharp hljs">public virtual void DeleteCharLeft(bool useOldCursorPos = true)</code></pre>
  1063. </div>
  1064. <h5 class="parameters">Parameters</h5>
  1065. <table class="table table-bordered table-striped table-condensed">
  1066. <thead>
  1067. <tr>
  1068. <th>Type</th>
  1069. <th>Name</th>
  1070. <th>Description</th>
  1071. </tr>
  1072. </thead>
  1073. <tbody>
  1074. <tr>
  1075. <td><span class="xref">System.Boolean</span></td>
  1076. <td><span class="parametername">useOldCursorPos</span></td>
  1077. <td></td>
  1078. </tr>
  1079. </tbody>
  1080. </table>
  1081. <a id="Terminal_Gui_TextField_DeleteCharRight_" data-uid="Terminal.Gui.TextField.DeleteCharRight*"></a>
  1082. <h4 id="Terminal_Gui_TextField_DeleteCharRight" data-uid="Terminal.Gui.TextField.DeleteCharRight">DeleteCharRight()</h4>
  1083. <div class="markdown level1 summary">
  1084. Deletes the right character.
  1085. </div>
  1086. <div class="markdown level1 conceptual"></div>
  1087. <h5 class="decalaration">Declaration</h5>
  1088. <div class="codewrapper">
  1089. <pre><code class="lang-csharp hljs">public virtual void DeleteCharRight()</code></pre>
  1090. </div>
  1091. <a id="Terminal_Gui_TextField_InsertText_" data-uid="Terminal.Gui.TextField.InsertText*"></a>
  1092. <h4 id="Terminal_Gui_TextField_InsertText_System_String_System_Boolean_" data-uid="Terminal.Gui.TextField.InsertText(System.String,System.Boolean)">InsertText(String, Boolean)</h4>
  1093. <div class="markdown level1 summary">
  1094. Inserts the given <code data-dev-comment-type="paramref" class="paramref">toAdd</code> text at the current cursor position
  1095. exactly as if the user had just typed it
  1096. </div>
  1097. <div class="markdown level1 conceptual"></div>
  1098. <h5 class="decalaration">Declaration</h5>
  1099. <div class="codewrapper">
  1100. <pre><code class="lang-csharp hljs">public void InsertText(string toAdd, bool useOldCursorPos = true)</code></pre>
  1101. </div>
  1102. <h5 class="parameters">Parameters</h5>
  1103. <table class="table table-bordered table-striped table-condensed">
  1104. <thead>
  1105. <tr>
  1106. <th>Type</th>
  1107. <th>Name</th>
  1108. <th>Description</th>
  1109. </tr>
  1110. </thead>
  1111. <tbody>
  1112. <tr>
  1113. <td><span class="xref">System.String</span></td>
  1114. <td><span class="parametername">toAdd</span></td>
  1115. <td>Text to add</td>
  1116. </tr>
  1117. <tr>
  1118. <td><span class="xref">System.Boolean</span></td>
  1119. <td><span class="parametername">useOldCursorPos</span></td>
  1120. <td>If uses the <span class="xref">Terminal.Gui.TextField.oldCursorPos</span>.</td>
  1121. </tr>
  1122. </tbody>
  1123. </table>
  1124. <a id="Terminal_Gui_TextField_KillWordBackwards_" data-uid="Terminal.Gui.TextField.KillWordBackwards*"></a>
  1125. <h4 id="Terminal_Gui_TextField_KillWordBackwards" data-uid="Terminal.Gui.TextField.KillWordBackwards">KillWordBackwards()</h4>
  1126. <div class="markdown level1 summary">
  1127. Deletes word backwards.
  1128. </div>
  1129. <div class="markdown level1 conceptual"></div>
  1130. <h5 class="decalaration">Declaration</h5>
  1131. <div class="codewrapper">
  1132. <pre><code class="lang-csharp hljs">public virtual void KillWordBackwards()</code></pre>
  1133. </div>
  1134. <a id="Terminal_Gui_TextField_KillWordForwards_" data-uid="Terminal.Gui.TextField.KillWordForwards*"></a>
  1135. <h4 id="Terminal_Gui_TextField_KillWordForwards" data-uid="Terminal.Gui.TextField.KillWordForwards">KillWordForwards()</h4>
  1136. <div class="markdown level1 summary">
  1137. Deletes word forwards.
  1138. </div>
  1139. <div class="markdown level1 conceptual"></div>
  1140. <h5 class="decalaration">Declaration</h5>
  1141. <div class="codewrapper">
  1142. <pre><code class="lang-csharp hljs">public virtual void KillWordForwards()</code></pre>
  1143. </div>
  1144. <a id="Terminal_Gui_TextField_MouseEvent_" data-uid="Terminal.Gui.TextField.MouseEvent*"></a>
  1145. <h4 id="Terminal_Gui_TextField_MouseEvent_Terminal_Gui_MouseEvent_" data-uid="Terminal.Gui.TextField.MouseEvent(Terminal.Gui.MouseEvent)">MouseEvent(MouseEvent)</h4>
  1146. <div class="markdown level1 summary"></div>
  1147. <div class="markdown level1 conceptual"></div>
  1148. <h5 class="decalaration">Declaration</h5>
  1149. <div class="codewrapper">
  1150. <pre><code class="lang-csharp hljs">public override bool MouseEvent(MouseEvent ev)</code></pre>
  1151. </div>
  1152. <h5 class="parameters">Parameters</h5>
  1153. <table class="table table-bordered table-striped table-condensed">
  1154. <thead>
  1155. <tr>
  1156. <th>Type</th>
  1157. <th>Name</th>
  1158. <th>Description</th>
  1159. </tr>
  1160. </thead>
  1161. <tbody>
  1162. <tr>
  1163. <td><a class="xref" href="Terminal.Gui.MouseEvent.html">MouseEvent</a></td>
  1164. <td><span class="parametername">ev</span></td>
  1165. <td></td>
  1166. </tr>
  1167. </tbody>
  1168. </table>
  1169. <h5 class="returns">Returns</h5>
  1170. <table class="table table-bordered table-striped table-condensed">
  1171. <thead>
  1172. <tr>
  1173. <th>Type</th>
  1174. <th>Description</th>
  1175. </tr>
  1176. </thead>
  1177. <tbody>
  1178. <tr>
  1179. <td><span class="xref">System.Boolean</span></td>
  1180. <td></td>
  1181. </tr>
  1182. </tbody>
  1183. </table>
  1184. <h5 class="overrides">Overrides</h5>
  1185. <div><a class="xref" href="Terminal.Gui.Responder.html#Terminal_Gui_Responder_MouseEvent_Terminal_Gui_MouseEvent_">Responder.MouseEvent(MouseEvent)</a></div>
  1186. <a id="Terminal_Gui_TextField_OnEnter_" data-uid="Terminal.Gui.TextField.OnEnter*"></a>
  1187. <h4 id="Terminal_Gui_TextField_OnEnter_Terminal_Gui_View_" data-uid="Terminal.Gui.TextField.OnEnter(Terminal.Gui.View)">OnEnter(View)</h4>
  1188. <div class="markdown level1 summary"></div>
  1189. <div class="markdown level1 conceptual"></div>
  1190. <h5 class="decalaration">Declaration</h5>
  1191. <div class="codewrapper">
  1192. <pre><code class="lang-csharp hljs">public override bool OnEnter(View view)</code></pre>
  1193. </div>
  1194. <h5 class="parameters">Parameters</h5>
  1195. <table class="table table-bordered table-striped table-condensed">
  1196. <thead>
  1197. <tr>
  1198. <th>Type</th>
  1199. <th>Name</th>
  1200. <th>Description</th>
  1201. </tr>
  1202. </thead>
  1203. <tbody>
  1204. <tr>
  1205. <td><a class="xref" href="Terminal.Gui.View.html">View</a></td>
  1206. <td><span class="parametername">view</span></td>
  1207. <td></td>
  1208. </tr>
  1209. </tbody>
  1210. </table>
  1211. <h5 class="returns">Returns</h5>
  1212. <table class="table table-bordered table-striped table-condensed">
  1213. <thead>
  1214. <tr>
  1215. <th>Type</th>
  1216. <th>Description</th>
  1217. </tr>
  1218. </thead>
  1219. <tbody>
  1220. <tr>
  1221. <td><span class="xref">System.Boolean</span></td>
  1222. <td></td>
  1223. </tr>
  1224. </tbody>
  1225. </table>
  1226. <h5 class="overrides">Overrides</h5>
  1227. <div><a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_OnEnter_Terminal_Gui_View_">View.OnEnter(View)</a></div>
  1228. <a id="Terminal_Gui_TextField_OnLeave_" data-uid="Terminal.Gui.TextField.OnLeave*"></a>
  1229. <h4 id="Terminal_Gui_TextField_OnLeave_Terminal_Gui_View_" data-uid="Terminal.Gui.TextField.OnLeave(Terminal.Gui.View)">OnLeave(View)</h4>
  1230. <div class="markdown level1 summary"></div>
  1231. <div class="markdown level1 conceptual"></div>
  1232. <h5 class="decalaration">Declaration</h5>
  1233. <div class="codewrapper">
  1234. <pre><code class="lang-csharp hljs">public override bool OnLeave(View view)</code></pre>
  1235. </div>
  1236. <h5 class="parameters">Parameters</h5>
  1237. <table class="table table-bordered table-striped table-condensed">
  1238. <thead>
  1239. <tr>
  1240. <th>Type</th>
  1241. <th>Name</th>
  1242. <th>Description</th>
  1243. </tr>
  1244. </thead>
  1245. <tbody>
  1246. <tr>
  1247. <td><a class="xref" href="Terminal.Gui.View.html">View</a></td>
  1248. <td><span class="parametername">view</span></td>
  1249. <td></td>
  1250. </tr>
  1251. </tbody>
  1252. </table>
  1253. <h5 class="returns">Returns</h5>
  1254. <table class="table table-bordered table-striped table-condensed">
  1255. <thead>
  1256. <tr>
  1257. <th>Type</th>
  1258. <th>Description</th>
  1259. </tr>
  1260. </thead>
  1261. <tbody>
  1262. <tr>
  1263. <td><span class="xref">System.Boolean</span></td>
  1264. <td></td>
  1265. </tr>
  1266. </tbody>
  1267. </table>
  1268. <h5 class="overrides">Overrides</h5>
  1269. <div><a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_OnLeave_Terminal_Gui_View_">View.OnLeave(View)</a></div>
  1270. <a id="Terminal_Gui_TextField_OnTextChanging_" data-uid="Terminal.Gui.TextField.OnTextChanging*"></a>
  1271. <h4 id="Terminal_Gui_TextField_OnTextChanging_NStack_ustring_" data-uid="Terminal.Gui.TextField.OnTextChanging(NStack.ustring)">OnTextChanging(ustring)</h4>
  1272. <div class="markdown level1 summary">
  1273. Virtual method that invoke the <a class="xref" href="Terminal.Gui.TextField.html#Terminal_Gui_TextField_TextChanging">TextChanging</a> event if it&apos;s defined.
  1274. </div>
  1275. <div class="markdown level1 conceptual"></div>
  1276. <h5 class="decalaration">Declaration</h5>
  1277. <div class="codewrapper">
  1278. <pre><code class="lang-csharp hljs">public virtual TextChangingEventArgs OnTextChanging(ustring newText)</code></pre>
  1279. </div>
  1280. <h5 class="parameters">Parameters</h5>
  1281. <table class="table table-bordered table-striped table-condensed">
  1282. <thead>
  1283. <tr>
  1284. <th>Type</th>
  1285. <th>Name</th>
  1286. <th>Description</th>
  1287. </tr>
  1288. </thead>
  1289. <tbody>
  1290. <tr>
  1291. <td><span class="xref">NStack.ustring</span></td>
  1292. <td><span class="parametername">newText</span></td>
  1293. <td>The new text to be replaced.</td>
  1294. </tr>
  1295. </tbody>
  1296. </table>
  1297. <h5 class="returns">Returns</h5>
  1298. <table class="table table-bordered table-striped table-condensed">
  1299. <thead>
  1300. <tr>
  1301. <th>Type</th>
  1302. <th>Description</th>
  1303. </tr>
  1304. </thead>
  1305. <tbody>
  1306. <tr>
  1307. <td><a class="xref" href="Terminal.Gui.TextChangingEventArgs.html">TextChangingEventArgs</a></td>
  1308. <td>Returns the <a class="xref" href="Terminal.Gui.TextChangingEventArgs.html">TextChangingEventArgs</a></td>
  1309. </tr>
  1310. </tbody>
  1311. </table>
  1312. <a id="Terminal_Gui_TextField_Paste_" data-uid="Terminal.Gui.TextField.Paste*"></a>
  1313. <h4 id="Terminal_Gui_TextField_Paste" data-uid="Terminal.Gui.TextField.Paste">Paste()</h4>
  1314. <div class="markdown level1 summary">
  1315. Paste the selected text from the clipboard.
  1316. </div>
  1317. <div class="markdown level1 conceptual"></div>
  1318. <h5 class="decalaration">Declaration</h5>
  1319. <div class="codewrapper">
  1320. <pre><code class="lang-csharp hljs">public virtual void Paste()</code></pre>
  1321. </div>
  1322. <a id="Terminal_Gui_TextField_PositionCursor_" data-uid="Terminal.Gui.TextField.PositionCursor*"></a>
  1323. <h4 id="Terminal_Gui_TextField_PositionCursor" data-uid="Terminal.Gui.TextField.PositionCursor">PositionCursor()</h4>
  1324. <div class="markdown level1 summary">
  1325. Sets the cursor position.
  1326. </div>
  1327. <div class="markdown level1 conceptual"></div>
  1328. <h5 class="decalaration">Declaration</h5>
  1329. <div class="codewrapper">
  1330. <pre><code class="lang-csharp hljs">public override void PositionCursor()</code></pre>
  1331. </div>
  1332. <h5 class="overrides">Overrides</h5>
  1333. <div><a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_PositionCursor">View.PositionCursor()</a></div>
  1334. <a id="Terminal_Gui_TextField_ProcessKey_" data-uid="Terminal.Gui.TextField.ProcessKey*"></a>
  1335. <h4 id="Terminal_Gui_TextField_ProcessKey_Terminal_Gui_KeyEvent_" data-uid="Terminal.Gui.TextField.ProcessKey(Terminal.Gui.KeyEvent)">ProcessKey(KeyEvent)</h4>
  1336. <div class="markdown level1 summary">
  1337. Processes key presses for the <a class="xref" href="Terminal.Gui.TextField.html">TextField</a>.
  1338. </div>
  1339. <div class="markdown level1 conceptual"></div>
  1340. <h5 class="decalaration">Declaration</h5>
  1341. <div class="codewrapper">
  1342. <pre><code class="lang-csharp hljs">public override bool ProcessKey(KeyEvent kb)</code></pre>
  1343. </div>
  1344. <h5 class="parameters">Parameters</h5>
  1345. <table class="table table-bordered table-striped table-condensed">
  1346. <thead>
  1347. <tr>
  1348. <th>Type</th>
  1349. <th>Name</th>
  1350. <th>Description</th>
  1351. </tr>
  1352. </thead>
  1353. <tbody>
  1354. <tr>
  1355. <td><a class="xref" href="Terminal.Gui.KeyEvent.html">KeyEvent</a></td>
  1356. <td><span class="parametername">kb</span></td>
  1357. <td></td>
  1358. </tr>
  1359. </tbody>
  1360. </table>
  1361. <h5 class="returns">Returns</h5>
  1362. <table class="table table-bordered table-striped table-condensed">
  1363. <thead>
  1364. <tr>
  1365. <th>Type</th>
  1366. <th>Description</th>
  1367. </tr>
  1368. </thead>
  1369. <tbody>
  1370. <tr>
  1371. <td><span class="xref">System.Boolean</span></td>
  1372. <td></td>
  1373. </tr>
  1374. </tbody>
  1375. </table>
  1376. <h5 class="overrides">Overrides</h5>
  1377. <div><a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_ProcessKey_Terminal_Gui_KeyEvent_">View.ProcessKey(KeyEvent)</a></div>
  1378. <h5 id="Terminal_Gui_TextField_ProcessKey_Terminal_Gui_KeyEvent__remarks">Remarks</h5>
  1379. <div class="markdown level1 remarks">
  1380. The <a class="xref" href="Terminal.Gui.TextField.html">TextField</a> control responds to the following keys:
  1381. <table><thead><tr><th>Keys</th><th>Function</th></tr></thead><tbody><tr><td><a class="xref" href="Terminal.Gui.Key.html#Terminal_Gui_Key_Delete">Delete</a>, <a class="xref" href="Terminal.Gui.Key.html#Terminal_Gui_Key_Backspace">Backspace</a></td><td>Deletes the character before cursor.</td></tr></tbody></table>
  1382. </div>
  1383. <a id="Terminal_Gui_TextField_Redraw_" data-uid="Terminal.Gui.TextField.Redraw*"></a>
  1384. <h4 id="Terminal_Gui_TextField_Redraw_Terminal_Gui_Rect_" data-uid="Terminal.Gui.TextField.Redraw(Terminal.Gui.Rect)">Redraw(Rect)</h4>
  1385. <div class="markdown level1 summary"></div>
  1386. <div class="markdown level1 conceptual"></div>
  1387. <h5 class="decalaration">Declaration</h5>
  1388. <div class="codewrapper">
  1389. <pre><code class="lang-csharp hljs">public override void Redraw(Rect bounds)</code></pre>
  1390. </div>
  1391. <h5 class="parameters">Parameters</h5>
  1392. <table class="table table-bordered table-striped table-condensed">
  1393. <thead>
  1394. <tr>
  1395. <th>Type</th>
  1396. <th>Name</th>
  1397. <th>Description</th>
  1398. </tr>
  1399. </thead>
  1400. <tbody>
  1401. <tr>
  1402. <td><a class="xref" href="Terminal.Gui.Rect.html">Rect</a></td>
  1403. <td><span class="parametername">bounds</span></td>
  1404. <td></td>
  1405. </tr>
  1406. </tbody>
  1407. </table>
  1408. <h5 class="overrides">Overrides</h5>
  1409. <div><a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Redraw_Terminal_Gui_Rect_">View.Redraw(Rect)</a></div>
  1410. <a id="Terminal_Gui_TextField_SelectAll_" data-uid="Terminal.Gui.TextField.SelectAll*"></a>
  1411. <h4 id="Terminal_Gui_TextField_SelectAll" data-uid="Terminal.Gui.TextField.SelectAll">SelectAll()</h4>
  1412. <div class="markdown level1 summary">
  1413. Selects all text.
  1414. </div>
  1415. <div class="markdown level1 conceptual"></div>
  1416. <h5 class="decalaration">Declaration</h5>
  1417. <div class="codewrapper">
  1418. <pre><code class="lang-csharp hljs">public void SelectAll()</code></pre>
  1419. </div>
  1420. <h3 id="events">Events
  1421. </h3>
  1422. <h4 id="Terminal_Gui_TextField_TextChanged" data-uid="Terminal.Gui.TextField.TextChanged">TextChanged</h4>
  1423. <div class="markdown level1 summary">
  1424. Changed event, raised when the text has changed.
  1425. </div>
  1426. <div class="markdown level1 conceptual"></div>
  1427. <h5 class="decalaration">Declaration</h5>
  1428. <div class="codewrapper">
  1429. <pre><code class="lang-csharp hljs">public event Action&lt;ustring&gt; TextChanged</code></pre>
  1430. </div>
  1431. <h5 class="eventType">Event Type</h5>
  1432. <table class="table table-bordered table-striped table-condensed">
  1433. <thead>
  1434. <tr>
  1435. <th>Type</th>
  1436. <th>Description</th>
  1437. </tr>
  1438. </thead>
  1439. <tbody>
  1440. <tr>
  1441. <td><span class="xref">System.Action</span>&lt;<span class="xref">NStack.ustring</span>&gt;</td>
  1442. <td></td>
  1443. </tr>
  1444. </tbody>
  1445. </table>
  1446. <h5 id="Terminal_Gui_TextField_TextChanged_remarks">Remarks</h5>
  1447. <div class="markdown level1 remarks">
  1448. This event is raised when the <a class="xref" href="Terminal.Gui.TextField.html#Terminal_Gui_TextField_Text">Text</a> changes.
  1449. </div>
  1450. <h4 id="Terminal_Gui_TextField_TextChanging" data-uid="Terminal.Gui.TextField.TextChanging">TextChanging</h4>
  1451. <div class="markdown level1 summary">
  1452. Changing event, raised before the <a class="xref" href="Terminal.Gui.TextField.html#Terminal_Gui_TextField_Text">Text</a> changes and can be canceled or changing the new text.
  1453. </div>
  1454. <div class="markdown level1 conceptual"></div>
  1455. <h5 class="decalaration">Declaration</h5>
  1456. <div class="codewrapper">
  1457. <pre><code class="lang-csharp hljs">public event Action&lt;TextChangingEventArgs&gt; TextChanging</code></pre>
  1458. </div>
  1459. <h5 class="eventType">Event Type</h5>
  1460. <table class="table table-bordered table-striped table-condensed">
  1461. <thead>
  1462. <tr>
  1463. <th>Type</th>
  1464. <th>Description</th>
  1465. </tr>
  1466. </thead>
  1467. <tbody>
  1468. <tr>
  1469. <td><span class="xref">System.Action</span>&lt;<a class="xref" href="Terminal.Gui.TextChangingEventArgs.html">TextChangingEventArgs</a>&gt;</td>
  1470. <td></td>
  1471. </tr>
  1472. </tbody>
  1473. </table>
  1474. <h3 id="implements">Implements</h3>
  1475. <div>
  1476. <span class="xref">System.IDisposable</span>
  1477. </div>
  1478. <div>
  1479. <span class="xref">System.ComponentModel.ISupportInitializeNotification</span>
  1480. </div>
  1481. <div>
  1482. <span class="xref">System.ComponentModel.ISupportInitialize</span>
  1483. </div>
  1484. </article>
  1485. </div>
  1486. <div class="hidden-sm col-md-2" role="complementary">
  1487. <div class="sideaffix">
  1488. <nav class="bs-docs-sidebar hidden-print hidden-xs hidden-sm affix" id="affix">
  1489. <h5>In This Article</h5>
  1490. <div></div>
  1491. </nav>
  1492. </div>
  1493. </div>
  1494. </div>
  1495. </div>
  1496. <footer>
  1497. <div class="grad-bottom"></div>
  1498. <div class="footer">
  1499. <div class="container">
  1500. <span class="pull-right">
  1501. <a href="#top">Back to top</a>
  1502. </span>
  1503. <span>Generated by <strong>DocFX</strong></span>
  1504. </div>
  1505. </div>
  1506. </footer>
  1507. </div>
  1508. <script type="text/javascript" src="../../styles/docfx.vendor.js"></script>
  1509. <script type="text/javascript" src="../../styles/docfx.js"></script>
  1510. <script type="text/javascript" src="../../styles/main.js"></script>
  1511. </body>
  1512. </html>