Terminal.Gui.TextField.html 62 KB

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