Terminal.Gui.ListWrapper.html 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429
  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 ListWrapper
  8. </title>
  9. <meta name="viewport" content="width=device-width">
  10. <meta name="title" content="Class ListWrapper
  11. ">
  12. <meta name="generator" content="docfx 2.56.6.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.ListWrapper">
  73. <h1 id="Terminal_Gui_ListWrapper" data-uid="Terminal.Gui.ListWrapper" class="text-break">Class ListWrapper
  74. </h1>
  75. <div class="markdown level0 summary">
  76. Implements an <a class="xref" href="Terminal.Gui.IListDataSource.html">IListDataSource</a> that renders arbitrary <span class="xref">System.Collections.IList</span> instances for <a class="xref" href="Terminal.Gui.ListView.html">ListView</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"><span class="xref">ListWrapper</span></div>
  83. </div>
  84. <div classs="implements">
  85. <h5>Implements</h5>
  86. <div><a class="xref" href="Terminal.Gui.IListDataSource.html">IListDataSource</a></div>
  87. </div>
  88. <div class="inheritedMembers">
  89. <h5>Inherited Members</h5>
  90. <div>
  91. <span class="xref">System.Object.Equals(System.Object)</span>
  92. </div>
  93. <div>
  94. <span class="xref">System.Object.Equals(System.Object, System.Object)</span>
  95. </div>
  96. <div>
  97. <span class="xref">System.Object.GetHashCode()</span>
  98. </div>
  99. <div>
  100. <span class="xref">System.Object.GetType()</span>
  101. </div>
  102. <div>
  103. <span class="xref">System.Object.MemberwiseClone()</span>
  104. </div>
  105. <div>
  106. <span class="xref">System.Object.ReferenceEquals(System.Object, System.Object)</span>
  107. </div>
  108. <div>
  109. <span class="xref">System.Object.ToString()</span>
  110. </div>
  111. </div>
  112. <h6><strong>Namespace</strong>: <a class="xref" href="Terminal.Gui.html">Terminal.Gui</a></h6>
  113. <h6><strong>Assembly</strong>: Terminal.Gui.dll</h6>
  114. <h5 id="Terminal_Gui_ListWrapper_syntax">Syntax</h5>
  115. <div class="codewrapper">
  116. <pre><code class="lang-csharp hljs">public class ListWrapper : IListDataSource</code></pre>
  117. </div>
  118. <h5 id="Terminal_Gui_ListWrapper_remarks"><strong>Remarks</strong></h5>
  119. <div class="markdown level0 remarks">Implements support for rendering marked items.</div>
  120. <h3 id="constructors">Constructors
  121. </h3>
  122. <a id="Terminal_Gui_ListWrapper__ctor_" data-uid="Terminal.Gui.ListWrapper.#ctor*"></a>
  123. <h4 id="Terminal_Gui_ListWrapper__ctor_System_Collections_IList_" data-uid="Terminal.Gui.ListWrapper.#ctor(System.Collections.IList)">ListWrapper(IList)</h4>
  124. <div class="markdown level1 summary">
  125. Initializes a new instance of <a class="xref" href="Terminal.Gui.ListWrapper.html">ListWrapper</a> given an <span class="xref">System.Collections.IList</span>
  126. </div>
  127. <div class="markdown level1 conceptual"></div>
  128. <h5 class="decalaration">Declaration</h5>
  129. <div class="codewrapper">
  130. <pre><code class="lang-csharp hljs">public ListWrapper(IList source)</code></pre>
  131. </div>
  132. <h5 class="parameters">Parameters</h5>
  133. <table class="table table-bordered table-striped table-condensed">
  134. <thead>
  135. <tr>
  136. <th>Type</th>
  137. <th>Name</th>
  138. <th>Description</th>
  139. </tr>
  140. </thead>
  141. <tbody>
  142. <tr>
  143. <td><span class="xref">System.Collections.IList</span></td>
  144. <td><span class="parametername">source</span></td>
  145. <td></td>
  146. </tr>
  147. </tbody>
  148. </table>
  149. <h3 id="properties">Properties
  150. </h3>
  151. <a id="Terminal_Gui_ListWrapper_Count_" data-uid="Terminal.Gui.ListWrapper.Count*"></a>
  152. <h4 id="Terminal_Gui_ListWrapper_Count" data-uid="Terminal.Gui.ListWrapper.Count">Count</h4>
  153. <div class="markdown level1 summary">
  154. Gets the number of items in the <span class="xref">System.Collections.IList</span>.
  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 int Count { 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.Int32</span></td>
  172. <td></td>
  173. </tr>
  174. </tbody>
  175. </table>
  176. <a id="Terminal_Gui_ListWrapper_Length_" data-uid="Terminal.Gui.ListWrapper.Length*"></a>
  177. <h4 id="Terminal_Gui_ListWrapper_Length" data-uid="Terminal.Gui.ListWrapper.Length">Length</h4>
  178. <div class="markdown level1 summary">
  179. Gets the maximum item length in the <span class="xref">System.Collections.IList</span>.
  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 int Length { 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.Int32</span></td>
  197. <td></td>
  198. </tr>
  199. </tbody>
  200. </table>
  201. <h3 id="methods">Methods
  202. </h3>
  203. <a id="Terminal_Gui_ListWrapper_IsMarked_" data-uid="Terminal.Gui.ListWrapper.IsMarked*"></a>
  204. <h4 id="Terminal_Gui_ListWrapper_IsMarked_System_Int32_" data-uid="Terminal.Gui.ListWrapper.IsMarked(System.Int32)">IsMarked(Int32)</h4>
  205. <div class="markdown level1 summary">
  206. Returns true if the item is marked, false otherwise.
  207. </div>
  208. <div class="markdown level1 conceptual"></div>
  209. <h5 class="decalaration">Declaration</h5>
  210. <div class="codewrapper">
  211. <pre><code class="lang-csharp hljs">public bool IsMarked(int item)</code></pre>
  212. </div>
  213. <h5 class="parameters">Parameters</h5>
  214. <table class="table table-bordered table-striped table-condensed">
  215. <thead>
  216. <tr>
  217. <th>Type</th>
  218. <th>Name</th>
  219. <th>Description</th>
  220. </tr>
  221. </thead>
  222. <tbody>
  223. <tr>
  224. <td><span class="xref">System.Int32</span></td>
  225. <td><span class="parametername">item</span></td>
  226. <td>The item.</td>
  227. </tr>
  228. </tbody>
  229. </table>
  230. <h5 class="returns">Returns</h5>
  231. <table class="table table-bordered table-striped table-condensed">
  232. <thead>
  233. <tr>
  234. <th>Type</th>
  235. <th>Description</th>
  236. </tr>
  237. </thead>
  238. <tbody>
  239. <tr>
  240. <td><span class="xref">System.Boolean</span></td>
  241. <td><code>true</code>If is marked.<code>false</code>otherwise.</td>
  242. </tr>
  243. </tbody>
  244. </table>
  245. <a id="Terminal_Gui_ListWrapper_Render_" data-uid="Terminal.Gui.ListWrapper.Render*"></a>
  246. <h4 id="Terminal_Gui_ListWrapper_Render_Terminal_Gui_ListView_Terminal_Gui_ConsoleDriver_System_Boolean_System_Int32_System_Int32_System_Int32_System_Int32_System_Int32_" data-uid="Terminal.Gui.ListWrapper.Render(Terminal.Gui.ListView,Terminal.Gui.ConsoleDriver,System.Boolean,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32)">Render(ListView, ConsoleDriver, Boolean, Int32, Int32, Int32, Int32, Int32)</h4>
  247. <div class="markdown level1 summary">
  248. Renders a <a class="xref" href="Terminal.Gui.ListView.html">ListView</a> item to the appropriate type.
  249. </div>
  250. <div class="markdown level1 conceptual"></div>
  251. <h5 class="decalaration">Declaration</h5>
  252. <div class="codewrapper">
  253. <pre><code class="lang-csharp hljs">public void Render(ListView container, ConsoleDriver driver, bool marked, int item, int col, int line, int width, int start = 0)</code></pre>
  254. </div>
  255. <h5 class="parameters">Parameters</h5>
  256. <table class="table table-bordered table-striped table-condensed">
  257. <thead>
  258. <tr>
  259. <th>Type</th>
  260. <th>Name</th>
  261. <th>Description</th>
  262. </tr>
  263. </thead>
  264. <tbody>
  265. <tr>
  266. <td><a class="xref" href="Terminal.Gui.ListView.html">ListView</a></td>
  267. <td><span class="parametername">container</span></td>
  268. <td>The ListView.</td>
  269. </tr>
  270. <tr>
  271. <td><a class="xref" href="Terminal.Gui.ConsoleDriver.html">ConsoleDriver</a></td>
  272. <td><span class="parametername">driver</span></td>
  273. <td>The driver used by the caller.</td>
  274. </tr>
  275. <tr>
  276. <td><span class="xref">System.Boolean</span></td>
  277. <td><span class="parametername">marked</span></td>
  278. <td>Informs if it&apos;s marked or not.</td>
  279. </tr>
  280. <tr>
  281. <td><span class="xref">System.Int32</span></td>
  282. <td><span class="parametername">item</span></td>
  283. <td>The item.</td>
  284. </tr>
  285. <tr>
  286. <td><span class="xref">System.Int32</span></td>
  287. <td><span class="parametername">col</span></td>
  288. <td>The col where to move.</td>
  289. </tr>
  290. <tr>
  291. <td><span class="xref">System.Int32</span></td>
  292. <td><span class="parametername">line</span></td>
  293. <td>The line where to move.</td>
  294. </tr>
  295. <tr>
  296. <td><span class="xref">System.Int32</span></td>
  297. <td><span class="parametername">width</span></td>
  298. <td>The item width.</td>
  299. </tr>
  300. <tr>
  301. <td><span class="xref">System.Int32</span></td>
  302. <td><span class="parametername">start</span></td>
  303. <td>The index of the string to be displayed.</td>
  304. </tr>
  305. </tbody>
  306. </table>
  307. <a id="Terminal_Gui_ListWrapper_SetMark_" data-uid="Terminal.Gui.ListWrapper.SetMark*"></a>
  308. <h4 id="Terminal_Gui_ListWrapper_SetMark_System_Int32_System_Boolean_" data-uid="Terminal.Gui.ListWrapper.SetMark(System.Int32,System.Boolean)">SetMark(Int32, Boolean)</h4>
  309. <div class="markdown level1 summary">
  310. Sets the item as marked or unmarked based on the value is true or false, respectively.
  311. </div>
  312. <div class="markdown level1 conceptual"></div>
  313. <h5 class="decalaration">Declaration</h5>
  314. <div class="codewrapper">
  315. <pre><code class="lang-csharp hljs">public void SetMark(int item, bool value)</code></pre>
  316. </div>
  317. <h5 class="parameters">Parameters</h5>
  318. <table class="table table-bordered table-striped table-condensed">
  319. <thead>
  320. <tr>
  321. <th>Type</th>
  322. <th>Name</th>
  323. <th>Description</th>
  324. </tr>
  325. </thead>
  326. <tbody>
  327. <tr>
  328. <td><span class="xref">System.Int32</span></td>
  329. <td><span class="parametername">item</span></td>
  330. <td>The item</td>
  331. </tr>
  332. <tr>
  333. <td><span class="xref">System.Boolean</span></td>
  334. <td><span class="parametername">value</span></td>
  335. <td><true>Marks the item.</true><false>Unmarked the item.</false>The value.</td>
  336. </tr>
  337. </tbody>
  338. </table>
  339. <a id="Terminal_Gui_ListWrapper_ToList_" data-uid="Terminal.Gui.ListWrapper.ToList*"></a>
  340. <h4 id="Terminal_Gui_ListWrapper_ToList" data-uid="Terminal.Gui.ListWrapper.ToList">ToList()</h4>
  341. <div class="markdown level1 summary">
  342. Returns the source as IList.
  343. </div>
  344. <div class="markdown level1 conceptual"></div>
  345. <h5 class="decalaration">Declaration</h5>
  346. <div class="codewrapper">
  347. <pre><code class="lang-csharp hljs">public IList ToList()</code></pre>
  348. </div>
  349. <h5 class="returns">Returns</h5>
  350. <table class="table table-bordered table-striped table-condensed">
  351. <thead>
  352. <tr>
  353. <th>Type</th>
  354. <th>Description</th>
  355. </tr>
  356. </thead>
  357. <tbody>
  358. <tr>
  359. <td><span class="xref">System.Collections.IList</span></td>
  360. <td></td>
  361. </tr>
  362. </tbody>
  363. </table>
  364. <h3 id="implements">Implements</h3>
  365. <div>
  366. <a class="xref" href="Terminal.Gui.IListDataSource.html">IListDataSource</a>
  367. </div>
  368. </article>
  369. </div>
  370. <div class="hidden-sm col-md-2" role="complementary">
  371. <div class="sideaffix">
  372. <div class="contribution">
  373. <ul class="nav">
  374. </ul>
  375. </div>
  376. <nav class="bs-docs-sidebar hidden-print hidden-xs hidden-sm affix" id="affix">
  377. <h5>In This Article</h5>
  378. <div></div>
  379. </nav>
  380. </div>
  381. </div>
  382. </div>
  383. </div>
  384. <footer>
  385. <div class="grad-bottom"></div>
  386. <div class="footer">
  387. <div class="container">
  388. <span class="pull-right">
  389. <a href="#top">Back to top</a>
  390. </span>
  391. <span>Generated by <strong>DocFX</strong></span>
  392. </div>
  393. </div>
  394. </footer>
  395. </div>
  396. <script type="text/javascript" src="../../styles/docfx.vendor.js"></script>
  397. <script type="text/javascript" src="../../styles/docfx.js"></script>
  398. <script type="text/javascript" src="../../styles/main.js"></script>
  399. </body>
  400. </html>