Terminal.Gui.TextField.html 40 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038
  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.54.0.0">
  13. <link rel="shortcut icon" href="../../favicon.ico">
  14. <link rel="stylesheet" href="../../styles/docfx.vendor.css">
  15. <link rel="stylesheet" href="../../styles/docfx.css">
  16. <link rel="stylesheet" href="../../styles/main.css">
  17. <meta property="docfx:navrel" content="../../toc.html">
  18. <meta property="docfx:tocrel" content="toc.html">
  19. <meta property="docfx:rel" content="../../">
  20. </head>
  21. <body data-spy="scroll" data-target="#affix" data-offset="120">
  22. <div id="wrapper">
  23. <header>
  24. <nav id="autocollapse" class="navbar navbar-inverse ng-scope" role="navigation">
  25. <div class="container">
  26. <div class="navbar-header">
  27. <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar">
  28. <span class="sr-only">Toggle navigation</span>
  29. <span class="icon-bar"></span>
  30. <span class="icon-bar"></span>
  31. <span class="icon-bar"></span>
  32. </button>
  33. <a class="navbar-brand" href="../../index.html">
  34. <img id="logo" class="svg" src="../../images/logo48.png" alt="">
  35. </a>
  36. </div>
  37. <div class="collapse navbar-collapse" id="navbar">
  38. <form class="navbar-form navbar-right" role="search" id="search">
  39. <div class="form-group">
  40. <input type="text" class="form-control" id="search-query" placeholder="Search" autocomplete="off">
  41. </div>
  42. </form>
  43. </div>
  44. </div>
  45. </nav>
  46. <div class="subnav navbar navbar-default">
  47. <div class="container hide-when-search" id="breadcrumb">
  48. <ul class="breadcrumb">
  49. <li></li>
  50. </ul>
  51. </div>
  52. </div>
  53. </header>
  54. <div class="container body-content">
  55. <div id="search-results">
  56. <div class="search-list"></div>
  57. <div class="sr-items">
  58. <p><i class="glyphicon glyphicon-refresh index-loading"></i></p>
  59. </div>
  60. <ul id="pagination"></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.Collections.IEnumerable</span></div>
  91. </div>
  92. <div class="inheritedMembers">
  93. <h5>Inherited Members</h5>
  94. <div>
  95. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Enter">View.Enter</a>
  96. </div>
  97. <div>
  98. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Leave">View.Leave</a>
  99. </div>
  100. <div>
  101. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_MouseEnter">View.MouseEnter</a>
  102. </div>
  103. <div>
  104. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_MouseLeave">View.MouseLeave</a>
  105. </div>
  106. <div>
  107. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_MouseClick">View.MouseClick</a>
  108. </div>
  109. <div>
  110. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Driver">View.Driver</a>
  111. </div>
  112. <div>
  113. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Subviews">View.Subviews</a>
  114. </div>
  115. <div>
  116. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Id">View.Id</a>
  117. </div>
  118. <div>
  119. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_IsCurrentTop">View.IsCurrentTop</a>
  120. </div>
  121. <div>
  122. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_WantMousePositionReports">View.WantMousePositionReports</a>
  123. </div>
  124. <div>
  125. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_WantContinuousButtonPressed">View.WantContinuousButtonPressed</a>
  126. </div>
  127. <div>
  128. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_GetEnumerator">View.GetEnumerator()</a>
  129. </div>
  130. <div>
  131. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_LayoutStyle">View.LayoutStyle</a>
  132. </div>
  133. <div>
  134. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Bounds">View.Bounds</a>
  135. </div>
  136. <div>
  137. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_X">View.X</a>
  138. </div>
  139. <div>
  140. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Y">View.Y</a>
  141. </div>
  142. <div>
  143. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Width">View.Width</a>
  144. </div>
  145. <div>
  146. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Height">View.Height</a>
  147. </div>
  148. <div>
  149. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_SuperView">View.SuperView</a>
  150. </div>
  151. <div>
  152. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_SetNeedsDisplay">View.SetNeedsDisplay()</a>
  153. </div>
  154. <div>
  155. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_SetNeedsDisplay_Terminal_Gui_Rect_">View.SetNeedsDisplay(Rect)</a>
  156. </div>
  157. <div>
  158. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_ChildNeedsDisplay">View.ChildNeedsDisplay()</a>
  159. </div>
  160. <div>
  161. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Add_Terminal_Gui_View_">View.Add(View)</a>
  162. </div>
  163. <div>
  164. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Add_Terminal_Gui_View___">View.Add(View[])</a>
  165. </div>
  166. <div>
  167. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_RemoveAll">View.RemoveAll()</a>
  168. </div>
  169. <div>
  170. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Remove_Terminal_Gui_View_">View.Remove(View)</a>
  171. </div>
  172. <div>
  173. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_BringSubviewToFront_Terminal_Gui_View_">View.BringSubviewToFront(View)</a>
  174. </div>
  175. <div>
  176. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_SendSubviewToBack_Terminal_Gui_View_">View.SendSubviewToBack(View)</a>
  177. </div>
  178. <div>
  179. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_SendSubviewBackwards_Terminal_Gui_View_">View.SendSubviewBackwards(View)</a>
  180. </div>
  181. <div>
  182. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_BringSubviewForward_Terminal_Gui_View_">View.BringSubviewForward(View)</a>
  183. </div>
  184. <div>
  185. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Clear">View.Clear()</a>
  186. </div>
  187. <div>
  188. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Clear_Terminal_Gui_Rect_">View.Clear(Rect)</a>
  189. </div>
  190. <div>
  191. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_ScreenToView_System_Int32_System_Int32_">View.ScreenToView(Int32, Int32)</a>
  192. </div>
  193. <div>
  194. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_ClipToBounds">View.ClipToBounds()</a>
  195. </div>
  196. <div>
  197. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_SetClip_Terminal_Gui_Rect_">View.SetClip(Rect)</a>
  198. </div>
  199. <div>
  200. <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>
  201. </div>
  202. <div>
  203. <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>
  204. </div>
  205. <div>
  206. <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>
  207. </div>
  208. <div>
  209. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Move_System_Int32_System_Int32_">View.Move(Int32, Int32)</a>
  210. </div>
  211. <div>
  212. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_HasFocus">View.HasFocus</a>
  213. </div>
  214. <div>
  215. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_OnEnter">View.OnEnter()</a>
  216. </div>
  217. <div>
  218. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Focused">View.Focused</a>
  219. </div>
  220. <div>
  221. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_MostFocused">View.MostFocused</a>
  222. </div>
  223. <div>
  224. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_ColorScheme">View.ColorScheme</a>
  225. </div>
  226. <div>
  227. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_AddRune_System_Int32_System_Int32_System_Rune_">View.AddRune(Int32, Int32, Rune)</a>
  228. </div>
  229. <div>
  230. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_ClearNeedsDisplay">View.ClearNeedsDisplay()</a>
  231. </div>
  232. <div>
  233. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_DrawContent">View.DrawContent</a>
  234. </div>
  235. <div>
  236. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_OnDrawContent_Terminal_Gui_Rect_">View.OnDrawContent(Rect)</a>
  237. </div>
  238. <div>
  239. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_SetFocus_Terminal_Gui_View_">View.SetFocus(View)</a>
  240. </div>
  241. <div>
  242. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_KeyPress">View.KeyPress</a>
  243. </div>
  244. <div>
  245. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_ProcessHotKey_Terminal_Gui_KeyEvent_">View.ProcessHotKey(KeyEvent)</a>
  246. </div>
  247. <div>
  248. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_ProcessColdKey_Terminal_Gui_KeyEvent_">View.ProcessColdKey(KeyEvent)</a>
  249. </div>
  250. <div>
  251. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_KeyDown">View.KeyDown</a>
  252. </div>
  253. <div>
  254. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_OnKeyDown_Terminal_Gui_KeyEvent_">View.OnKeyDown(KeyEvent)</a>
  255. </div>
  256. <div>
  257. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_KeyUp">View.KeyUp</a>
  258. </div>
  259. <div>
  260. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_OnKeyUp_Terminal_Gui_KeyEvent_">View.OnKeyUp(KeyEvent)</a>
  261. </div>
  262. <div>
  263. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_EnsureFocus">View.EnsureFocus()</a>
  264. </div>
  265. <div>
  266. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_FocusFirst">View.FocusFirst()</a>
  267. </div>
  268. <div>
  269. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_FocusLast">View.FocusLast()</a>
  270. </div>
  271. <div>
  272. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_FocusPrev">View.FocusPrev()</a>
  273. </div>
  274. <div>
  275. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_FocusNext">View.FocusNext()</a>
  276. </div>
  277. <div>
  278. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_LayoutComplete">View.LayoutComplete</a>
  279. </div>
  280. <div>
  281. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_LayoutSubviews">View.LayoutSubviews()</a>
  282. </div>
  283. <div>
  284. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_ToString">View.ToString()</a>
  285. </div>
  286. <div>
  287. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_OnMouseEnter_Terminal_Gui_MouseEvent_">View.OnMouseEnter(MouseEvent)</a>
  288. </div>
  289. <div>
  290. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_OnMouseLeave_Terminal_Gui_MouseEvent_">View.OnMouseLeave(MouseEvent)</a>
  291. </div>
  292. <div>
  293. <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_OnMouseEvent_Terminal_Gui_MouseEvent_">View.OnMouseEvent(MouseEvent)</a>
  294. </div>
  295. <div>
  296. <span class="xref">System.Object.Equals(System.Object)</span>
  297. </div>
  298. <div>
  299. <span class="xref">System.Object.Equals(System.Object, System.Object)</span>
  300. </div>
  301. <div>
  302. <span class="xref">System.Object.GetHashCode()</span>
  303. </div>
  304. <div>
  305. <span class="xref">System.Object.GetType()</span>
  306. </div>
  307. <div>
  308. <span class="xref">System.Object.MemberwiseClone()</span>
  309. </div>
  310. <div>
  311. <span class="xref">System.Object.ReferenceEquals(System.Object, System.Object)</span>
  312. </div>
  313. </div>
  314. <h6><strong>Namespace</strong>: <a class="xref" href="Terminal.Gui.html">Terminal.Gui</a></h6>
  315. <h6><strong>Assembly</strong>: Terminal.Gui.dll</h6>
  316. <h5 id="Terminal_Gui_TextField_syntax">Syntax</h5>
  317. <div class="codewrapper">
  318. <pre><code class="lang-csharp hljs">public class TextField : View, IEnumerable</code></pre>
  319. </div>
  320. <h5 id="Terminal_Gui_TextField_remarks"><strong>Remarks</strong></h5>
  321. <div class="markdown level0 remarks">
  322. 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.
  323. </div>
  324. <h3 id="constructors">Constructors
  325. </h3>
  326. <a id="Terminal_Gui_TextField__ctor_" data-uid="Terminal.Gui.TextField.#ctor*"></a>
  327. <h4 id="Terminal_Gui_TextField__ctor_NStack_ustring_" data-uid="Terminal.Gui.TextField.#ctor(NStack.ustring)">TextField(ustring)</h4>
  328. <div class="markdown level1 summary">
  329. Public constructor that creates a text field, with layout controlled with X, Y, Width and Height.
  330. </div>
  331. <div class="markdown level1 conceptual"></div>
  332. <h5 class="decalaration">Declaration</h5>
  333. <div class="codewrapper">
  334. <pre><code class="lang-csharp hljs">public TextField(ustring text)</code></pre>
  335. </div>
  336. <h5 class="parameters">Parameters</h5>
  337. <table class="table table-bordered table-striped table-condensed">
  338. <thead>
  339. <tr>
  340. <th>Type</th>
  341. <th>Name</th>
  342. <th>Description</th>
  343. </tr>
  344. </thead>
  345. <tbody>
  346. <tr>
  347. <td><span class="xref">NStack.ustring</span></td>
  348. <td><span class="parametername">text</span></td>
  349. <td>Initial text contents.</td>
  350. </tr>
  351. </tbody>
  352. </table>
  353. <a id="Terminal_Gui_TextField__ctor_" data-uid="Terminal.Gui.TextField.#ctor*"></a>
  354. <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>
  355. <div class="markdown level1 summary">
  356. Public constructor that creates a text field at an absolute position and size.
  357. </div>
  358. <div class="markdown level1 conceptual"></div>
  359. <h5 class="decalaration">Declaration</h5>
  360. <div class="codewrapper">
  361. <pre><code class="lang-csharp hljs">public TextField(int x, int y, int w, ustring text)</code></pre>
  362. </div>
  363. <h5 class="parameters">Parameters</h5>
  364. <table class="table table-bordered table-striped table-condensed">
  365. <thead>
  366. <tr>
  367. <th>Type</th>
  368. <th>Name</th>
  369. <th>Description</th>
  370. </tr>
  371. </thead>
  372. <tbody>
  373. <tr>
  374. <td><span class="xref">System.Int32</span></td>
  375. <td><span class="parametername">x</span></td>
  376. <td>The x coordinate.</td>
  377. </tr>
  378. <tr>
  379. <td><span class="xref">System.Int32</span></td>
  380. <td><span class="parametername">y</span></td>
  381. <td>The y coordinate.</td>
  382. </tr>
  383. <tr>
  384. <td><span class="xref">System.Int32</span></td>
  385. <td><span class="parametername">w</span></td>
  386. <td>The width.</td>
  387. </tr>
  388. <tr>
  389. <td><span class="xref">NStack.ustring</span></td>
  390. <td><span class="parametername">text</span></td>
  391. <td>Initial text contents.</td>
  392. </tr>
  393. </tbody>
  394. </table>
  395. <a id="Terminal_Gui_TextField__ctor_" data-uid="Terminal.Gui.TextField.#ctor*"></a>
  396. <h4 id="Terminal_Gui_TextField__ctor_System_String_" data-uid="Terminal.Gui.TextField.#ctor(System.String)">TextField(String)</h4>
  397. <div class="markdown level1 summary">
  398. Public constructor that creates a text field, with layout controlled with X, Y, Width and Height.
  399. </div>
  400. <div class="markdown level1 conceptual"></div>
  401. <h5 class="decalaration">Declaration</h5>
  402. <div class="codewrapper">
  403. <pre><code class="lang-csharp hljs">public TextField(string text)</code></pre>
  404. </div>
  405. <h5 class="parameters">Parameters</h5>
  406. <table class="table table-bordered table-striped table-condensed">
  407. <thead>
  408. <tr>
  409. <th>Type</th>
  410. <th>Name</th>
  411. <th>Description</th>
  412. </tr>
  413. </thead>
  414. <tbody>
  415. <tr>
  416. <td><span class="xref">System.String</span></td>
  417. <td><span class="parametername">text</span></td>
  418. <td>Initial text contents.</td>
  419. </tr>
  420. </tbody>
  421. </table>
  422. <h3 id="properties">Properties
  423. </h3>
  424. <a id="Terminal_Gui_TextField_CanFocus_" data-uid="Terminal.Gui.TextField.CanFocus*"></a>
  425. <h4 id="Terminal_Gui_TextField_CanFocus" data-uid="Terminal.Gui.TextField.CanFocus">CanFocus</h4>
  426. <div class="markdown level1 summary">
  427. Gets or sets a value indicating whether this <a class="xref" href="Terminal.Gui.Responder.html">Responder</a> can focus.
  428. </div>
  429. <div class="markdown level1 conceptual"></div>
  430. <h5 class="decalaration">Declaration</h5>
  431. <div class="codewrapper">
  432. <pre><code class="lang-csharp hljs">public override bool CanFocus { get; set; }</code></pre>
  433. </div>
  434. <h5 class="propertyValue">Property Value</h5>
  435. <table class="table table-bordered table-striped table-condensed">
  436. <thead>
  437. <tr>
  438. <th>Type</th>
  439. <th>Description</th>
  440. </tr>
  441. </thead>
  442. <tbody>
  443. <tr>
  444. <td><span class="xref">System.Boolean</span></td>
  445. <td><code>true</code> if can focus; otherwise, <code>false</code>.</td>
  446. </tr>
  447. </tbody>
  448. </table>
  449. <h5 class="overrides">Overrides</h5>
  450. <div><a class="xref" href="Terminal.Gui.Responder.html#Terminal_Gui_Responder_CanFocus">Responder.CanFocus</a></div>
  451. <a id="Terminal_Gui_TextField_CursorPosition_" data-uid="Terminal.Gui.TextField.CursorPosition*"></a>
  452. <h4 id="Terminal_Gui_TextField_CursorPosition" data-uid="Terminal.Gui.TextField.CursorPosition">CursorPosition</h4>
  453. <div class="markdown level1 summary">
  454. Sets or gets the current cursor position.
  455. </div>
  456. <div class="markdown level1 conceptual"></div>
  457. <h5 class="decalaration">Declaration</h5>
  458. <div class="codewrapper">
  459. <pre><code class="lang-csharp hljs">public int CursorPosition { get; set; }</code></pre>
  460. </div>
  461. <h5 class="propertyValue">Property Value</h5>
  462. <table class="table table-bordered table-striped table-condensed">
  463. <thead>
  464. <tr>
  465. <th>Type</th>
  466. <th>Description</th>
  467. </tr>
  468. </thead>
  469. <tbody>
  470. <tr>
  471. <td><span class="xref">System.Int32</span></td>
  472. <td></td>
  473. </tr>
  474. </tbody>
  475. </table>
  476. <a id="Terminal_Gui_TextField_Frame_" data-uid="Terminal.Gui.TextField.Frame*"></a>
  477. <h4 id="Terminal_Gui_TextField_Frame" data-uid="Terminal.Gui.TextField.Frame">Frame</h4>
  478. <div class="markdown level1 summary">
  479. Gets or sets the frame for the view. The frame is relative to the view&apos;s container (<a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_SuperView">SuperView</a>).
  480. </div>
  481. <div class="markdown level1 conceptual"></div>
  482. <h5 class="decalaration">Declaration</h5>
  483. <div class="codewrapper">
  484. <pre><code class="lang-csharp hljs">public override Rect Frame { get; set; }</code></pre>
  485. </div>
  486. <h5 class="propertyValue">Property Value</h5>
  487. <table class="table table-bordered table-striped table-condensed">
  488. <thead>
  489. <tr>
  490. <th>Type</th>
  491. <th>Description</th>
  492. </tr>
  493. </thead>
  494. <tbody>
  495. <tr>
  496. <td><a class="xref" href="Terminal.Gui.Rect.html">Rect</a></td>
  497. <td>The frame.</td>
  498. </tr>
  499. </tbody>
  500. </table>
  501. <h5 class="overrides">Overrides</h5>
  502. <div><a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Frame">View.Frame</a></div>
  503. <h5 id="Terminal_Gui_TextField_Frame_remarks">Remarks</h5>
  504. <div class="markdown level1 remarks">
  505. <p>
  506. Change the Frame when using the <a class="xref" href="Terminal.Gui.LayoutStyle.html#Terminal_Gui_LayoutStyle_Absolute">Absolute</a> layout style to move or resize views.
  507. </p>
  508. <p>
  509. Altering the Frame of a view will trigger the redrawing of the
  510. view as well as the redrawing of the affected regions of the <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_SuperView">SuperView</a>.
  511. </p>
  512. </div>
  513. <a id="Terminal_Gui_TextField_ReadOnly_" data-uid="Terminal.Gui.TextField.ReadOnly*"></a>
  514. <h4 id="Terminal_Gui_TextField_ReadOnly" data-uid="Terminal.Gui.TextField.ReadOnly">ReadOnly</h4>
  515. <div class="markdown level1 summary">
  516. If set to true its not allow any changes in the text.
  517. </div>
  518. <div class="markdown level1 conceptual"></div>
  519. <h5 class="decalaration">Declaration</h5>
  520. <div class="codewrapper">
  521. <pre><code class="lang-csharp hljs">public bool ReadOnly { get; set; }</code></pre>
  522. </div>
  523. <h5 class="propertyValue">Property Value</h5>
  524. <table class="table table-bordered table-striped table-condensed">
  525. <thead>
  526. <tr>
  527. <th>Type</th>
  528. <th>Description</th>
  529. </tr>
  530. </thead>
  531. <tbody>
  532. <tr>
  533. <td><span class="xref">System.Boolean</span></td>
  534. <td></td>
  535. </tr>
  536. </tbody>
  537. </table>
  538. <a id="Terminal_Gui_TextField_Secret_" data-uid="Terminal.Gui.TextField.Secret*"></a>
  539. <h4 id="Terminal_Gui_TextField_Secret" data-uid="Terminal.Gui.TextField.Secret">Secret</h4>
  540. <div class="markdown level1 summary">
  541. Sets the secret property.
  542. </div>
  543. <div class="markdown level1 conceptual"></div>
  544. <h5 class="decalaration">Declaration</h5>
  545. <div class="codewrapper">
  546. <pre><code class="lang-csharp hljs">public bool Secret { get; set; }</code></pre>
  547. </div>
  548. <h5 class="propertyValue">Property Value</h5>
  549. <table class="table table-bordered table-striped table-condensed">
  550. <thead>
  551. <tr>
  552. <th>Type</th>
  553. <th>Description</th>
  554. </tr>
  555. </thead>
  556. <tbody>
  557. <tr>
  558. <td><span class="xref">System.Boolean</span></td>
  559. <td></td>
  560. </tr>
  561. </tbody>
  562. </table>
  563. <h5 id="Terminal_Gui_TextField_Secret_remarks">Remarks</h5>
  564. <div class="markdown level1 remarks">
  565. This makes the text entry suitable for entering passwords.
  566. </div>
  567. <a id="Terminal_Gui_TextField_SelectedLength_" data-uid="Terminal.Gui.TextField.SelectedLength*"></a>
  568. <h4 id="Terminal_Gui_TextField_SelectedLength" data-uid="Terminal.Gui.TextField.SelectedLength">SelectedLength</h4>
  569. <div class="markdown level1 summary">
  570. Length of the selected text.
  571. </div>
  572. <div class="markdown level1 conceptual"></div>
  573. <h5 class="decalaration">Declaration</h5>
  574. <div class="codewrapper">
  575. <pre><code class="lang-csharp hljs">public int SelectedLength { get; set; }</code></pre>
  576. </div>
  577. <h5 class="propertyValue">Property Value</h5>
  578. <table class="table table-bordered table-striped table-condensed">
  579. <thead>
  580. <tr>
  581. <th>Type</th>
  582. <th>Description</th>
  583. </tr>
  584. </thead>
  585. <tbody>
  586. <tr>
  587. <td><span class="xref">System.Int32</span></td>
  588. <td></td>
  589. </tr>
  590. </tbody>
  591. </table>
  592. <a id="Terminal_Gui_TextField_SelectedStart_" data-uid="Terminal.Gui.TextField.SelectedStart*"></a>
  593. <h4 id="Terminal_Gui_TextField_SelectedStart" data-uid="Terminal.Gui.TextField.SelectedStart">SelectedStart</h4>
  594. <div class="markdown level1 summary">
  595. Start position of the selected text.
  596. </div>
  597. <div class="markdown level1 conceptual"></div>
  598. <h5 class="decalaration">Declaration</h5>
  599. <div class="codewrapper">
  600. <pre><code class="lang-csharp hljs">public int SelectedStart { get; set; }</code></pre>
  601. </div>
  602. <h5 class="propertyValue">Property Value</h5>
  603. <table class="table table-bordered table-striped table-condensed">
  604. <thead>
  605. <tr>
  606. <th>Type</th>
  607. <th>Description</th>
  608. </tr>
  609. </thead>
  610. <tbody>
  611. <tr>
  612. <td><span class="xref">System.Int32</span></td>
  613. <td></td>
  614. </tr>
  615. </tbody>
  616. </table>
  617. <a id="Terminal_Gui_TextField_SelectedText_" data-uid="Terminal.Gui.TextField.SelectedText*"></a>
  618. <h4 id="Terminal_Gui_TextField_SelectedText" data-uid="Terminal.Gui.TextField.SelectedText">SelectedText</h4>
  619. <div class="markdown level1 summary">
  620. The selected text.
  621. </div>
  622. <div class="markdown level1 conceptual"></div>
  623. <h5 class="decalaration">Declaration</h5>
  624. <div class="codewrapper">
  625. <pre><code class="lang-csharp hljs">public ustring SelectedText { get; set; }</code></pre>
  626. </div>
  627. <h5 class="propertyValue">Property Value</h5>
  628. <table class="table table-bordered table-striped table-condensed">
  629. <thead>
  630. <tr>
  631. <th>Type</th>
  632. <th>Description</th>
  633. </tr>
  634. </thead>
  635. <tbody>
  636. <tr>
  637. <td><span class="xref">NStack.ustring</span></td>
  638. <td></td>
  639. </tr>
  640. </tbody>
  641. </table>
  642. <a id="Terminal_Gui_TextField_Text_" data-uid="Terminal.Gui.TextField.Text*"></a>
  643. <h4 id="Terminal_Gui_TextField_Text" data-uid="Terminal.Gui.TextField.Text">Text</h4>
  644. <div class="markdown level1 summary">
  645. Sets or gets the text held by the view.
  646. </div>
  647. <div class="markdown level1 conceptual"></div>
  648. <h5 class="decalaration">Declaration</h5>
  649. <div class="codewrapper">
  650. <pre><code class="lang-csharp hljs">public ustring Text { get; set; }</code></pre>
  651. </div>
  652. <h5 class="propertyValue">Property Value</h5>
  653. <table class="table table-bordered table-striped table-condensed">
  654. <thead>
  655. <tr>
  656. <th>Type</th>
  657. <th>Description</th>
  658. </tr>
  659. </thead>
  660. <tbody>
  661. <tr>
  662. <td><span class="xref">NStack.ustring</span></td>
  663. <td></td>
  664. </tr>
  665. </tbody>
  666. </table>
  667. <h5 id="Terminal_Gui_TextField_Text_remarks">Remarks</h5>
  668. <div class="markdown level1 remarks">
  669. </div>
  670. <a id="Terminal_Gui_TextField_Used_" data-uid="Terminal.Gui.TextField.Used*"></a>
  671. <h4 id="Terminal_Gui_TextField_Used" data-uid="Terminal.Gui.TextField.Used">Used</h4>
  672. <div class="markdown level1 summary">
  673. 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
  674. </div>
  675. <div class="markdown level1 conceptual"></div>
  676. <h5 class="decalaration">Declaration</h5>
  677. <div class="codewrapper">
  678. <pre><code class="lang-csharp hljs">public bool Used { get; set; }</code></pre>
  679. </div>
  680. <h5 class="propertyValue">Property Value</h5>
  681. <table class="table table-bordered table-striped table-condensed">
  682. <thead>
  683. <tr>
  684. <th>Type</th>
  685. <th>Description</th>
  686. </tr>
  687. </thead>
  688. <tbody>
  689. <tr>
  690. <td><span class="xref">System.Boolean</span></td>
  691. <td></td>
  692. </tr>
  693. </tbody>
  694. </table>
  695. <h3 id="methods">Methods
  696. </h3>
  697. <a id="Terminal_Gui_TextField_ClearAllSelection_" data-uid="Terminal.Gui.TextField.ClearAllSelection*"></a>
  698. <h4 id="Terminal_Gui_TextField_ClearAllSelection" data-uid="Terminal.Gui.TextField.ClearAllSelection">ClearAllSelection()</h4>
  699. <div class="markdown level1 summary">
  700. Clear the selected text.
  701. </div>
  702. <div class="markdown level1 conceptual"></div>
  703. <h5 class="decalaration">Declaration</h5>
  704. <div class="codewrapper">
  705. <pre><code class="lang-csharp hljs">public void ClearAllSelection()</code></pre>
  706. </div>
  707. <a id="Terminal_Gui_TextField_Copy_" data-uid="Terminal.Gui.TextField.Copy*"></a>
  708. <h4 id="Terminal_Gui_TextField_Copy" data-uid="Terminal.Gui.TextField.Copy">Copy()</h4>
  709. <div class="markdown level1 summary">
  710. Copy the selected text to the clipboard.
  711. </div>
  712. <div class="markdown level1 conceptual"></div>
  713. <h5 class="decalaration">Declaration</h5>
  714. <div class="codewrapper">
  715. <pre><code class="lang-csharp hljs">public virtual void Copy()</code></pre>
  716. </div>
  717. <a id="Terminal_Gui_TextField_Cut_" data-uid="Terminal.Gui.TextField.Cut*"></a>
  718. <h4 id="Terminal_Gui_TextField_Cut" data-uid="Terminal.Gui.TextField.Cut">Cut()</h4>
  719. <div class="markdown level1 summary">
  720. Cut the selected text to the clipboard.
  721. </div>
  722. <div class="markdown level1 conceptual"></div>
  723. <h5 class="decalaration">Declaration</h5>
  724. <div class="codewrapper">
  725. <pre><code class="lang-csharp hljs">public virtual void Cut()</code></pre>
  726. </div>
  727. <a id="Terminal_Gui_TextField_MouseEvent_" data-uid="Terminal.Gui.TextField.MouseEvent*"></a>
  728. <h4 id="Terminal_Gui_TextField_MouseEvent_Terminal_Gui_MouseEvent_" data-uid="Terminal.Gui.TextField.MouseEvent(Terminal.Gui.MouseEvent)">MouseEvent(MouseEvent)</h4>
  729. <div class="markdown level1 summary">
  730. Method invoked when a mouse event is generated
  731. </div>
  732. <div class="markdown level1 conceptual"></div>
  733. <h5 class="decalaration">Declaration</h5>
  734. <div class="codewrapper">
  735. <pre><code class="lang-csharp hljs">public override bool MouseEvent(MouseEvent ev)</code></pre>
  736. </div>
  737. <h5 class="parameters">Parameters</h5>
  738. <table class="table table-bordered table-striped table-condensed">
  739. <thead>
  740. <tr>
  741. <th>Type</th>
  742. <th>Name</th>
  743. <th>Description</th>
  744. </tr>
  745. </thead>
  746. <tbody>
  747. <tr>
  748. <td><a class="xref" href="Terminal.Gui.MouseEvent.html">MouseEvent</a></td>
  749. <td><span class="parametername">ev</span></td>
  750. <td></td>
  751. </tr>
  752. </tbody>
  753. </table>
  754. <h5 class="returns">Returns</h5>
  755. <table class="table table-bordered table-striped table-condensed">
  756. <thead>
  757. <tr>
  758. <th>Type</th>
  759. <th>Description</th>
  760. </tr>
  761. </thead>
  762. <tbody>
  763. <tr>
  764. <td><span class="xref">System.Boolean</span></td>
  765. <td><code>true</code>, if the event was handled, <code>false</code> otherwise.</td>
  766. </tr>
  767. </tbody>
  768. </table>
  769. <h5 class="overrides">Overrides</h5>
  770. <div><a class="xref" href="Terminal.Gui.Responder.html#Terminal_Gui_Responder_MouseEvent_Terminal_Gui_MouseEvent_">Responder.MouseEvent(MouseEvent)</a></div>
  771. <a id="Terminal_Gui_TextField_OnLeave_" data-uid="Terminal.Gui.TextField.OnLeave*"></a>
  772. <h4 id="Terminal_Gui_TextField_OnLeave" data-uid="Terminal.Gui.TextField.OnLeave">OnLeave()</h4>
  773. <div class="markdown level1 summary">
  774. Method invoked when a view loses focus.
  775. </div>
  776. <div class="markdown level1 conceptual"></div>
  777. <h5 class="decalaration">Declaration</h5>
  778. <div class="codewrapper">
  779. <pre><code class="lang-csharp hljs">public override bool OnLeave()</code></pre>
  780. </div>
  781. <h5 class="returns">Returns</h5>
  782. <table class="table table-bordered table-striped table-condensed">
  783. <thead>
  784. <tr>
  785. <th>Type</th>
  786. <th>Description</th>
  787. </tr>
  788. </thead>
  789. <tbody>
  790. <tr>
  791. <td><span class="xref">System.Boolean</span></td>
  792. <td><code>true</code>, if the event was handled, <code>false</code> otherwise.</td>
  793. </tr>
  794. </tbody>
  795. </table>
  796. <h5 class="overrides">Overrides</h5>
  797. <div><a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_OnLeave">View.OnLeave()</a></div>
  798. <a id="Terminal_Gui_TextField_Paste_" data-uid="Terminal.Gui.TextField.Paste*"></a>
  799. <h4 id="Terminal_Gui_TextField_Paste" data-uid="Terminal.Gui.TextField.Paste">Paste()</h4>
  800. <div class="markdown level1 summary">
  801. Paste the selected text from the clipboard.
  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 virtual void Paste()</code></pre>
  807. </div>
  808. <a id="Terminal_Gui_TextField_PositionCursor_" data-uid="Terminal.Gui.TextField.PositionCursor*"></a>
  809. <h4 id="Terminal_Gui_TextField_PositionCursor" data-uid="Terminal.Gui.TextField.PositionCursor">PositionCursor()</h4>
  810. <div class="markdown level1 summary">
  811. Sets the cursor position.
  812. </div>
  813. <div class="markdown level1 conceptual"></div>
  814. <h5 class="decalaration">Declaration</h5>
  815. <div class="codewrapper">
  816. <pre><code class="lang-csharp hljs">public override void PositionCursor()</code></pre>
  817. </div>
  818. <h5 class="overrides">Overrides</h5>
  819. <div><a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_PositionCursor">View.PositionCursor()</a></div>
  820. <a id="Terminal_Gui_TextField_ProcessKey_" data-uid="Terminal.Gui.TextField.ProcessKey*"></a>
  821. <h4 id="Terminal_Gui_TextField_ProcessKey_Terminal_Gui_KeyEvent_" data-uid="Terminal.Gui.TextField.ProcessKey(Terminal.Gui.KeyEvent)">ProcessKey(KeyEvent)</h4>
  822. <div class="markdown level1 summary">
  823. Processes key presses for the <a class="xref" href="Terminal.Gui.TextField.html">TextField</a>.
  824. </div>
  825. <div class="markdown level1 conceptual"></div>
  826. <h5 class="decalaration">Declaration</h5>
  827. <div class="codewrapper">
  828. <pre><code class="lang-csharp hljs">public override bool ProcessKey(KeyEvent kb)</code></pre>
  829. </div>
  830. <h5 class="parameters">Parameters</h5>
  831. <table class="table table-bordered table-striped table-condensed">
  832. <thead>
  833. <tr>
  834. <th>Type</th>
  835. <th>Name</th>
  836. <th>Description</th>
  837. </tr>
  838. </thead>
  839. <tbody>
  840. <tr>
  841. <td><a class="xref" href="Terminal.Gui.KeyEvent.html">KeyEvent</a></td>
  842. <td><span class="parametername">kb</span></td>
  843. <td></td>
  844. </tr>
  845. </tbody>
  846. </table>
  847. <h5 class="returns">Returns</h5>
  848. <table class="table table-bordered table-striped table-condensed">
  849. <thead>
  850. <tr>
  851. <th>Type</th>
  852. <th>Description</th>
  853. </tr>
  854. </thead>
  855. <tbody>
  856. <tr>
  857. <td><span class="xref">System.Boolean</span></td>
  858. <td></td>
  859. </tr>
  860. </tbody>
  861. </table>
  862. <h5 class="overrides">Overrides</h5>
  863. <div><a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_ProcessKey_Terminal_Gui_KeyEvent_">View.ProcessKey(KeyEvent)</a></div>
  864. <h5 id="Terminal_Gui_TextField_ProcessKey_Terminal_Gui_KeyEvent__remarks">Remarks</h5>
  865. <div class="markdown level1 remarks">
  866. The <a class="xref" href="Terminal.Gui.TextField.html">TextField</a> control responds to the following keys:
  867. <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>
  868. </div>
  869. <a id="Terminal_Gui_TextField_Redraw_" data-uid="Terminal.Gui.TextField.Redraw*"></a>
  870. <h4 id="Terminal_Gui_TextField_Redraw_Terminal_Gui_Rect_" data-uid="Terminal.Gui.TextField.Redraw(Terminal.Gui.Rect)">Redraw(Rect)</h4>
  871. <div class="markdown level1 summary">
  872. Redraws this view and its subviews; only redraws the views that have been flagged for a re-display.
  873. </div>
  874. <div class="markdown level1 conceptual"></div>
  875. <h5 class="decalaration">Declaration</h5>
  876. <div class="codewrapper">
  877. <pre><code class="lang-csharp hljs">public override void Redraw(Rect bounds)</code></pre>
  878. </div>
  879. <h5 class="parameters">Parameters</h5>
  880. <table class="table table-bordered table-striped table-condensed">
  881. <thead>
  882. <tr>
  883. <th>Type</th>
  884. <th>Name</th>
  885. <th>Description</th>
  886. </tr>
  887. </thead>
  888. <tbody>
  889. <tr>
  890. <td><a class="xref" href="Terminal.Gui.Rect.html">Rect</a></td>
  891. <td><span class="parametername">bounds</span></td>
  892. <td>The bounds (view-relative region) to redraw.</td>
  893. </tr>
  894. </tbody>
  895. </table>
  896. <h5 class="overrides">Overrides</h5>
  897. <div><a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Redraw_Terminal_Gui_Rect_">View.Redraw(Rect)</a></div>
  898. <h5 id="Terminal_Gui_TextField_Redraw_Terminal_Gui_Rect__remarks">Remarks</h5>
  899. <div class="markdown level1 remarks">
  900. <p>
  901. Always use <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Bounds">Bounds</a> (view-relative) when calling <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Redraw_Terminal_Gui_Rect_">Redraw(Rect)</a>, NOT <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Frame">Frame</a> (superview-relative).
  902. </p>
  903. <p>
  904. Views should set the color that they want to use on entry, as otherwise this will inherit
  905. the last color that was set globaly on the driver.
  906. </p>
  907. <p>
  908. Overrides of <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Redraw_Terminal_Gui_Rect_">Redraw(Rect)</a> must ensure they do not set <code>Driver.Clip</code> to a clip region
  909. larger than the <code>region</code> parameter.
  910. </p>
  911. </div>
  912. <h3 id="events">Events
  913. </h3>
  914. <h4 id="Terminal_Gui_TextField_Changed" data-uid="Terminal.Gui.TextField.Changed">Changed</h4>
  915. <div class="markdown level1 summary">
  916. Changed event, raised when the text has clicked.
  917. </div>
  918. <div class="markdown level1 conceptual"></div>
  919. <h5 class="decalaration">Declaration</h5>
  920. <div class="codewrapper">
  921. <pre><code class="lang-csharp hljs">public event EventHandler&lt;ustring&gt; Changed</code></pre>
  922. </div>
  923. <h5 class="eventType">Event Type</h5>
  924. <table class="table table-bordered table-striped table-condensed">
  925. <thead>
  926. <tr>
  927. <th>Type</th>
  928. <th>Description</th>
  929. </tr>
  930. </thead>
  931. <tbody>
  932. <tr>
  933. <td><span class="xref">System.EventHandler</span>&lt;<span class="xref">NStack.ustring</span>&gt;</td>
  934. <td></td>
  935. </tr>
  936. </tbody>
  937. </table>
  938. <h5 id="Terminal_Gui_TextField_Changed_remarks">Remarks</h5>
  939. <div class="markdown level1 remarks">
  940. This event is raised when the <a class="xref" href="Terminal.Gui.TextField.html#Terminal_Gui_TextField_Text">Text</a> changes.
  941. </div>
  942. <h3 id="implements">Implements</h3>
  943. <div>
  944. <span class="xref">System.Collections.IEnumerable</span>
  945. </div>
  946. </article>
  947. </div>
  948. <div class="hidden-sm col-md-2" role="complementary">
  949. <div class="sideaffix">
  950. <div class="contribution">
  951. <ul class="nav">
  952. </ul>
  953. </div>
  954. <nav class="bs-docs-sidebar hidden-print hidden-xs hidden-sm affix" id="affix">
  955. <!-- <p><a class="back-to-top" href="#top">Back to top</a><p> -->
  956. </nav>
  957. </div>
  958. </div>
  959. </div>
  960. </div>
  961. <footer>
  962. <div class="grad-bottom"></div>
  963. <div class="footer">
  964. <div class="container">
  965. <span class="pull-right">
  966. <a href="#top">Back to top</a>
  967. </span>
  968. <span>Generated by <strong>DocFX</strong></span>
  969. </div>
  970. </div>
  971. </footer>
  972. </div>
  973. <script type="text/javascript" src="../../styles/docfx.vendor.js"></script>
  974. <script type="text/javascript" src="../../styles/docfx.js"></script>
  975. <script type="text/javascript" src="../../styles/main.js"></script>
  976. </body>
  977. </html>