Terminal.Gui.TextField.html 48 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258
  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.56.7.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_HotKey">View.HotKey</a>
  119. </div>
  120. <div>
  121. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_HotKeySpecifier">View.HotKeySpecifier</a>
  122. </div>
  123. <div>
  124. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Shortcut">View.Shortcut</a>
  125. </div>
  126. <div>
  127. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_ShortcutTag">View.ShortcutTag</a>
  128. </div>
  129. <div>
  130. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_ShortcutAction">View.ShortcutAction</a>
  131. </div>
  132. <div>
  133. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Data">View.Data</a>
  134. </div>
  135. <div>
  136. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Driver">View.Driver</a>
  137. </div>
  138. <div>
  139. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Subviews">View.Subviews</a>
  140. </div>
  141. <div>
  142. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_TabIndexes">View.TabIndexes</a>
  143. </div>
  144. <div>
  145. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_TabIndex">View.TabIndex</a>
  146. </div>
  147. <div>
  148. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_TabStop">View.TabStop</a>
  149. </div>
  150. <div>
  151. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Id">View.Id</a>
  152. </div>
  153. <div>
  154. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_IsCurrentTop">View.IsCurrentTop</a>
  155. </div>
  156. <div>
  157. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_WantMousePositionReports">View.WantMousePositionReports</a>
  158. </div>
  159. <div>
  160. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_WantContinuousButtonPressed">View.WantContinuousButtonPressed</a>
  161. </div>
  162. <div>
  163. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_LayoutStyle">View.LayoutStyle</a>
  164. </div>
  165. <div>
  166. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Bounds">View.Bounds</a>
  167. </div>
  168. <div>
  169. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_X">View.X</a>
  170. </div>
  171. <div>
  172. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Y">View.Y</a>
  173. </div>
  174. <div>
  175. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Width">View.Width</a>
  176. </div>
  177. <div>
  178. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Height">View.Height</a>
  179. </div>
  180. <div>
  181. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_SuperView">View.SuperView</a>
  182. </div>
  183. <div>
  184. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_SetNeedsDisplay">View.SetNeedsDisplay()</a>
  185. </div>
  186. <div>
  187. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_ClearLayoutNeeded">View.ClearLayoutNeeded()</a>
  188. </div>
  189. <div>
  190. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_SetNeedsDisplay_Terminal_Gui_Rect_">View.SetNeedsDisplay(Rect)</a>
  191. </div>
  192. <div>
  193. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_SetChildNeedsDisplay">View.SetChildNeedsDisplay()</a>
  194. </div>
  195. <div>
  196. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Add_Terminal_Gui_View_">View.Add(View)</a>
  197. </div>
  198. <div>
  199. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Add_Terminal_Gui_View___">View.Add(View[])</a>
  200. </div>
  201. <div>
  202. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_RemoveAll">View.RemoveAll()</a>
  203. </div>
  204. <div>
  205. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Remove_Terminal_Gui_View_">View.Remove(View)</a>
  206. </div>
  207. <div>
  208. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_BringSubviewToFront_Terminal_Gui_View_">View.BringSubviewToFront(View)</a>
  209. </div>
  210. <div>
  211. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_SendSubviewToBack_Terminal_Gui_View_">View.SendSubviewToBack(View)</a>
  212. </div>
  213. <div>
  214. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_SendSubviewBackwards_Terminal_Gui_View_">View.SendSubviewBackwards(View)</a>
  215. </div>
  216. <div>
  217. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_BringSubviewForward_Terminal_Gui_View_">View.BringSubviewForward(View)</a>
  218. </div>
  219. <div>
  220. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Clear">View.Clear()</a>
  221. </div>
  222. <div>
  223. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Clear_Terminal_Gui_Rect_">View.Clear(Rect)</a>
  224. </div>
  225. <div>
  226. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_ScreenToView_System_Int32_System_Int32_">View.ScreenToView(Int32, Int32)</a>
  227. </div>
  228. <div>
  229. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_ClipToBounds">View.ClipToBounds()</a>
  230. </div>
  231. <div>
  232. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_SetClip_Terminal_Gui_Rect_">View.SetClip(Rect)</a>
  233. </div>
  234. <div>
  235. <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>
  236. </div>
  237. <div>
  238. <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>
  239. </div>
  240. <div>
  241. <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>
  242. </div>
  243. <div>
  244. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Move_System_Int32_System_Int32_">View.Move(Int32, Int32)</a>
  245. </div>
  246. <div>
  247. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_HasFocus">View.HasFocus</a>
  248. </div>
  249. <div>
  250. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_OnAdded_Terminal_Gui_View_">View.OnAdded(View)</a>
  251. </div>
  252. <div>
  253. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_OnRemoved_Terminal_Gui_View_">View.OnRemoved(View)</a>
  254. </div>
  255. <div>
  256. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Focused">View.Focused</a>
  257. </div>
  258. <div>
  259. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_MostFocused">View.MostFocused</a>
  260. </div>
  261. <div>
  262. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_ColorScheme">View.ColorScheme</a>
  263. </div>
  264. <div>
  265. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_AddRune_System_Int32_System_Int32_System_Rune_">View.AddRune(Int32, Int32, Rune)</a>
  266. </div>
  267. <div>
  268. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_ClearNeedsDisplay">View.ClearNeedsDisplay()</a>
  269. </div>
  270. <div>
  271. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_DrawContent">View.DrawContent</a>
  272. </div>
  273. <div>
  274. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_OnDrawContent_Terminal_Gui_Rect_">View.OnDrawContent(Rect)</a>
  275. </div>
  276. <div>
  277. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_SetFocus">View.SetFocus()</a>
  278. </div>
  279. <div>
  280. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_KeyPress">View.KeyPress</a>
  281. </div>
  282. <div>
  283. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_ProcessHotKey_Terminal_Gui_KeyEvent_">View.ProcessHotKey(KeyEvent)</a>
  284. </div>
  285. <div>
  286. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_ProcessColdKey_Terminal_Gui_KeyEvent_">View.ProcessColdKey(KeyEvent)</a>
  287. </div>
  288. <div>
  289. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_KeyDown">View.KeyDown</a>
  290. </div>
  291. <div>
  292. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_OnKeyDown_Terminal_Gui_KeyEvent_">View.OnKeyDown(KeyEvent)</a>
  293. </div>
  294. <div>
  295. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_KeyUp">View.KeyUp</a>
  296. </div>
  297. <div>
  298. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_OnKeyUp_Terminal_Gui_KeyEvent_">View.OnKeyUp(KeyEvent)</a>
  299. </div>
  300. <div>
  301. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_EnsureFocus">View.EnsureFocus()</a>
  302. </div>
  303. <div>
  304. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_FocusFirst">View.FocusFirst()</a>
  305. </div>
  306. <div>
  307. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_FocusLast">View.FocusLast()</a>
  308. </div>
  309. <div>
  310. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_FocusPrev">View.FocusPrev()</a>
  311. </div>
  312. <div>
  313. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_FocusNext">View.FocusNext()</a>
  314. </div>
  315. <div>
  316. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_LayoutStarted">View.LayoutStarted</a>
  317. </div>
  318. <div>
  319. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_LayoutComplete">View.LayoutComplete</a>
  320. </div>
  321. <div>
  322. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Initialized">View.Initialized</a>
  323. </div>
  324. <div>
  325. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_LayoutSubviews">View.LayoutSubviews()</a>
  326. </div>
  327. <div>
  328. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_AutoSize">View.AutoSize</a>
  329. </div>
  330. <div>
  331. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_TextAlignment">View.TextAlignment</a>
  332. </div>
  333. <div>
  334. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_IsInitialized">View.IsInitialized</a>
  335. </div>
  336. <div>
  337. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_ToString">View.ToString()</a>
  338. </div>
  339. <div>
  340. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_OnMouseEnter_Terminal_Gui_MouseEvent_">View.OnMouseEnter(MouseEvent)</a>
  341. </div>
  342. <div>
  343. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_OnMouseLeave_Terminal_Gui_MouseEvent_">View.OnMouseLeave(MouseEvent)</a>
  344. </div>
  345. <div>
  346. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_OnMouseEvent_Terminal_Gui_MouseEvent_">View.OnMouseEvent(MouseEvent)</a>
  347. </div>
  348. <div>
  349. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_OnMouseClick_Terminal_Gui_View_MouseEventArgs_">View.OnMouseClick(View.MouseEventArgs)</a>
  350. </div>
  351. <div>
  352. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Dispose_System_Boolean_">View.Dispose(Boolean)</a>
  353. </div>
  354. <div>
  355. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_BeginInit">View.BeginInit()</a>
  356. </div>
  357. <div>
  358. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_EndInit">View.EndInit()</a>
  359. </div>
  360. <div>
  361. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Visible">View.Visible</a>
  362. </div>
  363. <div>
  364. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_SetWidth_System_Int32_System_Int32__">View.SetWidth(Int32, Int32)</a>
  365. </div>
  366. <div>
  367. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_SetHeight_System_Int32_System_Int32__">View.SetHeight(Int32, Int32)</a>
  368. </div>
  369. <div>
  370. <a class="xref" href="Terminal.Gui.Responder.html#Terminal_Gui_Responder_Dispose">Responder.Dispose()</a>
  371. </div>
  372. <div>
  373. <span class="xref">System.Object.Equals(System.Object)</span>
  374. </div>
  375. <div>
  376. <span class="xref">System.Object.Equals(System.Object, System.Object)</span>
  377. </div>
  378. <div>
  379. <span class="xref">System.Object.GetHashCode()</span>
  380. </div>
  381. <div>
  382. <span class="xref">System.Object.GetType()</span>
  383. </div>
  384. <div>
  385. <span class="xref">System.Object.MemberwiseClone()</span>
  386. </div>
  387. <div>
  388. <span class="xref">System.Object.ReferenceEquals(System.Object, System.Object)</span>
  389. </div>
  390. </div>
  391. <h6><strong>Namespace</strong>: <a class="xref" href="Terminal.Gui.html">Terminal.Gui</a></h6>
  392. <h6><strong>Assembly</strong>: Terminal.Gui.dll</h6>
  393. <h5 id="Terminal_Gui_TextField_syntax">Syntax</h5>
  394. <div class="codewrapper">
  395. <pre><code class="lang-csharp hljs">public class TextField : View, IDisposable, ISupportInitializeNotification, ISupportInitialize</code></pre>
  396. </div>
  397. <h5 id="Terminal_Gui_TextField_remarks"><strong>Remarks</strong></h5>
  398. <div class="markdown level0 remarks">
  399. 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.
  400. </div>
  401. <h3 id="constructors">Constructors
  402. </h3>
  403. <a id="Terminal_Gui_TextField__ctor_" data-uid="Terminal.Gui.TextField.#ctor*"></a>
  404. <h4 id="Terminal_Gui_TextField__ctor" data-uid="Terminal.Gui.TextField.#ctor">TextField()</h4>
  405. <div class="markdown level1 summary">
  406. 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.
  407. </div>
  408. <div class="markdown level1 conceptual"></div>
  409. <h5 class="decalaration">Declaration</h5>
  410. <div class="codewrapper">
  411. <pre><code class="lang-csharp hljs">public TextField()</code></pre>
  412. </div>
  413. <a id="Terminal_Gui_TextField__ctor_" data-uid="Terminal.Gui.TextField.#ctor*"></a>
  414. <h4 id="Terminal_Gui_TextField__ctor_NStack_ustring_" data-uid="Terminal.Gui.TextField.#ctor(NStack.ustring)">TextField(ustring)</h4>
  415. <div class="markdown level1 summary">
  416. 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.
  417. </div>
  418. <div class="markdown level1 conceptual"></div>
  419. <h5 class="decalaration">Declaration</h5>
  420. <div class="codewrapper">
  421. <pre><code class="lang-csharp hljs">public TextField(ustring text)</code></pre>
  422. </div>
  423. <h5 class="parameters">Parameters</h5>
  424. <table class="table table-bordered table-striped table-condensed">
  425. <thead>
  426. <tr>
  427. <th>Type</th>
  428. <th>Name</th>
  429. <th>Description</th>
  430. </tr>
  431. </thead>
  432. <tbody>
  433. <tr>
  434. <td><span class="xref">NStack.ustring</span></td>
  435. <td><span class="parametername">text</span></td>
  436. <td>Initial text contents.</td>
  437. </tr>
  438. </tbody>
  439. </table>
  440. <a id="Terminal_Gui_TextField__ctor_" data-uid="Terminal.Gui.TextField.#ctor*"></a>
  441. <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>
  442. <div class="markdown level1 summary">
  443. 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.
  444. </div>
  445. <div class="markdown level1 conceptual"></div>
  446. <h5 class="decalaration">Declaration</h5>
  447. <div class="codewrapper">
  448. <pre><code class="lang-csharp hljs">public TextField(int x, int y, int w, ustring text)</code></pre>
  449. </div>
  450. <h5 class="parameters">Parameters</h5>
  451. <table class="table table-bordered table-striped table-condensed">
  452. <thead>
  453. <tr>
  454. <th>Type</th>
  455. <th>Name</th>
  456. <th>Description</th>
  457. </tr>
  458. </thead>
  459. <tbody>
  460. <tr>
  461. <td><span class="xref">System.Int32</span></td>
  462. <td><span class="parametername">x</span></td>
  463. <td>The x coordinate.</td>
  464. </tr>
  465. <tr>
  466. <td><span class="xref">System.Int32</span></td>
  467. <td><span class="parametername">y</span></td>
  468. <td>The y coordinate.</td>
  469. </tr>
  470. <tr>
  471. <td><span class="xref">System.Int32</span></td>
  472. <td><span class="parametername">w</span></td>
  473. <td>The width.</td>
  474. </tr>
  475. <tr>
  476. <td><span class="xref">NStack.ustring</span></td>
  477. <td><span class="parametername">text</span></td>
  478. <td>Initial text contents.</td>
  479. </tr>
  480. </tbody>
  481. </table>
  482. <a id="Terminal_Gui_TextField__ctor_" data-uid="Terminal.Gui.TextField.#ctor*"></a>
  483. <h4 id="Terminal_Gui_TextField__ctor_System_String_" data-uid="Terminal.Gui.TextField.#ctor(System.String)">TextField(String)</h4>
  484. <div class="markdown level1 summary">
  485. 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.
  486. </div>
  487. <div class="markdown level1 conceptual"></div>
  488. <h5 class="decalaration">Declaration</h5>
  489. <div class="codewrapper">
  490. <pre><code class="lang-csharp hljs">public TextField(string text)</code></pre>
  491. </div>
  492. <h5 class="parameters">Parameters</h5>
  493. <table class="table table-bordered table-striped table-condensed">
  494. <thead>
  495. <tr>
  496. <th>Type</th>
  497. <th>Name</th>
  498. <th>Description</th>
  499. </tr>
  500. </thead>
  501. <tbody>
  502. <tr>
  503. <td><span class="xref">System.String</span></td>
  504. <td><span class="parametername">text</span></td>
  505. <td>Initial text contents.</td>
  506. </tr>
  507. </tbody>
  508. </table>
  509. <h3 id="properties">Properties
  510. </h3>
  511. <a id="Terminal_Gui_TextField_CanFocus_" data-uid="Terminal.Gui.TextField.CanFocus*"></a>
  512. <h4 id="Terminal_Gui_TextField_CanFocus" data-uid="Terminal.Gui.TextField.CanFocus">CanFocus</h4>
  513. <div class="markdown level1 summary"></div>
  514. <div class="markdown level1 conceptual"></div>
  515. <h5 class="decalaration">Declaration</h5>
  516. <div class="codewrapper">
  517. <pre><code class="lang-csharp hljs">public override bool CanFocus { get; set; }</code></pre>
  518. </div>
  519. <h5 class="propertyValue">Property Value</h5>
  520. <table class="table table-bordered table-striped table-condensed">
  521. <thead>
  522. <tr>
  523. <th>Type</th>
  524. <th>Description</th>
  525. </tr>
  526. </thead>
  527. <tbody>
  528. <tr>
  529. <td><span class="xref">System.Boolean</span></td>
  530. <td></td>
  531. </tr>
  532. </tbody>
  533. </table>
  534. <h5 class="overrides">Overrides</h5>
  535. <div><a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_CanFocus">View.CanFocus</a></div>
  536. <a id="Terminal_Gui_TextField_CursorPosition_" data-uid="Terminal.Gui.TextField.CursorPosition*"></a>
  537. <h4 id="Terminal_Gui_TextField_CursorPosition" data-uid="Terminal.Gui.TextField.CursorPosition">CursorPosition</h4>
  538. <div class="markdown level1 summary">
  539. Sets or gets the current cursor position.
  540. </div>
  541. <div class="markdown level1 conceptual"></div>
  542. <h5 class="decalaration">Declaration</h5>
  543. <div class="codewrapper">
  544. <pre><code class="lang-csharp hljs">public int CursorPosition { get; set; }</code></pre>
  545. </div>
  546. <h5 class="propertyValue">Property Value</h5>
  547. <table class="table table-bordered table-striped table-condensed">
  548. <thead>
  549. <tr>
  550. <th>Type</th>
  551. <th>Description</th>
  552. </tr>
  553. </thead>
  554. <tbody>
  555. <tr>
  556. <td><span class="xref">System.Int32</span></td>
  557. <td></td>
  558. </tr>
  559. </tbody>
  560. </table>
  561. <a id="Terminal_Gui_TextField_DesiredCursorVisibility_" data-uid="Terminal.Gui.TextField.DesiredCursorVisibility*"></a>
  562. <h4 id="Terminal_Gui_TextField_DesiredCursorVisibility" data-uid="Terminal.Gui.TextField.DesiredCursorVisibility">DesiredCursorVisibility</h4>
  563. <div class="markdown level1 summary">
  564. Get / Set the wished cursor when the field is focused
  565. </div>
  566. <div class="markdown level1 conceptual"></div>
  567. <h5 class="decalaration">Declaration</h5>
  568. <div class="codewrapper">
  569. <pre><code class="lang-csharp hljs">public CursorVisibility DesiredCursorVisibility { get; set; }</code></pre>
  570. </div>
  571. <h5 class="propertyValue">Property Value</h5>
  572. <table class="table table-bordered table-striped table-condensed">
  573. <thead>
  574. <tr>
  575. <th>Type</th>
  576. <th>Description</th>
  577. </tr>
  578. </thead>
  579. <tbody>
  580. <tr>
  581. <td><a class="xref" href="Terminal.Gui.CursorVisibility.html">CursorVisibility</a></td>
  582. <td></td>
  583. </tr>
  584. </tbody>
  585. </table>
  586. <a id="Terminal_Gui_TextField_Frame_" data-uid="Terminal.Gui.TextField.Frame*"></a>
  587. <h4 id="Terminal_Gui_TextField_Frame" data-uid="Terminal.Gui.TextField.Frame">Frame</h4>
  588. <div class="markdown level1 summary"></div>
  589. <div class="markdown level1 conceptual"></div>
  590. <h5 class="decalaration">Declaration</h5>
  591. <div class="codewrapper">
  592. <pre><code class="lang-csharp hljs">public override Rect Frame { get; set; }</code></pre>
  593. </div>
  594. <h5 class="propertyValue">Property Value</h5>
  595. <table class="table table-bordered table-striped table-condensed">
  596. <thead>
  597. <tr>
  598. <th>Type</th>
  599. <th>Description</th>
  600. </tr>
  601. </thead>
  602. <tbody>
  603. <tr>
  604. <td><a class="xref" href="Terminal.Gui.Rect.html">Rect</a></td>
  605. <td></td>
  606. </tr>
  607. </tbody>
  608. </table>
  609. <h5 class="overrides">Overrides</h5>
  610. <div><a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Frame">View.Frame</a></div>
  611. <a id="Terminal_Gui_TextField_ReadOnly_" data-uid="Terminal.Gui.TextField.ReadOnly*"></a>
  612. <h4 id="Terminal_Gui_TextField_ReadOnly" data-uid="Terminal.Gui.TextField.ReadOnly">ReadOnly</h4>
  613. <div class="markdown level1 summary">
  614. If set to true its not allow any changes in the text.
  615. </div>
  616. <div class="markdown level1 conceptual"></div>
  617. <h5 class="decalaration">Declaration</h5>
  618. <div class="codewrapper">
  619. <pre><code class="lang-csharp hljs">public bool ReadOnly { get; set; }</code></pre>
  620. </div>
  621. <h5 class="propertyValue">Property Value</h5>
  622. <table class="table table-bordered table-striped table-condensed">
  623. <thead>
  624. <tr>
  625. <th>Type</th>
  626. <th>Description</th>
  627. </tr>
  628. </thead>
  629. <tbody>
  630. <tr>
  631. <td><span class="xref">System.Boolean</span></td>
  632. <td></td>
  633. </tr>
  634. </tbody>
  635. </table>
  636. <a id="Terminal_Gui_TextField_Secret_" data-uid="Terminal.Gui.TextField.Secret*"></a>
  637. <h4 id="Terminal_Gui_TextField_Secret" data-uid="Terminal.Gui.TextField.Secret">Secret</h4>
  638. <div class="markdown level1 summary">
  639. Sets the secret property.
  640. </div>
  641. <div class="markdown level1 conceptual"></div>
  642. <h5 class="decalaration">Declaration</h5>
  643. <div class="codewrapper">
  644. <pre><code class="lang-csharp hljs">public bool Secret { get; set; }</code></pre>
  645. </div>
  646. <h5 class="propertyValue">Property Value</h5>
  647. <table class="table table-bordered table-striped table-condensed">
  648. <thead>
  649. <tr>
  650. <th>Type</th>
  651. <th>Description</th>
  652. </tr>
  653. </thead>
  654. <tbody>
  655. <tr>
  656. <td><span class="xref">System.Boolean</span></td>
  657. <td></td>
  658. </tr>
  659. </tbody>
  660. </table>
  661. <h5 id="Terminal_Gui_TextField_Secret_remarks">Remarks</h5>
  662. <div class="markdown level1 remarks">
  663. This makes the text entry suitable for entering passwords.
  664. </div>
  665. <a id="Terminal_Gui_TextField_SelectedLength_" data-uid="Terminal.Gui.TextField.SelectedLength*"></a>
  666. <h4 id="Terminal_Gui_TextField_SelectedLength" data-uid="Terminal.Gui.TextField.SelectedLength">SelectedLength</h4>
  667. <div class="markdown level1 summary">
  668. Length of the selected text.
  669. </div>
  670. <div class="markdown level1 conceptual"></div>
  671. <h5 class="decalaration">Declaration</h5>
  672. <div class="codewrapper">
  673. <pre><code class="lang-csharp hljs">public int SelectedLength { get; set; }</code></pre>
  674. </div>
  675. <h5 class="propertyValue">Property Value</h5>
  676. <table class="table table-bordered table-striped table-condensed">
  677. <thead>
  678. <tr>
  679. <th>Type</th>
  680. <th>Description</th>
  681. </tr>
  682. </thead>
  683. <tbody>
  684. <tr>
  685. <td><span class="xref">System.Int32</span></td>
  686. <td></td>
  687. </tr>
  688. </tbody>
  689. </table>
  690. <a id="Terminal_Gui_TextField_SelectedStart_" data-uid="Terminal.Gui.TextField.SelectedStart*"></a>
  691. <h4 id="Terminal_Gui_TextField_SelectedStart" data-uid="Terminal.Gui.TextField.SelectedStart">SelectedStart</h4>
  692. <div class="markdown level1 summary">
  693. Start position of the selected text.
  694. </div>
  695. <div class="markdown level1 conceptual"></div>
  696. <h5 class="decalaration">Declaration</h5>
  697. <div class="codewrapper">
  698. <pre><code class="lang-csharp hljs">public int SelectedStart { get; set; }</code></pre>
  699. </div>
  700. <h5 class="propertyValue">Property Value</h5>
  701. <table class="table table-bordered table-striped table-condensed">
  702. <thead>
  703. <tr>
  704. <th>Type</th>
  705. <th>Description</th>
  706. </tr>
  707. </thead>
  708. <tbody>
  709. <tr>
  710. <td><span class="xref">System.Int32</span></td>
  711. <td></td>
  712. </tr>
  713. </tbody>
  714. </table>
  715. <a id="Terminal_Gui_TextField_SelectedText_" data-uid="Terminal.Gui.TextField.SelectedText*"></a>
  716. <h4 id="Terminal_Gui_TextField_SelectedText" data-uid="Terminal.Gui.TextField.SelectedText">SelectedText</h4>
  717. <div class="markdown level1 summary">
  718. The selected text.
  719. </div>
  720. <div class="markdown level1 conceptual"></div>
  721. <h5 class="decalaration">Declaration</h5>
  722. <div class="codewrapper">
  723. <pre><code class="lang-csharp hljs">public ustring SelectedText { get; set; }</code></pre>
  724. </div>
  725. <h5 class="propertyValue">Property Value</h5>
  726. <table class="table table-bordered table-striped table-condensed">
  727. <thead>
  728. <tr>
  729. <th>Type</th>
  730. <th>Description</th>
  731. </tr>
  732. </thead>
  733. <tbody>
  734. <tr>
  735. <td><span class="xref">NStack.ustring</span></td>
  736. <td></td>
  737. </tr>
  738. </tbody>
  739. </table>
  740. <a id="Terminal_Gui_TextField_Text_" data-uid="Terminal.Gui.TextField.Text*"></a>
  741. <h4 id="Terminal_Gui_TextField_Text" data-uid="Terminal.Gui.TextField.Text">Text</h4>
  742. <div class="markdown level1 summary">
  743. Sets or gets the text held by the view.
  744. </div>
  745. <div class="markdown level1 conceptual"></div>
  746. <h5 class="decalaration">Declaration</h5>
  747. <div class="codewrapper">
  748. <pre><code class="lang-csharp hljs">public ustring Text { get; set; }</code></pre>
  749. </div>
  750. <h5 class="propertyValue">Property Value</h5>
  751. <table class="table table-bordered table-striped table-condensed">
  752. <thead>
  753. <tr>
  754. <th>Type</th>
  755. <th>Description</th>
  756. </tr>
  757. </thead>
  758. <tbody>
  759. <tr>
  760. <td><span class="xref">NStack.ustring</span></td>
  761. <td></td>
  762. </tr>
  763. </tbody>
  764. </table>
  765. <h5 id="Terminal_Gui_TextField_Text_remarks">Remarks</h5>
  766. <div class="markdown level1 remarks">
  767. </div>
  768. <a id="Terminal_Gui_TextField_Used_" data-uid="Terminal.Gui.TextField.Used*"></a>
  769. <h4 id="Terminal_Gui_TextField_Used" data-uid="Terminal.Gui.TextField.Used">Used</h4>
  770. <div class="markdown level1 summary">
  771. 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
  772. </div>
  773. <div class="markdown level1 conceptual"></div>
  774. <h5 class="decalaration">Declaration</h5>
  775. <div class="codewrapper">
  776. <pre><code class="lang-csharp hljs">public bool Used { get; set; }</code></pre>
  777. </div>
  778. <h5 class="propertyValue">Property Value</h5>
  779. <table class="table table-bordered table-striped table-condensed">
  780. <thead>
  781. <tr>
  782. <th>Type</th>
  783. <th>Description</th>
  784. </tr>
  785. </thead>
  786. <tbody>
  787. <tr>
  788. <td><span class="xref">System.Boolean</span></td>
  789. <td></td>
  790. </tr>
  791. </tbody>
  792. </table>
  793. <h3 id="methods">Methods
  794. </h3>
  795. <a id="Terminal_Gui_TextField_ClearAllSelection_" data-uid="Terminal.Gui.TextField.ClearAllSelection*"></a>
  796. <h4 id="Terminal_Gui_TextField_ClearAllSelection" data-uid="Terminal.Gui.TextField.ClearAllSelection">ClearAllSelection()</h4>
  797. <div class="markdown level1 summary">
  798. Clear the selected 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 void ClearAllSelection()</code></pre>
  804. </div>
  805. <a id="Terminal_Gui_TextField_Copy_" data-uid="Terminal.Gui.TextField.Copy*"></a>
  806. <h4 id="Terminal_Gui_TextField_Copy" data-uid="Terminal.Gui.TextField.Copy">Copy()</h4>
  807. <div class="markdown level1 summary">
  808. Copy the selected text to the clipboard.
  809. </div>
  810. <div class="markdown level1 conceptual"></div>
  811. <h5 class="decalaration">Declaration</h5>
  812. <div class="codewrapper">
  813. <pre><code class="lang-csharp hljs">public virtual void Copy()</code></pre>
  814. </div>
  815. <a id="Terminal_Gui_TextField_Cut_" data-uid="Terminal.Gui.TextField.Cut*"></a>
  816. <h4 id="Terminal_Gui_TextField_Cut" data-uid="Terminal.Gui.TextField.Cut">Cut()</h4>
  817. <div class="markdown level1 summary">
  818. Cut the selected text to the clipboard.
  819. </div>
  820. <div class="markdown level1 conceptual"></div>
  821. <h5 class="decalaration">Declaration</h5>
  822. <div class="codewrapper">
  823. <pre><code class="lang-csharp hljs">public virtual void Cut()</code></pre>
  824. </div>
  825. <a id="Terminal_Gui_TextField_MouseEvent_" data-uid="Terminal.Gui.TextField.MouseEvent*"></a>
  826. <h4 id="Terminal_Gui_TextField_MouseEvent_Terminal_Gui_MouseEvent_" data-uid="Terminal.Gui.TextField.MouseEvent(Terminal.Gui.MouseEvent)">MouseEvent(MouseEvent)</h4>
  827. <div class="markdown level1 summary"></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 override bool MouseEvent(MouseEvent ev)</code></pre>
  832. </div>
  833. <h5 class="parameters">Parameters</h5>
  834. <table class="table table-bordered table-striped table-condensed">
  835. <thead>
  836. <tr>
  837. <th>Type</th>
  838. <th>Name</th>
  839. <th>Description</th>
  840. </tr>
  841. </thead>
  842. <tbody>
  843. <tr>
  844. <td><a class="xref" href="Terminal.Gui.MouseEvent.html">MouseEvent</a></td>
  845. <td><span class="parametername">ev</span></td>
  846. <td></td>
  847. </tr>
  848. </tbody>
  849. </table>
  850. <h5 class="returns">Returns</h5>
  851. <table class="table table-bordered table-striped table-condensed">
  852. <thead>
  853. <tr>
  854. <th>Type</th>
  855. <th>Description</th>
  856. </tr>
  857. </thead>
  858. <tbody>
  859. <tr>
  860. <td><span class="xref">System.Boolean</span></td>
  861. <td></td>
  862. </tr>
  863. </tbody>
  864. </table>
  865. <h5 class="overrides">Overrides</h5>
  866. <div><a class="xref" href="Terminal.Gui.Responder.html#Terminal_Gui_Responder_MouseEvent_Terminal_Gui_MouseEvent_">Responder.MouseEvent(MouseEvent)</a></div>
  867. <a id="Terminal_Gui_TextField_OnEnter_" data-uid="Terminal.Gui.TextField.OnEnter*"></a>
  868. <h4 id="Terminal_Gui_TextField_OnEnter_Terminal_Gui_View_" data-uid="Terminal.Gui.TextField.OnEnter(Terminal.Gui.View)">OnEnter(View)</h4>
  869. <div class="markdown level1 summary"></div>
  870. <div class="markdown level1 conceptual"></div>
  871. <h5 class="decalaration">Declaration</h5>
  872. <div class="codewrapper">
  873. <pre><code class="lang-csharp hljs">public override bool OnEnter(View view)</code></pre>
  874. </div>
  875. <h5 class="parameters">Parameters</h5>
  876. <table class="table table-bordered table-striped table-condensed">
  877. <thead>
  878. <tr>
  879. <th>Type</th>
  880. <th>Name</th>
  881. <th>Description</th>
  882. </tr>
  883. </thead>
  884. <tbody>
  885. <tr>
  886. <td><a class="xref" href="Terminal.Gui.View.html">View</a></td>
  887. <td><span class="parametername">view</span></td>
  888. <td></td>
  889. </tr>
  890. </tbody>
  891. </table>
  892. <h5 class="returns">Returns</h5>
  893. <table class="table table-bordered table-striped table-condensed">
  894. <thead>
  895. <tr>
  896. <th>Type</th>
  897. <th>Description</th>
  898. </tr>
  899. </thead>
  900. <tbody>
  901. <tr>
  902. <td><span class="xref">System.Boolean</span></td>
  903. <td></td>
  904. </tr>
  905. </tbody>
  906. </table>
  907. <h5 class="overrides">Overrides</h5>
  908. <div><a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_OnEnter_Terminal_Gui_View_">View.OnEnter(View)</a></div>
  909. <a id="Terminal_Gui_TextField_OnLeave_" data-uid="Terminal.Gui.TextField.OnLeave*"></a>
  910. <h4 id="Terminal_Gui_TextField_OnLeave_Terminal_Gui_View_" data-uid="Terminal.Gui.TextField.OnLeave(Terminal.Gui.View)">OnLeave(View)</h4>
  911. <div class="markdown level1 summary"></div>
  912. <div class="markdown level1 conceptual"></div>
  913. <h5 class="decalaration">Declaration</h5>
  914. <div class="codewrapper">
  915. <pre><code class="lang-csharp hljs">public override bool OnLeave(View view)</code></pre>
  916. </div>
  917. <h5 class="parameters">Parameters</h5>
  918. <table class="table table-bordered table-striped table-condensed">
  919. <thead>
  920. <tr>
  921. <th>Type</th>
  922. <th>Name</th>
  923. <th>Description</th>
  924. </tr>
  925. </thead>
  926. <tbody>
  927. <tr>
  928. <td><a class="xref" href="Terminal.Gui.View.html">View</a></td>
  929. <td><span class="parametername">view</span></td>
  930. <td></td>
  931. </tr>
  932. </tbody>
  933. </table>
  934. <h5 class="returns">Returns</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">System.Boolean</span></td>
  945. <td></td>
  946. </tr>
  947. </tbody>
  948. </table>
  949. <h5 class="overrides">Overrides</h5>
  950. <div><a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_OnLeave_Terminal_Gui_View_">View.OnLeave(View)</a></div>
  951. <a id="Terminal_Gui_TextField_OnTextChanging_" data-uid="Terminal.Gui.TextField.OnTextChanging*"></a>
  952. <h4 id="Terminal_Gui_TextField_OnTextChanging_NStack_ustring_" data-uid="Terminal.Gui.TextField.OnTextChanging(NStack.ustring)">OnTextChanging(ustring)</h4>
  953. <div class="markdown level1 summary">
  954. 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.
  955. </div>
  956. <div class="markdown level1 conceptual"></div>
  957. <h5 class="decalaration">Declaration</h5>
  958. <div class="codewrapper">
  959. <pre><code class="lang-csharp hljs">public virtual TextChangingEventArgs OnTextChanging(ustring newText)</code></pre>
  960. </div>
  961. <h5 class="parameters">Parameters</h5>
  962. <table class="table table-bordered table-striped table-condensed">
  963. <thead>
  964. <tr>
  965. <th>Type</th>
  966. <th>Name</th>
  967. <th>Description</th>
  968. </tr>
  969. </thead>
  970. <tbody>
  971. <tr>
  972. <td><span class="xref">NStack.ustring</span></td>
  973. <td><span class="parametername">newText</span></td>
  974. <td>The new text to be replaced.</td>
  975. </tr>
  976. </tbody>
  977. </table>
  978. <h5 class="returns">Returns</h5>
  979. <table class="table table-bordered table-striped table-condensed">
  980. <thead>
  981. <tr>
  982. <th>Type</th>
  983. <th>Description</th>
  984. </tr>
  985. </thead>
  986. <tbody>
  987. <tr>
  988. <td><a class="xref" href="Terminal.Gui.TextChangingEventArgs.html">TextChangingEventArgs</a></td>
  989. <td>Returns the <a class="xref" href="Terminal.Gui.TextChangingEventArgs.html">TextChangingEventArgs</a></td>
  990. </tr>
  991. </tbody>
  992. </table>
  993. <a id="Terminal_Gui_TextField_Paste_" data-uid="Terminal.Gui.TextField.Paste*"></a>
  994. <h4 id="Terminal_Gui_TextField_Paste" data-uid="Terminal.Gui.TextField.Paste">Paste()</h4>
  995. <div class="markdown level1 summary">
  996. Paste the selected text from the clipboard.
  997. </div>
  998. <div class="markdown level1 conceptual"></div>
  999. <h5 class="decalaration">Declaration</h5>
  1000. <div class="codewrapper">
  1001. <pre><code class="lang-csharp hljs">public virtual void Paste()</code></pre>
  1002. </div>
  1003. <a id="Terminal_Gui_TextField_PositionCursor_" data-uid="Terminal.Gui.TextField.PositionCursor*"></a>
  1004. <h4 id="Terminal_Gui_TextField_PositionCursor" data-uid="Terminal.Gui.TextField.PositionCursor">PositionCursor()</h4>
  1005. <div class="markdown level1 summary">
  1006. Sets the cursor position.
  1007. </div>
  1008. <div class="markdown level1 conceptual"></div>
  1009. <h5 class="decalaration">Declaration</h5>
  1010. <div class="codewrapper">
  1011. <pre><code class="lang-csharp hljs">public override void PositionCursor()</code></pre>
  1012. </div>
  1013. <h5 class="overrides">Overrides</h5>
  1014. <div><a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_PositionCursor">View.PositionCursor()</a></div>
  1015. <a id="Terminal_Gui_TextField_ProcessKey_" data-uid="Terminal.Gui.TextField.ProcessKey*"></a>
  1016. <h4 id="Terminal_Gui_TextField_ProcessKey_Terminal_Gui_KeyEvent_" data-uid="Terminal.Gui.TextField.ProcessKey(Terminal.Gui.KeyEvent)">ProcessKey(KeyEvent)</h4>
  1017. <div class="markdown level1 summary">
  1018. Processes key presses for the <a class="xref" href="Terminal.Gui.TextField.html">TextField</a>.
  1019. </div>
  1020. <div class="markdown level1 conceptual"></div>
  1021. <h5 class="decalaration">Declaration</h5>
  1022. <div class="codewrapper">
  1023. <pre><code class="lang-csharp hljs">public override bool ProcessKey(KeyEvent kb)</code></pre>
  1024. </div>
  1025. <h5 class="parameters">Parameters</h5>
  1026. <table class="table table-bordered table-striped table-condensed">
  1027. <thead>
  1028. <tr>
  1029. <th>Type</th>
  1030. <th>Name</th>
  1031. <th>Description</th>
  1032. </tr>
  1033. </thead>
  1034. <tbody>
  1035. <tr>
  1036. <td><a class="xref" href="Terminal.Gui.KeyEvent.html">KeyEvent</a></td>
  1037. <td><span class="parametername">kb</span></td>
  1038. <td></td>
  1039. </tr>
  1040. </tbody>
  1041. </table>
  1042. <h5 class="returns">Returns</h5>
  1043. <table class="table table-bordered table-striped table-condensed">
  1044. <thead>
  1045. <tr>
  1046. <th>Type</th>
  1047. <th>Description</th>
  1048. </tr>
  1049. </thead>
  1050. <tbody>
  1051. <tr>
  1052. <td><span class="xref">System.Boolean</span></td>
  1053. <td></td>
  1054. </tr>
  1055. </tbody>
  1056. </table>
  1057. <h5 class="overrides">Overrides</h5>
  1058. <div><a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_ProcessKey_Terminal_Gui_KeyEvent_">View.ProcessKey(KeyEvent)</a></div>
  1059. <h5 id="Terminal_Gui_TextField_ProcessKey_Terminal_Gui_KeyEvent__remarks">Remarks</h5>
  1060. <div class="markdown level1 remarks">
  1061. The <a class="xref" href="Terminal.Gui.TextField.html">TextField</a> control responds to the following keys:
  1062. <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>
  1063. </div>
  1064. <a id="Terminal_Gui_TextField_Redraw_" data-uid="Terminal.Gui.TextField.Redraw*"></a>
  1065. <h4 id="Terminal_Gui_TextField_Redraw_Terminal_Gui_Rect_" data-uid="Terminal.Gui.TextField.Redraw(Terminal.Gui.Rect)">Redraw(Rect)</h4>
  1066. <div class="markdown level1 summary"></div>
  1067. <div class="markdown level1 conceptual"></div>
  1068. <h5 class="decalaration">Declaration</h5>
  1069. <div class="codewrapper">
  1070. <pre><code class="lang-csharp hljs">public override void Redraw(Rect bounds)</code></pre>
  1071. </div>
  1072. <h5 class="parameters">Parameters</h5>
  1073. <table class="table table-bordered table-striped table-condensed">
  1074. <thead>
  1075. <tr>
  1076. <th>Type</th>
  1077. <th>Name</th>
  1078. <th>Description</th>
  1079. </tr>
  1080. </thead>
  1081. <tbody>
  1082. <tr>
  1083. <td><a class="xref" href="Terminal.Gui.Rect.html">Rect</a></td>
  1084. <td><span class="parametername">bounds</span></td>
  1085. <td></td>
  1086. </tr>
  1087. </tbody>
  1088. </table>
  1089. <h5 class="overrides">Overrides</h5>
  1090. <div><a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Redraw_Terminal_Gui_Rect_">View.Redraw(Rect)</a></div>
  1091. <h3 id="events">Events
  1092. </h3>
  1093. <h4 id="Terminal_Gui_TextField_TextChanged" data-uid="Terminal.Gui.TextField.TextChanged">TextChanged</h4>
  1094. <div class="markdown level1 summary">
  1095. Changed event, raised when the text has changed.
  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 event Action&lt;ustring&gt; TextChanged</code></pre>
  1101. </div>
  1102. <h5 class="eventType">Event Type</h5>
  1103. <table class="table table-bordered table-striped table-condensed">
  1104. <thead>
  1105. <tr>
  1106. <th>Type</th>
  1107. <th>Description</th>
  1108. </tr>
  1109. </thead>
  1110. <tbody>
  1111. <tr>
  1112. <td><span class="xref">System.Action</span>&lt;<span class="xref">NStack.ustring</span>&gt;</td>
  1113. <td></td>
  1114. </tr>
  1115. </tbody>
  1116. </table>
  1117. <h5 id="Terminal_Gui_TextField_TextChanged_remarks">Remarks</h5>
  1118. <div class="markdown level1 remarks">
  1119. This event is raised when the <a class="xref" href="Terminal.Gui.TextField.html#Terminal_Gui_TextField_Text">Text</a> changes.
  1120. </div>
  1121. <h4 id="Terminal_Gui_TextField_TextChanging" data-uid="Terminal.Gui.TextField.TextChanging">TextChanging</h4>
  1122. <div class="markdown level1 summary">
  1123. 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.
  1124. </div>
  1125. <div class="markdown level1 conceptual"></div>
  1126. <h5 class="decalaration">Declaration</h5>
  1127. <div class="codewrapper">
  1128. <pre><code class="lang-csharp hljs">public event Action&lt;TextChangingEventArgs&gt; TextChanging</code></pre>
  1129. </div>
  1130. <h5 class="eventType">Event Type</h5>
  1131. <table class="table table-bordered table-striped table-condensed">
  1132. <thead>
  1133. <tr>
  1134. <th>Type</th>
  1135. <th>Description</th>
  1136. </tr>
  1137. </thead>
  1138. <tbody>
  1139. <tr>
  1140. <td><span class="xref">System.Action</span>&lt;<a class="xref" href="Terminal.Gui.TextChangingEventArgs.html">TextChangingEventArgs</a>&gt;</td>
  1141. <td></td>
  1142. </tr>
  1143. </tbody>
  1144. </table>
  1145. <h3 id="implements">Implements</h3>
  1146. <div>
  1147. <span class="xref">System.IDisposable</span>
  1148. </div>
  1149. <div>
  1150. <span class="xref">System.ComponentModel.ISupportInitializeNotification</span>
  1151. </div>
  1152. <div>
  1153. <span class="xref">System.ComponentModel.ISupportInitialize</span>
  1154. </div>
  1155. </article>
  1156. </div>
  1157. <div class="hidden-sm col-md-2" role="complementary">
  1158. <div class="sideaffix">
  1159. <div class="contribution">
  1160. <ul class="nav">
  1161. </ul>
  1162. </div>
  1163. <nav class="bs-docs-sidebar hidden-print hidden-xs hidden-sm affix" id="affix">
  1164. <h5>In This Article</h5>
  1165. <div></div>
  1166. </nav>
  1167. </div>
  1168. </div>
  1169. </div>
  1170. </div>
  1171. <footer>
  1172. <div class="grad-bottom"></div>
  1173. <div class="footer">
  1174. <div class="container">
  1175. <span class="pull-right">
  1176. <a href="#top">Back to top</a>
  1177. </span>
  1178. <span>Generated by <strong>DocFX</strong></span>
  1179. </div>
  1180. </div>
  1181. </footer>
  1182. </div>
  1183. <script type="text/javascript" src="../../styles/docfx.vendor.js"></script>
  1184. <script type="text/javascript" src="../../styles/docfx.js"></script>
  1185. <script type="text/javascript" src="../../styles/main.js"></script>
  1186. </body>
  1187. </html>