Terminal.Gui.TextValidateProviders.TextRegexProvider.html 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590
  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 TextRegexProvider
  8. </title>
  9. <meta name="viewport" content="width=device-width">
  10. <meta name="title" content="Class TextRegexProvider
  11. ">
  12. <meta name="generator" content="docfx 2.59.3.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.TextValidateProviders.TextRegexProvider">
  73. <h1 id="Terminal_Gui_TextValidateProviders_TextRegexProvider" data-uid="Terminal.Gui.TextValidateProviders.TextRegexProvider" class="text-break">Class TextRegexProvider
  74. </h1>
  75. <div class="markdown level0 summary">
  76. Regex Provider for TextValidateField.
  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"><span class="xref">TextRegexProvider</span></div>
  83. </div>
  84. <div class="implements">
  85. <h5>Implements</h5>
  86. <div><a class="xref" href="Terminal.Gui.TextValidateProviders.ITextValidateProvider.html">ITextValidateProvider</a></div>
  87. </div>
  88. <h6><strong>Namespace</strong>: <a class="xref" href="Terminal.Gui.TextValidateProviders.html">Terminal.Gui.TextValidateProviders</a></h6>
  89. <h6><strong>Assembly</strong>: Terminal.Gui.dll</h6>
  90. <h5 id="Terminal_Gui_TextValidateProviders_TextRegexProvider_syntax">Syntax</h5>
  91. <div class="codewrapper">
  92. <pre><code class="lang-csharp hljs">public class TextRegexProvider : Object, ITextValidateProvider</code></pre>
  93. </div>
  94. <h3 id="constructors">Constructors
  95. </h3>
  96. <a id="Terminal_Gui_TextValidateProviders_TextRegexProvider__ctor_" data-uid="Terminal.Gui.TextValidateProviders.TextRegexProvider.#ctor*"></a>
  97. <h4 id="Terminal_Gui_TextValidateProviders_TextRegexProvider__ctor_System_String_" data-uid="Terminal.Gui.TextValidateProviders.TextRegexProvider.#ctor(System.String)">TextRegexProvider(String)</h4>
  98. <div class="markdown level1 summary">
  99. Empty Constructor.
  100. </div>
  101. <div class="markdown level1 conceptual"></div>
  102. <h5 class="decalaration">Declaration</h5>
  103. <div class="codewrapper">
  104. <pre><code class="lang-csharp hljs">public TextRegexProvider(string pattern)</code></pre>
  105. </div>
  106. <h5 class="parameters">Parameters</h5>
  107. <table class="table table-bordered table-striped table-condensed">
  108. <thead>
  109. <tr>
  110. <th>Type</th>
  111. <th>Name</th>
  112. <th>Description</th>
  113. </tr>
  114. </thead>
  115. <tbody>
  116. <tr>
  117. <td><span class="xref">System.String</span></td>
  118. <td><span class="parametername">pattern</span></td>
  119. <td></td>
  120. </tr>
  121. </tbody>
  122. </table>
  123. <h3 id="properties">Properties
  124. </h3>
  125. <a id="Terminal_Gui_TextValidateProviders_TextRegexProvider_DisplayText_" data-uid="Terminal.Gui.TextValidateProviders.TextRegexProvider.DisplayText*"></a>
  126. <h4 id="Terminal_Gui_TextValidateProviders_TextRegexProvider_DisplayText" data-uid="Terminal.Gui.TextValidateProviders.TextRegexProvider.DisplayText">DisplayText</h4>
  127. <div class="markdown level1 summary">
  128. Gets the formatted string for display.
  129. </div>
  130. <div class="markdown level1 conceptual"></div>
  131. <h5 class="decalaration">Declaration</h5>
  132. <div class="codewrapper">
  133. <pre><code class="lang-csharp hljs">public ustring DisplayText { get; }</code></pre>
  134. </div>
  135. <h5 class="propertyValue">Property Value</h5>
  136. <table class="table table-bordered table-striped table-condensed">
  137. <thead>
  138. <tr>
  139. <th>Type</th>
  140. <th>Description</th>
  141. </tr>
  142. </thead>
  143. <tbody>
  144. <tr>
  145. <td><span class="xref">NStack.ustring</span></td>
  146. <td></td>
  147. </tr>
  148. </tbody>
  149. </table>
  150. <a id="Terminal_Gui_TextValidateProviders_TextRegexProvider_Fixed_" data-uid="Terminal.Gui.TextValidateProviders.TextRegexProvider.Fixed*"></a>
  151. <h4 id="Terminal_Gui_TextValidateProviders_TextRegexProvider_Fixed" data-uid="Terminal.Gui.TextValidateProviders.TextRegexProvider.Fixed">Fixed</h4>
  152. <div class="markdown level1 summary">
  153. Set that this provider uses a fixed width.
  154. e.g. Masked ones are fixed.
  155. </div>
  156. <div class="markdown level1 conceptual"></div>
  157. <h5 class="decalaration">Declaration</h5>
  158. <div class="codewrapper">
  159. <pre><code class="lang-csharp hljs">public bool Fixed { get; }</code></pre>
  160. </div>
  161. <h5 class="propertyValue">Property Value</h5>
  162. <table class="table table-bordered table-striped table-condensed">
  163. <thead>
  164. <tr>
  165. <th>Type</th>
  166. <th>Description</th>
  167. </tr>
  168. </thead>
  169. <tbody>
  170. <tr>
  171. <td><span class="xref">System.Boolean</span></td>
  172. <td></td>
  173. </tr>
  174. </tbody>
  175. </table>
  176. <a id="Terminal_Gui_TextValidateProviders_TextRegexProvider_IsValid_" data-uid="Terminal.Gui.TextValidateProviders.TextRegexProvider.IsValid*"></a>
  177. <h4 id="Terminal_Gui_TextValidateProviders_TextRegexProvider_IsValid" data-uid="Terminal.Gui.TextValidateProviders.TextRegexProvider.IsValid">IsValid</h4>
  178. <div class="markdown level1 summary">
  179. True if the input is valid, otherwise false.
  180. </div>
  181. <div class="markdown level1 conceptual"></div>
  182. <h5 class="decalaration">Declaration</h5>
  183. <div class="codewrapper">
  184. <pre><code class="lang-csharp hljs">public bool IsValid { get; }</code></pre>
  185. </div>
  186. <h5 class="propertyValue">Property Value</h5>
  187. <table class="table table-bordered table-striped table-condensed">
  188. <thead>
  189. <tr>
  190. <th>Type</th>
  191. <th>Description</th>
  192. </tr>
  193. </thead>
  194. <tbody>
  195. <tr>
  196. <td><span class="xref">System.Boolean</span></td>
  197. <td></td>
  198. </tr>
  199. </tbody>
  200. </table>
  201. <a id="Terminal_Gui_TextValidateProviders_TextRegexProvider_Pattern_" data-uid="Terminal.Gui.TextValidateProviders.TextRegexProvider.Pattern*"></a>
  202. <h4 id="Terminal_Gui_TextValidateProviders_TextRegexProvider_Pattern" data-uid="Terminal.Gui.TextValidateProviders.TextRegexProvider.Pattern">Pattern</h4>
  203. <div class="markdown level1 summary">
  204. Regex pattern property.
  205. </div>
  206. <div class="markdown level1 conceptual"></div>
  207. <h5 class="decalaration">Declaration</h5>
  208. <div class="codewrapper">
  209. <pre><code class="lang-csharp hljs">public ustring Pattern { get; set; }</code></pre>
  210. </div>
  211. <h5 class="propertyValue">Property Value</h5>
  212. <table class="table table-bordered table-striped table-condensed">
  213. <thead>
  214. <tr>
  215. <th>Type</th>
  216. <th>Description</th>
  217. </tr>
  218. </thead>
  219. <tbody>
  220. <tr>
  221. <td><span class="xref">NStack.ustring</span></td>
  222. <td></td>
  223. </tr>
  224. </tbody>
  225. </table>
  226. <a id="Terminal_Gui_TextValidateProviders_TextRegexProvider_Text_" data-uid="Terminal.Gui.TextValidateProviders.TextRegexProvider.Text*"></a>
  227. <h4 id="Terminal_Gui_TextValidateProviders_TextRegexProvider_Text" data-uid="Terminal.Gui.TextValidateProviders.TextRegexProvider.Text">Text</h4>
  228. <div class="markdown level1 summary">
  229. Set the input text and get the current value.
  230. </div>
  231. <div class="markdown level1 conceptual"></div>
  232. <h5 class="decalaration">Declaration</h5>
  233. <div class="codewrapper">
  234. <pre><code class="lang-csharp hljs">public ustring Text { get; set; }</code></pre>
  235. </div>
  236. <h5 class="propertyValue">Property Value</h5>
  237. <table class="table table-bordered table-striped table-condensed">
  238. <thead>
  239. <tr>
  240. <th>Type</th>
  241. <th>Description</th>
  242. </tr>
  243. </thead>
  244. <tbody>
  245. <tr>
  246. <td><span class="xref">NStack.ustring</span></td>
  247. <td></td>
  248. </tr>
  249. </tbody>
  250. </table>
  251. <a id="Terminal_Gui_TextValidateProviders_TextRegexProvider_ValidateOnInput_" data-uid="Terminal.Gui.TextValidateProviders.TextRegexProvider.ValidateOnInput*"></a>
  252. <h4 id="Terminal_Gui_TextValidateProviders_TextRegexProvider_ValidateOnInput" data-uid="Terminal.Gui.TextValidateProviders.TextRegexProvider.ValidateOnInput">ValidateOnInput</h4>
  253. <div class="markdown level1 summary">
  254. When true, validates with the regex pattern on each input, preventing the input if it&apos;s not valid.
  255. </div>
  256. <div class="markdown level1 conceptual"></div>
  257. <h5 class="decalaration">Declaration</h5>
  258. <div class="codewrapper">
  259. <pre><code class="lang-csharp hljs">public bool ValidateOnInput { get; set; }</code></pre>
  260. </div>
  261. <h5 class="propertyValue">Property Value</h5>
  262. <table class="table table-bordered table-striped table-condensed">
  263. <thead>
  264. <tr>
  265. <th>Type</th>
  266. <th>Description</th>
  267. </tr>
  268. </thead>
  269. <tbody>
  270. <tr>
  271. <td><span class="xref">System.Boolean</span></td>
  272. <td></td>
  273. </tr>
  274. </tbody>
  275. </table>
  276. <h3 id="methods">Methods
  277. </h3>
  278. <a id="Terminal_Gui_TextValidateProviders_TextRegexProvider_Cursor_" data-uid="Terminal.Gui.TextValidateProviders.TextRegexProvider.Cursor*"></a>
  279. <h4 id="Terminal_Gui_TextValidateProviders_TextRegexProvider_Cursor_System_Int32_" data-uid="Terminal.Gui.TextValidateProviders.TextRegexProvider.Cursor(System.Int32)">Cursor(Int32)</h4>
  280. <div class="markdown level1 summary">
  281. Set Cursor position to <code data-dev-comment-type="paramref" class="paramref">pos</code>.
  282. </div>
  283. <div class="markdown level1 conceptual"></div>
  284. <h5 class="decalaration">Declaration</h5>
  285. <div class="codewrapper">
  286. <pre><code class="lang-csharp hljs">public int Cursor(int pos)</code></pre>
  287. </div>
  288. <h5 class="parameters">Parameters</h5>
  289. <table class="table table-bordered table-striped table-condensed">
  290. <thead>
  291. <tr>
  292. <th>Type</th>
  293. <th>Name</th>
  294. <th>Description</th>
  295. </tr>
  296. </thead>
  297. <tbody>
  298. <tr>
  299. <td><span class="xref">System.Int32</span></td>
  300. <td><span class="parametername">pos</span></td>
  301. <td></td>
  302. </tr>
  303. </tbody>
  304. </table>
  305. <h5 class="returns">Returns</h5>
  306. <table class="table table-bordered table-striped table-condensed">
  307. <thead>
  308. <tr>
  309. <th>Type</th>
  310. <th>Description</th>
  311. </tr>
  312. </thead>
  313. <tbody>
  314. <tr>
  315. <td><span class="xref">System.Int32</span></td>
  316. <td>Return first valid position.</td>
  317. </tr>
  318. </tbody>
  319. </table>
  320. <a id="Terminal_Gui_TextValidateProviders_TextRegexProvider_CursorEnd_" data-uid="Terminal.Gui.TextValidateProviders.TextRegexProvider.CursorEnd*"></a>
  321. <h4 id="Terminal_Gui_TextValidateProviders_TextRegexProvider_CursorEnd" data-uid="Terminal.Gui.TextValidateProviders.TextRegexProvider.CursorEnd">CursorEnd()</h4>
  322. <div class="markdown level1 summary">
  323. Find the last valid character position.
  324. </div>
  325. <div class="markdown level1 conceptual"></div>
  326. <h5 class="decalaration">Declaration</h5>
  327. <div class="codewrapper">
  328. <pre><code class="lang-csharp hljs">public int CursorEnd()</code></pre>
  329. </div>
  330. <h5 class="returns">Returns</h5>
  331. <table class="table table-bordered table-striped table-condensed">
  332. <thead>
  333. <tr>
  334. <th>Type</th>
  335. <th>Description</th>
  336. </tr>
  337. </thead>
  338. <tbody>
  339. <tr>
  340. <td><span class="xref">System.Int32</span></td>
  341. <td>New cursor position.</td>
  342. </tr>
  343. </tbody>
  344. </table>
  345. <a id="Terminal_Gui_TextValidateProviders_TextRegexProvider_CursorLeft_" data-uid="Terminal.Gui.TextValidateProviders.TextRegexProvider.CursorLeft*"></a>
  346. <h4 id="Terminal_Gui_TextValidateProviders_TextRegexProvider_CursorLeft_System_Int32_" data-uid="Terminal.Gui.TextValidateProviders.TextRegexProvider.CursorLeft(System.Int32)">CursorLeft(Int32)</h4>
  347. <div class="markdown level1 summary">
  348. First valid position before <code data-dev-comment-type="paramref" class="paramref">pos</code>.
  349. </div>
  350. <div class="markdown level1 conceptual"></div>
  351. <h5 class="decalaration">Declaration</h5>
  352. <div class="codewrapper">
  353. <pre><code class="lang-csharp hljs">public int CursorLeft(int pos)</code></pre>
  354. </div>
  355. <h5 class="parameters">Parameters</h5>
  356. <table class="table table-bordered table-striped table-condensed">
  357. <thead>
  358. <tr>
  359. <th>Type</th>
  360. <th>Name</th>
  361. <th>Description</th>
  362. </tr>
  363. </thead>
  364. <tbody>
  365. <tr>
  366. <td><span class="xref">System.Int32</span></td>
  367. <td><span class="parametername">pos</span></td>
  368. <td></td>
  369. </tr>
  370. </tbody>
  371. </table>
  372. <h5 class="returns">Returns</h5>
  373. <table class="table table-bordered table-striped table-condensed">
  374. <thead>
  375. <tr>
  376. <th>Type</th>
  377. <th>Description</th>
  378. </tr>
  379. </thead>
  380. <tbody>
  381. <tr>
  382. <td><span class="xref">System.Int32</span></td>
  383. <td>New cursor position if any, otherwise returns <code data-dev-comment-type="paramref" class="paramref">pos</code></td>
  384. </tr>
  385. </tbody>
  386. </table>
  387. <a id="Terminal_Gui_TextValidateProviders_TextRegexProvider_CursorRight_" data-uid="Terminal.Gui.TextValidateProviders.TextRegexProvider.CursorRight*"></a>
  388. <h4 id="Terminal_Gui_TextValidateProviders_TextRegexProvider_CursorRight_System_Int32_" data-uid="Terminal.Gui.TextValidateProviders.TextRegexProvider.CursorRight(System.Int32)">CursorRight(Int32)</h4>
  389. <div class="markdown level1 summary">
  390. First valid position after <code data-dev-comment-type="paramref" class="paramref">pos</code>.
  391. </div>
  392. <div class="markdown level1 conceptual"></div>
  393. <h5 class="decalaration">Declaration</h5>
  394. <div class="codewrapper">
  395. <pre><code class="lang-csharp hljs">public int CursorRight(int pos)</code></pre>
  396. </div>
  397. <h5 class="parameters">Parameters</h5>
  398. <table class="table table-bordered table-striped table-condensed">
  399. <thead>
  400. <tr>
  401. <th>Type</th>
  402. <th>Name</th>
  403. <th>Description</th>
  404. </tr>
  405. </thead>
  406. <tbody>
  407. <tr>
  408. <td><span class="xref">System.Int32</span></td>
  409. <td><span class="parametername">pos</span></td>
  410. <td>Current position.</td>
  411. </tr>
  412. </tbody>
  413. </table>
  414. <h5 class="returns">Returns</h5>
  415. <table class="table table-bordered table-striped table-condensed">
  416. <thead>
  417. <tr>
  418. <th>Type</th>
  419. <th>Description</th>
  420. </tr>
  421. </thead>
  422. <tbody>
  423. <tr>
  424. <td><span class="xref">System.Int32</span></td>
  425. <td>New cursor position if any, otherwise returns <code data-dev-comment-type="paramref" class="paramref">pos</code></td>
  426. </tr>
  427. </tbody>
  428. </table>
  429. <a id="Terminal_Gui_TextValidateProviders_TextRegexProvider_CursorStart_" data-uid="Terminal.Gui.TextValidateProviders.TextRegexProvider.CursorStart*"></a>
  430. <h4 id="Terminal_Gui_TextValidateProviders_TextRegexProvider_CursorStart" data-uid="Terminal.Gui.TextValidateProviders.TextRegexProvider.CursorStart">CursorStart()</h4>
  431. <div class="markdown level1 summary">
  432. Find the first valid character position.
  433. </div>
  434. <div class="markdown level1 conceptual"></div>
  435. <h5 class="decalaration">Declaration</h5>
  436. <div class="codewrapper">
  437. <pre><code class="lang-csharp hljs">public int CursorStart()</code></pre>
  438. </div>
  439. <h5 class="returns">Returns</h5>
  440. <table class="table table-bordered table-striped table-condensed">
  441. <thead>
  442. <tr>
  443. <th>Type</th>
  444. <th>Description</th>
  445. </tr>
  446. </thead>
  447. <tbody>
  448. <tr>
  449. <td><span class="xref">System.Int32</span></td>
  450. <td>New cursor position.</td>
  451. </tr>
  452. </tbody>
  453. </table>
  454. <a id="Terminal_Gui_TextValidateProviders_TextRegexProvider_Delete_" data-uid="Terminal.Gui.TextValidateProviders.TextRegexProvider.Delete*"></a>
  455. <h4 id="Terminal_Gui_TextValidateProviders_TextRegexProvider_Delete_System_Int32_" data-uid="Terminal.Gui.TextValidateProviders.TextRegexProvider.Delete(System.Int32)">Delete(Int32)</h4>
  456. <div class="markdown level1 summary">
  457. Deletes the current character in <code data-dev-comment-type="paramref" class="paramref">pos</code>.
  458. </div>
  459. <div class="markdown level1 conceptual"></div>
  460. <h5 class="decalaration">Declaration</h5>
  461. <div class="codewrapper">
  462. <pre><code class="lang-csharp hljs">public bool Delete(int pos)</code></pre>
  463. </div>
  464. <h5 class="parameters">Parameters</h5>
  465. <table class="table table-bordered table-striped table-condensed">
  466. <thead>
  467. <tr>
  468. <th>Type</th>
  469. <th>Name</th>
  470. <th>Description</th>
  471. </tr>
  472. </thead>
  473. <tbody>
  474. <tr>
  475. <td><span class="xref">System.Int32</span></td>
  476. <td><span class="parametername">pos</span></td>
  477. <td></td>
  478. </tr>
  479. </tbody>
  480. </table>
  481. <h5 class="returns">Returns</h5>
  482. <table class="table table-bordered table-striped table-condensed">
  483. <thead>
  484. <tr>
  485. <th>Type</th>
  486. <th>Description</th>
  487. </tr>
  488. </thead>
  489. <tbody>
  490. <tr>
  491. <td><span class="xref">System.Boolean</span></td>
  492. <td>true if the character was successfully removed, otherwise false.</td>
  493. </tr>
  494. </tbody>
  495. </table>
  496. <a id="Terminal_Gui_TextValidateProviders_TextRegexProvider_InsertAt_" data-uid="Terminal.Gui.TextValidateProviders.TextRegexProvider.InsertAt*"></a>
  497. <h4 id="Terminal_Gui_TextValidateProviders_TextRegexProvider_InsertAt_System_Char_System_Int32_" data-uid="Terminal.Gui.TextValidateProviders.TextRegexProvider.InsertAt(System.Char,System.Int32)">InsertAt(Char, Int32)</h4>
  498. <div class="markdown level1 summary">
  499. Insert character <code data-dev-comment-type="paramref" class="paramref">ch</code> in position <code data-dev-comment-type="paramref" class="paramref">pos</code>.
  500. </div>
  501. <div class="markdown level1 conceptual"></div>
  502. <h5 class="decalaration">Declaration</h5>
  503. <div class="codewrapper">
  504. <pre><code class="lang-csharp hljs">public bool InsertAt(char ch, int pos)</code></pre>
  505. </div>
  506. <h5 class="parameters">Parameters</h5>
  507. <table class="table table-bordered table-striped table-condensed">
  508. <thead>
  509. <tr>
  510. <th>Type</th>
  511. <th>Name</th>
  512. <th>Description</th>
  513. </tr>
  514. </thead>
  515. <tbody>
  516. <tr>
  517. <td><span class="xref">System.Char</span></td>
  518. <td><span class="parametername">ch</span></td>
  519. <td></td>
  520. </tr>
  521. <tr>
  522. <td><span class="xref">System.Int32</span></td>
  523. <td><span class="parametername">pos</span></td>
  524. <td></td>
  525. </tr>
  526. </tbody>
  527. </table>
  528. <h5 class="returns">Returns</h5>
  529. <table class="table table-bordered table-striped table-condensed">
  530. <thead>
  531. <tr>
  532. <th>Type</th>
  533. <th>Description</th>
  534. </tr>
  535. </thead>
  536. <tbody>
  537. <tr>
  538. <td><span class="xref">System.Boolean</span></td>
  539. <td>true if the character was successfully inserted, otherwise false.</td>
  540. </tr>
  541. </tbody>
  542. </table>
  543. <h3 id="implements">Implements</h3>
  544. <div>
  545. <a class="xref" href="Terminal.Gui.TextValidateProviders.ITextValidateProvider.html">ITextValidateProvider</a>
  546. </div>
  547. </article>
  548. </div>
  549. <div class="hidden-sm col-md-2" role="complementary">
  550. <div class="sideaffix">
  551. <nav class="bs-docs-sidebar hidden-print hidden-xs hidden-sm affix" id="affix">
  552. <h5>In This Article</h5>
  553. <div></div>
  554. </nav>
  555. </div>
  556. </div>
  557. </div>
  558. </div>
  559. <footer>
  560. <div class="grad-bottom"></div>
  561. <div class="footer">
  562. <div class="container">
  563. <span class="pull-right">
  564. <a href="#top">Back to top</a>
  565. </span>
  566. <span>Generated by <strong>DocFX</strong></span>
  567. </div>
  568. </div>
  569. </footer>
  570. </div>
  571. <script type="text/javascript" src="../../styles/docfx.vendor.js"></script>
  572. <script type="text/javascript" src="../../styles/docfx.js"></script>
  573. <script type="text/javascript" src="../../styles/main.js"></script>
  574. </body>
  575. </html>