Terminal.Gui.TextValidateProviders.TextRegexProvider.html 22 KB

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