Terminal.Gui.CollectionNavigator.html 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538
  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 CollectionNavigator
  8. </title>
  9. <meta name="viewport" content="width=device-width">
  10. <meta name="title" content="Class CollectionNavigator
  11. ">
  12. <meta name="generator" content="docfx 2.59.4.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.CollectionNavigator">
  74. <h1 id="Terminal_Gui_CollectionNavigator" data-uid="Terminal.Gui.CollectionNavigator" class="text-break">Class CollectionNavigator
  75. </h1>
  76. <div class="markdown level0 summary">
  77. Navigates a collection of items using keystrokes. The keystrokes are used to build a search string.
  78. The <a class="xref" href="Terminal.Gui.CollectionNavigator.html#Terminal_Gui_CollectionNavigator_SearchString">SearchString</a> is used to find the next item in the collection that matches the search string
  79. when <a class="xref" href="Terminal.Gui.CollectionNavigator.html#Terminal_Gui_CollectionNavigator_GetNextMatchingItem_System_Int32_System_Char_">GetNextMatchingItem(Int32, Char)</a> is called.
  80. <p>
  81. If the user types keystrokes that can&apos;t be found in the collection,
  82. the search string is cleared and the next item is found that starts with the last keystroke.
  83. </p>
  84. <p>
  85. If the user pauses keystrokes for a short time (see <a class="xref" href="Terminal.Gui.CollectionNavigator.html#Terminal_Gui_CollectionNavigator_TypingDelay">TypingDelay</a>), the search string is cleared.
  86. </p>
  87. </div>
  88. <div class="markdown level0 conceptual"></div>
  89. <div class="inheritance">
  90. <h5>Inheritance</h5>
  91. <div class="level0"><span class="xref">System.Object</span></div>
  92. <div class="level1"><span class="xref">CollectionNavigator</span></div>
  93. </div>
  94. <div class="inheritedMembers">
  95. <h5>Inherited Members</h5>
  96. <div>
  97. <span class="xref">System.Object.Equals(System.Object)</span>
  98. </div>
  99. <div>
  100. <span class="xref">System.Object.Equals(System.Object, System.Object)</span>
  101. </div>
  102. <div>
  103. <span class="xref">System.Object.GetHashCode()</span>
  104. </div>
  105. <div>
  106. <span class="xref">System.Object.GetType()</span>
  107. </div>
  108. <div>
  109. <span class="xref">System.Object.MemberwiseClone()</span>
  110. </div>
  111. <div>
  112. <span class="xref">System.Object.ReferenceEquals(System.Object, System.Object)</span>
  113. </div>
  114. <div>
  115. <span class="xref">System.Object.ToString()</span>
  116. </div>
  117. </div>
  118. <h6><strong>Namespace</strong>: <a class="xref" href="Terminal.Gui.html">Terminal.Gui</a></h6>
  119. <h6><strong>Assembly</strong>: Terminal.Gui.dll</h6>
  120. <h5 id="Terminal_Gui_CollectionNavigator_syntax">Syntax</h5>
  121. <div class="codewrapper">
  122. <pre><code class="lang-csharp hljs">public class CollectionNavigator</code></pre>
  123. </div>
  124. <h3 id="constructors">Constructors
  125. </h3>
  126. <span class="small pull-right mobile-hide">
  127. <span class="divider">|</span>
  128. <a href="https://github.com/gui-cs/Terminal.Gui/new/develop/docfx/overrides/new?filename=Terminal_Gui_CollectionNavigator__ctor.md&amp;value=---%0Auid%3A%20Terminal.Gui.CollectionNavigator.%23ctor%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  129. </span>
  130. <span class="small pull-right mobile-hide">
  131. <a href="https://github.com/gui-cs/Terminal.Gui/blob/develop/Terminal.Gui/Core/CollectionNavigator.cs/#L22">View Source</a>
  132. </span>
  133. <a id="Terminal_Gui_CollectionNavigator__ctor_" data-uid="Terminal.Gui.CollectionNavigator.#ctor*"></a>
  134. <h4 id="Terminal_Gui_CollectionNavigator__ctor" data-uid="Terminal.Gui.CollectionNavigator.#ctor">CollectionNavigator()</h4>
  135. <div class="markdown level1 summary">
  136. Constructs a new CollectionNavigator.
  137. </div>
  138. <div class="markdown level1 conceptual"></div>
  139. <h5 class="decalaration">Declaration</h5>
  140. <div class="codewrapper">
  141. <pre><code class="lang-csharp hljs">public CollectionNavigator()</code></pre>
  142. </div>
  143. <span class="small pull-right mobile-hide">
  144. <span class="divider">|</span>
  145. <a href="https://github.com/gui-cs/Terminal.Gui/new/develop/docfx/overrides/new?filename=Terminal_Gui_CollectionNavigator__ctor_System_Collections_Generic_IEnumerable_System_Object__.md&amp;value=---%0Auid%3A%20Terminal.Gui.CollectionNavigator.%23ctor(System.Collections.Generic.IEnumerable%7BSystem.Object%7D)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  146. </span>
  147. <span class="small pull-right mobile-hide">
  148. <a href="https://github.com/gui-cs/Terminal.Gui/blob/develop/Terminal.Gui/Core/CollectionNavigator.cs/#L28">View Source</a>
  149. </span>
  150. <a id="Terminal_Gui_CollectionNavigator__ctor_" data-uid="Terminal.Gui.CollectionNavigator.#ctor*"></a>
  151. <h4 id="Terminal_Gui_CollectionNavigator__ctor_System_Collections_Generic_IEnumerable_System_Object__" data-uid="Terminal.Gui.CollectionNavigator.#ctor(System.Collections.Generic.IEnumerable{System.Object})">CollectionNavigator(IEnumerable&lt;Object&gt;)</h4>
  152. <div class="markdown level1 summary">
  153. Constructs a new CollectionNavigator for the given collection.
  154. </div>
  155. <div class="markdown level1 conceptual"></div>
  156. <h5 class="decalaration">Declaration</h5>
  157. <div class="codewrapper">
  158. <pre><code class="lang-csharp hljs">public CollectionNavigator(IEnumerable&lt;object&gt; collection)</code></pre>
  159. </div>
  160. <h5 class="parameters">Parameters</h5>
  161. <table class="table table-bordered table-striped table-condensed">
  162. <thead>
  163. <tr>
  164. <th>Type</th>
  165. <th>Name</th>
  166. <th>Description</th>
  167. </tr>
  168. </thead>
  169. <tbody>
  170. <tr>
  171. <td><span class="xref">System.Collections.Generic.IEnumerable</span>&lt;<span class="xref">System.Object</span>&gt;</td>
  172. <td><span class="parametername">collection</span></td>
  173. <td></td>
  174. </tr>
  175. </tbody>
  176. </table>
  177. <h3 id="properties">Properties
  178. </h3>
  179. <span class="small pull-right mobile-hide">
  180. <span class="divider">|</span>
  181. <a href="https://github.com/gui-cs/Terminal.Gui/new/develop/docfx/overrides/new?filename=Terminal_Gui_CollectionNavigator_Collection.md&amp;value=---%0Auid%3A%20Terminal.Gui.CollectionNavigator.Collection%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  182. </span>
  183. <span class="small pull-right mobile-hide">
  184. <a href="https://github.com/gui-cs/Terminal.Gui/blob/develop/Terminal.Gui/Core/CollectionNavigator.cs/#L45">View Source</a>
  185. </span>
  186. <a id="Terminal_Gui_CollectionNavigator_Collection_" data-uid="Terminal.Gui.CollectionNavigator.Collection*"></a>
  187. <h4 id="Terminal_Gui_CollectionNavigator_Collection" data-uid="Terminal.Gui.CollectionNavigator.Collection">Collection</h4>
  188. <div class="markdown level1 summary">
  189. The collection of objects to search. <span class="xref">System.Object.ToString()</span> is used to search the collection.
  190. </div>
  191. <div class="markdown level1 conceptual"></div>
  192. <h5 class="decalaration">Declaration</h5>
  193. <div class="codewrapper">
  194. <pre><code class="lang-csharp hljs">public IEnumerable&lt;object&gt; Collection { get; set; }</code></pre>
  195. </div>
  196. <h5 class="propertyValue">Property Value</h5>
  197. <table class="table table-bordered table-striped table-condensed">
  198. <thead>
  199. <tr>
  200. <th>Type</th>
  201. <th>Description</th>
  202. </tr>
  203. </thead>
  204. <tbody>
  205. <tr>
  206. <td><span class="xref">System.Collections.Generic.IEnumerable</span>&lt;<span class="xref">System.Object</span>&gt;</td>
  207. <td></td>
  208. </tr>
  209. </tbody>
  210. </table>
  211. <span class="small pull-right mobile-hide">
  212. <span class="divider">|</span>
  213. <a href="https://github.com/gui-cs/Terminal.Gui/new/develop/docfx/overrides/new?filename=Terminal_Gui_CollectionNavigator_Comparer.md&amp;value=---%0Auid%3A%20Terminal.Gui.CollectionNavigator.Comparer%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  214. </span>
  215. <span class="small pull-right mobile-hide">
  216. <a href="https://github.com/gui-cs/Terminal.Gui/blob/develop/Terminal.Gui/Core/CollectionNavigator.cs/#L40">View Source</a>
  217. </span>
  218. <a id="Terminal_Gui_CollectionNavigator_Comparer_" data-uid="Terminal.Gui.CollectionNavigator.Comparer*"></a>
  219. <h4 id="Terminal_Gui_CollectionNavigator_Comparer" data-uid="Terminal.Gui.CollectionNavigator.Comparer">Comparer</h4>
  220. <div class="markdown level1 summary">
  221. The compararer function to use when searching the collection.
  222. </div>
  223. <div class="markdown level1 conceptual"></div>
  224. <h5 class="decalaration">Declaration</h5>
  225. <div class="codewrapper">
  226. <pre><code class="lang-csharp hljs">public StringComparer Comparer { get; set; }</code></pre>
  227. </div>
  228. <h5 class="propertyValue">Property Value</h5>
  229. <table class="table table-bordered table-striped table-condensed">
  230. <thead>
  231. <tr>
  232. <th>Type</th>
  233. <th>Description</th>
  234. </tr>
  235. </thead>
  236. <tbody>
  237. <tr>
  238. <td><span class="xref">System.StringComparer</span></td>
  239. <td></td>
  240. </tr>
  241. </tbody>
  242. </table>
  243. <span class="small pull-right mobile-hide">
  244. <span class="divider">|</span>
  245. <a href="https://github.com/gui-cs/Terminal.Gui/new/develop/docfx/overrides/new?filename=Terminal_Gui_CollectionNavigator_SearchString.md&amp;value=---%0Auid%3A%20Terminal.Gui.CollectionNavigator.SearchString%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  246. </span>
  247. <span class="small pull-right mobile-hide">
  248. <a href="https://github.com/gui-cs/Terminal.Gui/blob/develop/Terminal.Gui/Core/CollectionNavigator.cs/#L76">View Source</a>
  249. </span>
  250. <a id="Terminal_Gui_CollectionNavigator_SearchString_" data-uid="Terminal.Gui.CollectionNavigator.SearchString*"></a>
  251. <h4 id="Terminal_Gui_CollectionNavigator_SearchString" data-uid="Terminal.Gui.CollectionNavigator.SearchString">SearchString</h4>
  252. <div class="markdown level1 summary">
  253. Gets the current search string. This includes the set of keystrokes that have been pressed
  254. since the last unsuccessful match or after <a class="xref" href="Terminal.Gui.CollectionNavigator.html#Terminal_Gui_CollectionNavigator_TypingDelay">TypingDelay</a>) milliseconds. Useful for debugging.
  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 string SearchString { get; }</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.String</span></td>
  272. <td></td>
  273. </tr>
  274. </tbody>
  275. </table>
  276. <span class="small pull-right mobile-hide">
  277. <span class="divider">|</span>
  278. <a href="https://github.com/gui-cs/Terminal.Gui/new/develop/docfx/overrides/new?filename=Terminal_Gui_CollectionNavigator_TypingDelay.md&amp;value=---%0Auid%3A%20Terminal.Gui.CollectionNavigator.TypingDelay%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  279. </span>
  280. <span class="small pull-right mobile-hide">
  281. <a href="https://github.com/gui-cs/Terminal.Gui/blob/develop/Terminal.Gui/Core/CollectionNavigator.cs/#L35">View Source</a>
  282. </span>
  283. <a id="Terminal_Gui_CollectionNavigator_TypingDelay_" data-uid="Terminal.Gui.CollectionNavigator.TypingDelay*"></a>
  284. <h4 id="Terminal_Gui_CollectionNavigator_TypingDelay" data-uid="Terminal.Gui.CollectionNavigator.TypingDelay">TypingDelay</h4>
  285. <div class="markdown level1 summary">
  286. Gets or sets the number of milliseconds to delay before clearing the search string. The delay is
  287. reset on each call to <a class="xref" href="Terminal.Gui.CollectionNavigator.html#Terminal_Gui_CollectionNavigator_GetNextMatchingItem_System_Int32_System_Char_">GetNextMatchingItem(Int32, Char)</a>. The default is 500ms.
  288. </div>
  289. <div class="markdown level1 conceptual"></div>
  290. <h5 class="decalaration">Declaration</h5>
  291. <div class="codewrapper">
  292. <pre><code class="lang-csharp hljs">public int TypingDelay { get; set; }</code></pre>
  293. </div>
  294. <h5 class="propertyValue">Property Value</h5>
  295. <table class="table table-bordered table-striped table-condensed">
  296. <thead>
  297. <tr>
  298. <th>Type</th>
  299. <th>Description</th>
  300. </tr>
  301. </thead>
  302. <tbody>
  303. <tr>
  304. <td><span class="xref">System.Int32</span></td>
  305. <td></td>
  306. </tr>
  307. </tbody>
  308. </table>
  309. <h3 id="methods">Methods
  310. </h3>
  311. <span class="small pull-right mobile-hide">
  312. <span class="divider">|</span>
  313. <a href="https://github.com/gui-cs/Terminal.Gui/new/develop/docfx/overrides/new?filename=Terminal_Gui_CollectionNavigator_GetNextMatchingItem_System_Int32_System_Char_.md&amp;value=---%0Auid%3A%20Terminal.Gui.CollectionNavigator.GetNextMatchingItem(System.Int32%2CSystem.Char)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  314. </span>
  315. <span class="small pull-right mobile-hide">
  316. <a href="https://github.com/gui-cs/Terminal.Gui/blob/develop/Terminal.Gui/Core/CollectionNavigator.cs/#L101">View Source</a>
  317. </span>
  318. <a id="Terminal_Gui_CollectionNavigator_GetNextMatchingItem_" data-uid="Terminal.Gui.CollectionNavigator.GetNextMatchingItem*"></a>
  319. <h4 id="Terminal_Gui_CollectionNavigator_GetNextMatchingItem_System_Int32_System_Char_" data-uid="Terminal.Gui.CollectionNavigator.GetNextMatchingItem(System.Int32,System.Char)">GetNextMatchingItem(Int32, Char)</h4>
  320. <div class="markdown level1 summary">
  321. Gets the index of the next item in the collection that matches the current <a class="xref" href="Terminal.Gui.CollectionNavigator.html#Terminal_Gui_CollectionNavigator_SearchString">SearchString</a> plus the provided character (typically
  322. from a key press).
  323. </div>
  324. <div class="markdown level1 conceptual"></div>
  325. <h5 class="decalaration">Declaration</h5>
  326. <div class="codewrapper">
  327. <pre><code class="lang-csharp hljs">public int GetNextMatchingItem(int currentIndex, char keyStruck)</code></pre>
  328. </div>
  329. <h5 class="parameters">Parameters</h5>
  330. <table class="table table-bordered table-striped table-condensed">
  331. <thead>
  332. <tr>
  333. <th>Type</th>
  334. <th>Name</th>
  335. <th>Description</th>
  336. </tr>
  337. </thead>
  338. <tbody>
  339. <tr>
  340. <td><span class="xref">System.Int32</span></td>
  341. <td><span class="parametername">currentIndex</span></td>
  342. <td>The index in the collection to start the search from.</td>
  343. </tr>
  344. <tr>
  345. <td><span class="xref">System.Char</span></td>
  346. <td><span class="parametername">keyStruck</span></td>
  347. <td>The character of the key the user pressed.</td>
  348. </tr>
  349. </tbody>
  350. </table>
  351. <h5 class="returns">Returns</h5>
  352. <table class="table table-bordered table-striped table-condensed">
  353. <thead>
  354. <tr>
  355. <th>Type</th>
  356. <th>Description</th>
  357. </tr>
  358. </thead>
  359. <tbody>
  360. <tr>
  361. <td><span class="xref">System.Int32</span></td>
  362. <td>The index of the item that matches what the user has typed.
  363. Returns <span class="xref">langword_csharp_-1</span> if no item in the collection matched.</td>
  364. </tr>
  365. </tbody>
  366. </table>
  367. <span class="small pull-right mobile-hide">
  368. <span class="divider">|</span>
  369. <a href="https://github.com/gui-cs/Terminal.Gui/new/develop/docfx/overrides/new?filename=Terminal_Gui_CollectionNavigator_IsCompatibleKey_Terminal_Gui_KeyEvent_.md&amp;value=---%0Auid%3A%20Terminal.Gui.CollectionNavigator.IsCompatibleKey(Terminal.Gui.KeyEvent)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  370. </span>
  371. <span class="small pull-right mobile-hide">
  372. <a href="https://github.com/gui-cs/Terminal.Gui/blob/develop/Terminal.Gui/Core/CollectionNavigator.cs/#L239">View Source</a>
  373. </span>
  374. <a id="Terminal_Gui_CollectionNavigator_IsCompatibleKey_" data-uid="Terminal.Gui.CollectionNavigator.IsCompatibleKey*"></a>
  375. <h4 id="Terminal_Gui_CollectionNavigator_IsCompatibleKey_Terminal_Gui_KeyEvent_" data-uid="Terminal.Gui.CollectionNavigator.IsCompatibleKey(Terminal.Gui.KeyEvent)">IsCompatibleKey(KeyEvent)</h4>
  376. <div class="markdown level1 summary">
  377. Returns true if <code data-dev-comment-type="paramref" class="paramref">kb</code> is a searchable key
  378. (e.g. letters, numbers etc) that is valid to pass to to this
  379. class for search filtering.
  380. </div>
  381. <div class="markdown level1 conceptual"></div>
  382. <h5 class="decalaration">Declaration</h5>
  383. <div class="codewrapper">
  384. <pre><code class="lang-csharp hljs">public static bool IsCompatibleKey(KeyEvent kb)</code></pre>
  385. </div>
  386. <h5 class="parameters">Parameters</h5>
  387. <table class="table table-bordered table-striped table-condensed">
  388. <thead>
  389. <tr>
  390. <th>Type</th>
  391. <th>Name</th>
  392. <th>Description</th>
  393. </tr>
  394. </thead>
  395. <tbody>
  396. <tr>
  397. <td><a class="xref" href="Terminal.Gui.KeyEvent.html">KeyEvent</a></td>
  398. <td><span class="parametername">kb</span></td>
  399. <td></td>
  400. </tr>
  401. </tbody>
  402. </table>
  403. <h5 class="returns">Returns</h5>
  404. <table class="table table-bordered table-striped table-condensed">
  405. <thead>
  406. <tr>
  407. <th>Type</th>
  408. <th>Description</th>
  409. </tr>
  410. </thead>
  411. <tbody>
  412. <tr>
  413. <td><span class="xref">System.Boolean</span></td>
  414. <td></td>
  415. </tr>
  416. </tbody>
  417. </table>
  418. <span class="small pull-right mobile-hide">
  419. <span class="divider">|</span>
  420. <a href="https://github.com/gui-cs/Terminal.Gui/new/develop/docfx/overrides/new?filename=Terminal_Gui_CollectionNavigator_OnSearchStringChanged_Terminal_Gui_CollectionNavigator_KeystrokeNavigatorEventArgs_.md&amp;value=---%0Auid%3A%20Terminal.Gui.CollectionNavigator.OnSearchStringChanged(Terminal.Gui.CollectionNavigator.KeystrokeNavigatorEventArgs)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  421. </span>
  422. <span class="small pull-right mobile-hide">
  423. <a href="https://github.com/gui-cs/Terminal.Gui/blob/develop/Terminal.Gui/Core/CollectionNavigator.cs/#L88">View Source</a>
  424. </span>
  425. <a id="Terminal_Gui_CollectionNavigator_OnSearchStringChanged_" data-uid="Terminal.Gui.CollectionNavigator.OnSearchStringChanged*"></a>
  426. <h4 id="Terminal_Gui_CollectionNavigator_OnSearchStringChanged_Terminal_Gui_CollectionNavigator_KeystrokeNavigatorEventArgs_" data-uid="Terminal.Gui.CollectionNavigator.OnSearchStringChanged(Terminal.Gui.CollectionNavigator.KeystrokeNavigatorEventArgs)">OnSearchStringChanged(CollectionNavigator.KeystrokeNavigatorEventArgs)</h4>
  427. <div class="markdown level1 summary">
  428. Invoked when the <a class="xref" href="Terminal.Gui.CollectionNavigator.html#Terminal_Gui_CollectionNavigator_SearchString">SearchString</a> changes. Useful for debugging. Invokes the <a class="xref" href="Terminal.Gui.CollectionNavigator.html#Terminal_Gui_CollectionNavigator_SearchStringChanged">SearchStringChanged</a> event.
  429. </div>
  430. <div class="markdown level1 conceptual"></div>
  431. <h5 class="decalaration">Declaration</h5>
  432. <div class="codewrapper">
  433. <pre><code class="lang-csharp hljs">public virtual void OnSearchStringChanged(CollectionNavigator.KeystrokeNavigatorEventArgs e)</code></pre>
  434. </div>
  435. <h5 class="parameters">Parameters</h5>
  436. <table class="table table-bordered table-striped table-condensed">
  437. <thead>
  438. <tr>
  439. <th>Type</th>
  440. <th>Name</th>
  441. <th>Description</th>
  442. </tr>
  443. </thead>
  444. <tbody>
  445. <tr>
  446. <td><a class="xref" href="Terminal.Gui.CollectionNavigator.KeystrokeNavigatorEventArgs.html">CollectionNavigator.KeystrokeNavigatorEventArgs</a></td>
  447. <td><span class="parametername">e</span></td>
  448. <td></td>
  449. </tr>
  450. </tbody>
  451. </table>
  452. <h3 id="events">Events
  453. </h3>
  454. <span class="small pull-right mobile-hide">
  455. <span class="divider">|</span>
  456. <a href="https://github.com/gui-cs/Terminal.Gui/new/develop/docfx/overrides/new?filename=Terminal_Gui_CollectionNavigator_SearchStringChanged.md&amp;value=---%0Auid%3A%20Terminal.Gui.CollectionNavigator.SearchStringChanged%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  457. </span>
  458. <span class="small pull-right mobile-hide">
  459. <a href="https://github.com/gui-cs/Terminal.Gui/blob/develop/Terminal.Gui/Core/CollectionNavigator.cs/#L69">View Source</a>
  460. </span>
  461. <h4 id="Terminal_Gui_CollectionNavigator_SearchStringChanged" data-uid="Terminal.Gui.CollectionNavigator.SearchStringChanged">SearchStringChanged</h4>
  462. <div class="markdown level1 summary">
  463. This event is invoked when <a class="xref" href="Terminal.Gui.CollectionNavigator.html#Terminal_Gui_CollectionNavigator_SearchString">SearchString</a> changes. Useful for debugging.
  464. </div>
  465. <div class="markdown level1 conceptual"></div>
  466. <h5 class="decalaration">Declaration</h5>
  467. <div class="codewrapper">
  468. <pre><code class="lang-csharp hljs">public event Action&lt;CollectionNavigator.KeystrokeNavigatorEventArgs&gt; SearchStringChanged</code></pre>
  469. </div>
  470. <h5 class="eventType">Event Type</h5>
  471. <table class="table table-bordered table-striped table-condensed">
  472. <thead>
  473. <tr>
  474. <th>Type</th>
  475. <th>Description</th>
  476. </tr>
  477. </thead>
  478. <tbody>
  479. <tr>
  480. <td><span class="xref">System.Action</span>&lt;<a class="xref" href="Terminal.Gui.CollectionNavigator.KeystrokeNavigatorEventArgs.html">CollectionNavigator.KeystrokeNavigatorEventArgs</a>&gt;</td>
  481. <td></td>
  482. </tr>
  483. </tbody>
  484. </table>
  485. </article>
  486. </div>
  487. <div class="hidden-sm col-md-2" role="complementary">
  488. <div class="sideaffix">
  489. <div class="contribution">
  490. <ul class="nav">
  491. <li>
  492. <a href="https://github.com/gui-cs/Terminal.Gui/new/develop/docfx/overrides/new?filename=Terminal_Gui_CollectionNavigator.md&amp;value=---%0Auid%3A%20Terminal.Gui.CollectionNavigator%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A" class="contribution-link">Improve this Doc</a>
  493. </li>
  494. <li>
  495. <a href="https://github.com/gui-cs/Terminal.Gui/blob/develop/Terminal.Gui/Core/CollectionNavigator.cs/#L18" class="contribution-link">View Source</a>
  496. </li>
  497. </ul>
  498. </div>
  499. <nav class="bs-docs-sidebar hidden-print hidden-xs hidden-sm affix" id="affix">
  500. <h5>In This Article</h5>
  501. <div></div>
  502. </nav>
  503. </div>
  504. </div>
  505. </div>
  506. </div>
  507. <footer>
  508. <div class="grad-bottom"></div>
  509. <div class="footer">
  510. <div class="container">
  511. <span class="pull-right">
  512. <a href="#top">Back to top</a>
  513. </span>
  514. <span>Generated by <strong>DocFX</strong></span>
  515. </div>
  516. </div>
  517. </footer>
  518. </div>
  519. <script type="text/javascript" src="../../styles/docfx.vendor.js"></script>
  520. <script type="text/javascript" src="../../styles/docfx.js"></script>
  521. <script type="text/javascript" src="../../styles/main.js"></script>
  522. </body>
  523. </html>