Terminal.Gui.TableView.ColumnStyle.html 26 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 TableView.ColumnStyle
  8. </title>
  9. <meta name="viewport" content="width=device-width">
  10. <meta name="title" content="Class TableView.ColumnStyle
  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.TableView.ColumnStyle">
  74. <h1 id="Terminal_Gui_TableView_ColumnStyle" data-uid="Terminal.Gui.TableView.ColumnStyle" class="text-break">Class TableView.ColumnStyle
  75. </h1>
  76. <div class="markdown level0 summary">
  77. Describes how to render a given column in a <a class="xref" href="Terminal.Gui.TableView.html">TableView</a> including <a class="xref" href="Terminal.Gui.TableView.ColumnStyle.html#Terminal_Gui_TableView_ColumnStyle_Alignment">Alignment</a>
  78. and textual representation of cells (e.g. date formats)
  79. <a href="https://gui-cs.github.io/Terminal.Gui/articles/tableview.html">See TableView Deep Dive for more information</a>.
  80. </div>
  81. <div class="markdown level0 conceptual"></div>
  82. <div class="inheritance">
  83. <h5>Inheritance</h5>
  84. <div class="level0"><span class="xref">System.Object</span></div>
  85. <div class="level1"><span class="xref">TableView.ColumnStyle</span></div>
  86. </div>
  87. <div class="inheritedMembers">
  88. <h5>Inherited Members</h5>
  89. <div>
  90. <span class="xref">System.Object.Equals(System.Object)</span>
  91. </div>
  92. <div>
  93. <span class="xref">System.Object.Equals(System.Object, System.Object)</span>
  94. </div>
  95. <div>
  96. <span class="xref">System.Object.GetHashCode()</span>
  97. </div>
  98. <div>
  99. <span class="xref">System.Object.GetType()</span>
  100. </div>
  101. <div>
  102. <span class="xref">System.Object.MemberwiseClone()</span>
  103. </div>
  104. <div>
  105. <span class="xref">System.Object.ReferenceEquals(System.Object, System.Object)</span>
  106. </div>
  107. <div>
  108. <span class="xref">System.Object.ToString()</span>
  109. </div>
  110. </div>
  111. <h6><strong>Namespace</strong>: <a class="xref" href="Terminal.Gui.html">Terminal.Gui</a></h6>
  112. <h6><strong>Assembly</strong>: Terminal.Gui.dll</h6>
  113. <h5 id="Terminal_Gui_TableView_ColumnStyle_syntax">Syntax</h5>
  114. <div class="codewrapper">
  115. <pre><code class="lang-csharp hljs">public class ColumnStyle</code></pre>
  116. </div>
  117. <h3 id="fields">Fields
  118. </h3>
  119. <span class="small pull-right mobile-hide">
  120. <span class="divider">|</span>
  121. <a href="https://github.com/gui-cs/Terminal.Gui/new/develop/apidoc/new?filename=Terminal_Gui_TableView_ColumnStyle_AlignmentGetter.md&amp;value=---%0Auid%3A%20Terminal.Gui.TableView.ColumnStyle.AlignmentGetter%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>
  122. </span>
  123. <span class="small pull-right mobile-hide">
  124. <a href="tig:tig/gui.cs/blob/main/Terminal.Gui/Views/TableView.cs/#L1388">View Source</a>
  125. </span>
  126. <h4 id="Terminal_Gui_TableView_ColumnStyle_AlignmentGetter" data-uid="Terminal.Gui.TableView.ColumnStyle.AlignmentGetter">AlignmentGetter</h4>
  127. <div class="markdown level1 summary">
  128. Defines a delegate for returning custom alignment per cell based on cell values. When specified this will override <a class="xref" href="Terminal.Gui.TableView.ColumnStyle.html#Terminal_Gui_TableView_ColumnStyle_Alignment">Alignment</a>
  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 Func&lt;object, TextAlignment&gt; AlignmentGetter</code></pre>
  134. </div>
  135. <h5 class="fieldValue">Field 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">System.Func</span>&lt;<span class="xref">System.Object</span>, <a class="xref" href="Terminal.Gui.TextAlignment.html">TextAlignment</a>&gt;</td>
  146. <td></td>
  147. </tr>
  148. </tbody>
  149. </table>
  150. <span class="small pull-right mobile-hide">
  151. <span class="divider">|</span>
  152. <a href="https://github.com/gui-cs/Terminal.Gui/new/develop/apidoc/new?filename=Terminal_Gui_TableView_ColumnStyle_ColorGetter.md&amp;value=---%0Auid%3A%20Terminal.Gui.TableView.ColumnStyle.ColorGetter%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>
  153. </span>
  154. <span class="small pull-right mobile-hide">
  155. <a href="tig:tig/gui.cs/blob/main/Terminal.Gui/Views/TableView.cs/#L1399">View Source</a>
  156. </span>
  157. <h4 id="Terminal_Gui_TableView_ColumnStyle_ColorGetter" data-uid="Terminal.Gui.TableView.ColumnStyle.ColorGetter">ColorGetter</h4>
  158. <div class="markdown level1 summary">
  159. Defines a delegate for returning a custom color scheme per cell based on cell values.
  160. Return null for the default
  161. </div>
  162. <div class="markdown level1 conceptual"></div>
  163. <h5 class="decalaration">Declaration</h5>
  164. <div class="codewrapper">
  165. <pre><code class="lang-csharp hljs">public TableView.CellColorGetterDelegate ColorGetter</code></pre>
  166. </div>
  167. <h5 class="fieldValue">Field Value</h5>
  168. <table class="table table-bordered table-striped table-condensed">
  169. <thead>
  170. <tr>
  171. <th>Type</th>
  172. <th>Description</th>
  173. </tr>
  174. </thead>
  175. <tbody>
  176. <tr>
  177. <td><a class="xref" href="Terminal.Gui.TableView.CellColorGetterDelegate.html">TableView.CellColorGetterDelegate</a></td>
  178. <td></td>
  179. </tr>
  180. </tbody>
  181. </table>
  182. <span class="small pull-right mobile-hide">
  183. <span class="divider">|</span>
  184. <a href="https://github.com/gui-cs/Terminal.Gui/new/develop/apidoc/new?filename=Terminal_Gui_TableView_ColumnStyle_RepresentationGetter.md&amp;value=---%0Auid%3A%20Terminal.Gui.TableView.ColumnStyle.RepresentationGetter%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>
  185. </span>
  186. <span class="small pull-right mobile-hide">
  187. <a href="tig:tig/gui.cs/blob/main/Terminal.Gui/Views/TableView.cs/#L1393">View Source</a>
  188. </span>
  189. <h4 id="Terminal_Gui_TableView_ColumnStyle_RepresentationGetter" data-uid="Terminal.Gui.TableView.ColumnStyle.RepresentationGetter">RepresentationGetter</h4>
  190. <div class="markdown level1 summary">
  191. Defines a delegate for returning custom representations of cell values. If not set then <span class="xref">System.Object.ToString()</span> is used. Return values from your delegate may be truncated e.g. based on <a class="xref" href="Terminal.Gui.TableView.ColumnStyle.html#Terminal_Gui_TableView_ColumnStyle_MaxWidth">MaxWidth</a>
  192. </div>
  193. <div class="markdown level1 conceptual"></div>
  194. <h5 class="decalaration">Declaration</h5>
  195. <div class="codewrapper">
  196. <pre><code class="lang-csharp hljs">public Func&lt;object, string&gt; RepresentationGetter</code></pre>
  197. </div>
  198. <h5 class="fieldValue">Field Value</h5>
  199. <table class="table table-bordered table-striped table-condensed">
  200. <thead>
  201. <tr>
  202. <th>Type</th>
  203. <th>Description</th>
  204. </tr>
  205. </thead>
  206. <tbody>
  207. <tr>
  208. <td><span class="xref">System.Func</span>&lt;<span class="xref">System.Object</span>, <span class="xref">System.String</span>&gt;</td>
  209. <td></td>
  210. </tr>
  211. </tbody>
  212. </table>
  213. <h3 id="properties">Properties
  214. </h3>
  215. <span class="small pull-right mobile-hide">
  216. <span class="divider">|</span>
  217. <a href="https://github.com/gui-cs/Terminal.Gui/new/develop/apidoc/new?filename=Terminal_Gui_TableView_ColumnStyle_Alignment.md&amp;value=---%0Auid%3A%20Terminal.Gui.TableView.ColumnStyle.Alignment%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>
  218. </span>
  219. <span class="small pull-right mobile-hide">
  220. <a href="tig:tig/gui.cs/blob/main/Terminal.Gui/Views/TableView.cs/#L1383">View Source</a>
  221. </span>
  222. <a id="Terminal_Gui_TableView_ColumnStyle_Alignment_" data-uid="Terminal.Gui.TableView.ColumnStyle.Alignment*"></a>
  223. <h4 id="Terminal_Gui_TableView_ColumnStyle_Alignment" data-uid="Terminal.Gui.TableView.ColumnStyle.Alignment">Alignment</h4>
  224. <div class="markdown level1 summary">
  225. Defines the default alignment for all values rendered in this column. For custom alignment based on cell contents use <a class="xref" href="Terminal.Gui.TableView.ColumnStyle.html#Terminal_Gui_TableView_ColumnStyle_AlignmentGetter">AlignmentGetter</a>.
  226. </div>
  227. <div class="markdown level1 conceptual"></div>
  228. <h5 class="decalaration">Declaration</h5>
  229. <div class="codewrapper">
  230. <pre><code class="lang-csharp hljs">public TextAlignment Alignment { get; set; }</code></pre>
  231. </div>
  232. <h5 class="propertyValue">Property Value</h5>
  233. <table class="table table-bordered table-striped table-condensed">
  234. <thead>
  235. <tr>
  236. <th>Type</th>
  237. <th>Description</th>
  238. </tr>
  239. </thead>
  240. <tbody>
  241. <tr>
  242. <td><a class="xref" href="Terminal.Gui.TextAlignment.html">TextAlignment</a></td>
  243. <td></td>
  244. </tr>
  245. </tbody>
  246. </table>
  247. <span class="small pull-right mobile-hide">
  248. <span class="divider">|</span>
  249. <a href="https://github.com/gui-cs/Terminal.Gui/new/develop/apidoc/new?filename=Terminal_Gui_TableView_ColumnStyle_Format.md&amp;value=---%0Auid%3A%20Terminal.Gui.TableView.ColumnStyle.Format%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>
  250. </span>
  251. <span class="small pull-right mobile-hide">
  252. <a href="tig:tig/gui.cs/blob/main/Terminal.Gui/Views/TableView.cs/#L1404">View Source</a>
  253. </span>
  254. <a id="Terminal_Gui_TableView_ColumnStyle_Format_" data-uid="Terminal.Gui.TableView.ColumnStyle.Format*"></a>
  255. <h4 id="Terminal_Gui_TableView_ColumnStyle_Format" data-uid="Terminal.Gui.TableView.ColumnStyle.Format">Format</h4>
  256. <div class="markdown level1 summary">
  257. Defines the format for values e.g. &quot;yyyy-MM-dd&quot; for dates
  258. </div>
  259. <div class="markdown level1 conceptual"></div>
  260. <h5 class="decalaration">Declaration</h5>
  261. <div class="codewrapper">
  262. <pre><code class="lang-csharp hljs">public string Format { get; set; }</code></pre>
  263. </div>
  264. <h5 class="propertyValue">Property Value</h5>
  265. <table class="table table-bordered table-striped table-condensed">
  266. <thead>
  267. <tr>
  268. <th>Type</th>
  269. <th>Description</th>
  270. </tr>
  271. </thead>
  272. <tbody>
  273. <tr>
  274. <td><span class="xref">System.String</span></td>
  275. <td></td>
  276. </tr>
  277. </tbody>
  278. </table>
  279. <span class="small pull-right mobile-hide">
  280. <span class="divider">|</span>
  281. <a href="https://github.com/gui-cs/Terminal.Gui/new/develop/apidoc/new?filename=Terminal_Gui_TableView_ColumnStyle_MaxWidth.md&amp;value=---%0Auid%3A%20Terminal.Gui.TableView.ColumnStyle.MaxWidth%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>
  282. </span>
  283. <span class="small pull-right mobile-hide">
  284. <a href="tig:tig/gui.cs/blob/main/Terminal.Gui/Views/TableView.cs/#L1409">View Source</a>
  285. </span>
  286. <a id="Terminal_Gui_TableView_ColumnStyle_MaxWidth_" data-uid="Terminal.Gui.TableView.ColumnStyle.MaxWidth*"></a>
  287. <h4 id="Terminal_Gui_TableView_ColumnStyle_MaxWidth" data-uid="Terminal.Gui.TableView.ColumnStyle.MaxWidth">MaxWidth</h4>
  288. <div class="markdown level1 summary">
  289. Set the maximum width of the column in characters. This value will be ignored if more than the tables <a class="xref" href="Terminal.Gui.TableView.html#Terminal_Gui_TableView_MaxCellWidth">MaxCellWidth</a>. Defaults to <a class="xref" href="Terminal.Gui.TableView.html#Terminal_Gui_TableView_DefaultMaxCellWidth">DefaultMaxCellWidth</a>
  290. </div>
  291. <div class="markdown level1 conceptual"></div>
  292. <h5 class="decalaration">Declaration</h5>
  293. <div class="codewrapper">
  294. <pre><code class="lang-csharp hljs">public int MaxWidth { get; set; }</code></pre>
  295. </div>
  296. <h5 class="propertyValue">Property Value</h5>
  297. <table class="table table-bordered table-striped table-condensed">
  298. <thead>
  299. <tr>
  300. <th>Type</th>
  301. <th>Description</th>
  302. </tr>
  303. </thead>
  304. <tbody>
  305. <tr>
  306. <td><span class="xref">System.Int32</span></td>
  307. <td></td>
  308. </tr>
  309. </tbody>
  310. </table>
  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/apidoc/new?filename=Terminal_Gui_TableView_ColumnStyle_MinAcceptableWidth.md&amp;value=---%0Auid%3A%20Terminal.Gui.TableView.ColumnStyle.MinAcceptableWidth%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="tig:tig/gui.cs/blob/main/Terminal.Gui/Views/TableView.cs/#L1428">View Source</a>
  317. </span>
  318. <a id="Terminal_Gui_TableView_ColumnStyle_MinAcceptableWidth_" data-uid="Terminal.Gui.TableView.ColumnStyle.MinAcceptableWidth*"></a>
  319. <h4 id="Terminal_Gui_TableView_ColumnStyle_MinAcceptableWidth" data-uid="Terminal.Gui.TableView.ColumnStyle.MinAcceptableWidth">MinAcceptableWidth</h4>
  320. <div class="markdown level1 summary">
  321. Enables flexible sizing of this column based on available screen space to render into.
  322. </div>
  323. <div class="markdown level1 conceptual"></div>
  324. <h5 class="decalaration">Declaration</h5>
  325. <div class="codewrapper">
  326. <pre><code class="lang-csharp hljs">public int MinAcceptableWidth { get; set; }</code></pre>
  327. </div>
  328. <h5 class="propertyValue">Property Value</h5>
  329. <table class="table table-bordered table-striped table-condensed">
  330. <thead>
  331. <tr>
  332. <th>Type</th>
  333. <th>Description</th>
  334. </tr>
  335. </thead>
  336. <tbody>
  337. <tr>
  338. <td><span class="xref">System.Int32</span></td>
  339. <td></td>
  340. </tr>
  341. </tbody>
  342. </table>
  343. <span class="small pull-right mobile-hide">
  344. <span class="divider">|</span>
  345. <a href="https://github.com/gui-cs/Terminal.Gui/new/develop/apidoc/new?filename=Terminal_Gui_TableView_ColumnStyle_MinWidth.md&amp;value=---%0Auid%3A%20Terminal.Gui.TableView.ColumnStyle.MinWidth%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>
  346. </span>
  347. <span class="small pull-right mobile-hide">
  348. <a href="tig:tig/gui.cs/blob/main/Terminal.Gui/Views/TableView.cs/#L1423">View Source</a>
  349. </span>
  350. <a id="Terminal_Gui_TableView_ColumnStyle_MinWidth_" data-uid="Terminal.Gui.TableView.ColumnStyle.MinWidth*"></a>
  351. <h4 id="Terminal_Gui_TableView_ColumnStyle_MinWidth" data-uid="Terminal.Gui.TableView.ColumnStyle.MinWidth">MinWidth</h4>
  352. <div class="markdown level1 summary">
  353. Set the minimum width of the column in characters. Setting this will ensure that
  354. even when a column has short content/header it still fills a given width of the control.
  355. <p>This value will be ignored if more than the tables <a class="xref" href="Terminal.Gui.TableView.html#Terminal_Gui_TableView_MaxCellWidth">MaxCellWidth</a>
  356. or the <a class="xref" href="Terminal.Gui.TableView.ColumnStyle.html#Terminal_Gui_TableView_ColumnStyle_MaxWidth">MaxWidth</a>
  357. </p>
  358. <remarks>
  359. For setting a flexible column width (down to a lower limit) use <a class="xref" href="Terminal.Gui.TableView.ColumnStyle.html#Terminal_Gui_TableView_ColumnStyle_MinAcceptableWidth">MinAcceptableWidth</a>
  360. instead
  361. </remarks>
  362. </div>
  363. <div class="markdown level1 conceptual"></div>
  364. <h5 class="decalaration">Declaration</h5>
  365. <div class="codewrapper">
  366. <pre><code class="lang-csharp hljs">public int MinWidth { get; set; }</code></pre>
  367. </div>
  368. <h5 class="propertyValue">Property Value</h5>
  369. <table class="table table-bordered table-striped table-condensed">
  370. <thead>
  371. <tr>
  372. <th>Type</th>
  373. <th>Description</th>
  374. </tr>
  375. </thead>
  376. <tbody>
  377. <tr>
  378. <td><span class="xref">System.Int32</span></td>
  379. <td></td>
  380. </tr>
  381. </tbody>
  382. </table>
  383. <h3 id="methods">Methods
  384. </h3>
  385. <span class="small pull-right mobile-hide">
  386. <span class="divider">|</span>
  387. <a href="https://github.com/gui-cs/Terminal.Gui/new/develop/apidoc/new?filename=Terminal_Gui_TableView_ColumnStyle_GetAlignment_System_Object_.md&amp;value=---%0Auid%3A%20Terminal.Gui.TableView.ColumnStyle.GetAlignment(System.Object)%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>
  388. </span>
  389. <span class="small pull-right mobile-hide">
  390. <a href="tig:tig/gui.cs/blob/main/Terminal.Gui/Views/TableView.cs/#L1435">View Source</a>
  391. </span>
  392. <a id="Terminal_Gui_TableView_ColumnStyle_GetAlignment_" data-uid="Terminal.Gui.TableView.ColumnStyle.GetAlignment*"></a>
  393. <h4 id="Terminal_Gui_TableView_ColumnStyle_GetAlignment_System_Object_" data-uid="Terminal.Gui.TableView.ColumnStyle.GetAlignment(System.Object)">GetAlignment(Object)</h4>
  394. <div class="markdown level1 summary">
  395. Returns the alignment for the cell based on <code data-dev-comment-type="paramref" class="paramref">cellValue</code> and <a class="xref" href="Terminal.Gui.TableView.ColumnStyle.html#Terminal_Gui_TableView_ColumnStyle_AlignmentGetter">AlignmentGetter</a>/<a class="xref" href="Terminal.Gui.TableView.ColumnStyle.html#Terminal_Gui_TableView_ColumnStyle_Alignment">Alignment</a>
  396. </div>
  397. <div class="markdown level1 conceptual"></div>
  398. <h5 class="decalaration">Declaration</h5>
  399. <div class="codewrapper">
  400. <pre><code class="lang-csharp hljs">public TextAlignment GetAlignment(object cellValue)</code></pre>
  401. </div>
  402. <h5 class="parameters">Parameters</h5>
  403. <table class="table table-bordered table-striped table-condensed">
  404. <thead>
  405. <tr>
  406. <th>Type</th>
  407. <th>Name</th>
  408. <th>Description</th>
  409. </tr>
  410. </thead>
  411. <tbody>
  412. <tr>
  413. <td><span class="xref">System.Object</span></td>
  414. <td><span class="parametername">cellValue</span></td>
  415. <td></td>
  416. </tr>
  417. </tbody>
  418. </table>
  419. <h5 class="returns">Returns</h5>
  420. <table class="table table-bordered table-striped table-condensed">
  421. <thead>
  422. <tr>
  423. <th>Type</th>
  424. <th>Description</th>
  425. </tr>
  426. </thead>
  427. <tbody>
  428. <tr>
  429. <td><a class="xref" href="Terminal.Gui.TextAlignment.html">TextAlignment</a></td>
  430. <td></td>
  431. </tr>
  432. </tbody>
  433. </table>
  434. <span class="small pull-right mobile-hide">
  435. <span class="divider">|</span>
  436. <a href="https://github.com/gui-cs/Terminal.Gui/new/develop/apidoc/new?filename=Terminal_Gui_TableView_ColumnStyle_GetRepresentation_System_Object_.md&amp;value=---%0Auid%3A%20Terminal.Gui.TableView.ColumnStyle.GetRepresentation(System.Object)%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>
  437. </span>
  438. <span class="small pull-right mobile-hide">
  439. <a href="tig:tig/gui.cs/blob/main/Terminal.Gui/Views/TableView.cs/#L1448">View Source</a>
  440. </span>
  441. <a id="Terminal_Gui_TableView_ColumnStyle_GetRepresentation_" data-uid="Terminal.Gui.TableView.ColumnStyle.GetRepresentation*"></a>
  442. <h4 id="Terminal_Gui_TableView_ColumnStyle_GetRepresentation_System_Object_" data-uid="Terminal.Gui.TableView.ColumnStyle.GetRepresentation(System.Object)">GetRepresentation(Object)</h4>
  443. <div class="markdown level1 summary">
  444. Returns the full string to render (which may be truncated if too long) that the current style says best represents the given <code data-dev-comment-type="paramref" class="paramref">value</code>
  445. </div>
  446. <div class="markdown level1 conceptual"></div>
  447. <h5 class="decalaration">Declaration</h5>
  448. <div class="codewrapper">
  449. <pre><code class="lang-csharp hljs">public string GetRepresentation(object value)</code></pre>
  450. </div>
  451. <h5 class="parameters">Parameters</h5>
  452. <table class="table table-bordered table-striped table-condensed">
  453. <thead>
  454. <tr>
  455. <th>Type</th>
  456. <th>Name</th>
  457. <th>Description</th>
  458. </tr>
  459. </thead>
  460. <tbody>
  461. <tr>
  462. <td><span class="xref">System.Object</span></td>
  463. <td><span class="parametername">value</span></td>
  464. <td></td>
  465. </tr>
  466. </tbody>
  467. </table>
  468. <h5 class="returns">Returns</h5>
  469. <table class="table table-bordered table-striped table-condensed">
  470. <thead>
  471. <tr>
  472. <th>Type</th>
  473. <th>Description</th>
  474. </tr>
  475. </thead>
  476. <tbody>
  477. <tr>
  478. <td><span class="xref">System.String</span></td>
  479. <td></td>
  480. </tr>
  481. </tbody>
  482. </table>
  483. </article>
  484. </div>
  485. <div class="hidden-sm col-md-2" role="complementary">
  486. <div class="sideaffix">
  487. <div class="contribution">
  488. <ul class="nav">
  489. <li>
  490. <a href="https://github.com/gui-cs/Terminal.Gui/new/develop/apidoc/new?filename=Terminal_Gui_TableView_ColumnStyle.md&amp;value=---%0Auid%3A%20Terminal.Gui.TableView.ColumnStyle%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>
  491. </li>
  492. <li>
  493. <a href="tig:tig/gui.cs/blob/main/Terminal.Gui/Views/TableView.cs/#L1378" class="contribution-link">View Source</a>
  494. </li>
  495. </ul>
  496. </div>
  497. <nav class="bs-docs-sidebar hidden-print hidden-xs hidden-sm affix" id="affix">
  498. <h5>In This Article</h5>
  499. <div></div>
  500. </nav>
  501. </div>
  502. </div>
  503. </div>
  504. </div>
  505. <footer>
  506. <div class="grad-bottom"></div>
  507. <div class="footer">
  508. <div class="container">
  509. <span class="pull-right">
  510. <a href="#top">Back to top</a>
  511. </span>
  512. <span>Generated by <strong>DocFX</strong></span>
  513. </div>
  514. </div>
  515. </footer>
  516. </div>
  517. <script type="text/javascript" src="../../styles/docfx.vendor.js"></script>
  518. <script type="text/javascript" src="../../styles/docfx.js"></script>
  519. <script type="text/javascript" src="../../styles/main.js"></script>
  520. </body>
  521. </html>