Terminal.Gui.TextFormatter.html 57 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485
  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 TextFormatter
  8. </title>
  9. <meta name="viewport" content="width=device-width">
  10. <meta name="title" content="Class TextFormatter
  11. ">
  12. <meta name="generator" content="docfx 2.59.0.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.TextFormatter">
  73. <h1 id="Terminal_Gui_TextFormatter" data-uid="Terminal.Gui.TextFormatter" class="text-break">Class TextFormatter
  74. </h1>
  75. <div class="markdown level0 summary">
  76. Provides text formatting capabilities for console apps. Supports, hotkeys, horizontal alignment, multiple lines, and word-based line wrap.
  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">TextFormatter</span></div>
  83. </div>
  84. <div class="inheritedMembers">
  85. <h5>Inherited Members</h5>
  86. <div>
  87. <span class="xref">System.Object.Equals(System.Object)</span>
  88. </div>
  89. <div>
  90. <span class="xref">System.Object.Equals(System.Object, System.Object)</span>
  91. </div>
  92. <div>
  93. <span class="xref">System.Object.GetHashCode()</span>
  94. </div>
  95. <div>
  96. <span class="xref">System.Object.GetType()</span>
  97. </div>
  98. <div>
  99. <span class="xref">System.Object.MemberwiseClone()</span>
  100. </div>
  101. <div>
  102. <span class="xref">System.Object.ReferenceEquals(System.Object, System.Object)</span>
  103. </div>
  104. <div>
  105. <span class="xref">System.Object.ToString()</span>
  106. </div>
  107. </div>
  108. <h6><strong>Namespace</strong>: <a class="xref" href="Terminal.Gui.html">Terminal.Gui</a></h6>
  109. <h6><strong>Assembly</strong>: Terminal.Gui.dll</h6>
  110. <h5 id="Terminal_Gui_TextFormatter_syntax">Syntax</h5>
  111. <div class="codewrapper">
  112. <pre><code class="lang-csharp hljs">public class TextFormatter</code></pre>
  113. </div>
  114. <h3 id="properties">Properties
  115. </h3>
  116. <a id="Terminal_Gui_TextFormatter_Alignment_" data-uid="Terminal.Gui.TextFormatter.Alignment*"></a>
  117. <h4 id="Terminal_Gui_TextFormatter_Alignment" data-uid="Terminal.Gui.TextFormatter.Alignment">Alignment</h4>
  118. <div class="markdown level1 summary">
  119. Controls the horizontal text-alignment property.
  120. </div>
  121. <div class="markdown level1 conceptual"></div>
  122. <h5 class="decalaration">Declaration</h5>
  123. <div class="codewrapper">
  124. <pre><code class="lang-csharp hljs">public TextAlignment Alignment { get; set; }</code></pre>
  125. </div>
  126. <h5 class="propertyValue">Property Value</h5>
  127. <table class="table table-bordered table-striped table-condensed">
  128. <thead>
  129. <tr>
  130. <th>Type</th>
  131. <th>Description</th>
  132. </tr>
  133. </thead>
  134. <tbody>
  135. <tr>
  136. <td><a class="xref" href="Terminal.Gui.TextAlignment.html">TextAlignment</a></td>
  137. <td>The text alignment.</td>
  138. </tr>
  139. </tbody>
  140. </table>
  141. <a id="Terminal_Gui_TextFormatter_AutoSize_" data-uid="Terminal.Gui.TextFormatter.AutoSize*"></a>
  142. <h4 id="Terminal_Gui_TextFormatter_AutoSize" data-uid="Terminal.Gui.TextFormatter.AutoSize">AutoSize</h4>
  143. <div class="markdown level1 summary">
  144. Used by <a class="xref" href="Terminal.Gui.TextFormatter.html#Terminal_Gui_TextFormatter_Text">Text</a> to resize the view&apos;s <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Bounds">Bounds</a> with the <a class="xref" href="Terminal.Gui.TextFormatter.html#Terminal_Gui_TextFormatter_Size">Size</a>.
  145. Setting <a class="xref" href="Terminal.Gui.TextFormatter.html#Terminal_Gui_TextFormatter_AutoSize">AutoSize</a> to true only work if the <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Width">Width</a> and <a class="xref" href="Terminal.Gui.View.html#Terminal_Gui_View_Height">Height</a> are null or
  146. <a class="xref" href="Terminal.Gui.LayoutStyle.html#Terminal_Gui_LayoutStyle_Absolute">Absolute</a> values and doesn&apos;t work with <a class="xref" href="Terminal.Gui.LayoutStyle.html#Terminal_Gui_LayoutStyle_Computed">Computed</a> layout,
  147. to avoid breaking the <a class="xref" href="Terminal.Gui.Pos.html">Pos</a> and <a class="xref" href="Terminal.Gui.Dim.html">Dim</a> settings.
  148. </div>
  149. <div class="markdown level1 conceptual"></div>
  150. <h5 class="decalaration">Declaration</h5>
  151. <div class="codewrapper">
  152. <pre><code class="lang-csharp hljs">public bool AutoSize { get; set; }</code></pre>
  153. </div>
  154. <h5 class="propertyValue">Property Value</h5>
  155. <table class="table table-bordered table-striped table-condensed">
  156. <thead>
  157. <tr>
  158. <th>Type</th>
  159. <th>Description</th>
  160. </tr>
  161. </thead>
  162. <tbody>
  163. <tr>
  164. <td><span class="xref">System.Boolean</span></td>
  165. <td></td>
  166. </tr>
  167. </tbody>
  168. </table>
  169. <a id="Terminal_Gui_TextFormatter_CursorPosition_" data-uid="Terminal.Gui.TextFormatter.CursorPosition*"></a>
  170. <h4 id="Terminal_Gui_TextFormatter_CursorPosition" data-uid="Terminal.Gui.TextFormatter.CursorPosition">CursorPosition</h4>
  171. <div class="markdown level1 summary">
  172. Gets the cursor position from <a class="xref" href="Terminal.Gui.TextFormatter.html#Terminal_Gui_TextFormatter_HotKey">HotKey</a>. If the <a class="xref" href="Terminal.Gui.TextFormatter.html#Terminal_Gui_TextFormatter_HotKey">HotKey</a> is defined, the cursor will be positioned over it.
  173. </div>
  174. <div class="markdown level1 conceptual"></div>
  175. <h5 class="decalaration">Declaration</h5>
  176. <div class="codewrapper">
  177. <pre><code class="lang-csharp hljs">public int CursorPosition { get; set; }</code></pre>
  178. </div>
  179. <h5 class="propertyValue">Property Value</h5>
  180. <table class="table table-bordered table-striped table-condensed">
  181. <thead>
  182. <tr>
  183. <th>Type</th>
  184. <th>Description</th>
  185. </tr>
  186. </thead>
  187. <tbody>
  188. <tr>
  189. <td><span class="xref">System.Int32</span></td>
  190. <td></td>
  191. </tr>
  192. </tbody>
  193. </table>
  194. <a id="Terminal_Gui_TextFormatter_Direction_" data-uid="Terminal.Gui.TextFormatter.Direction*"></a>
  195. <h4 id="Terminal_Gui_TextFormatter_Direction" data-uid="Terminal.Gui.TextFormatter.Direction">Direction</h4>
  196. <div class="markdown level1 summary">
  197. Controls the text-direction property.
  198. </div>
  199. <div class="markdown level1 conceptual"></div>
  200. <h5 class="decalaration">Declaration</h5>
  201. <div class="codewrapper">
  202. <pre><code class="lang-csharp hljs">public TextDirection Direction { get; set; }</code></pre>
  203. </div>
  204. <h5 class="propertyValue">Property Value</h5>
  205. <table class="table table-bordered table-striped table-condensed">
  206. <thead>
  207. <tr>
  208. <th>Type</th>
  209. <th>Description</th>
  210. </tr>
  211. </thead>
  212. <tbody>
  213. <tr>
  214. <td><a class="xref" href="Terminal.Gui.TextDirection.html">TextDirection</a></td>
  215. <td>The text vertical alignment.</td>
  216. </tr>
  217. </tbody>
  218. </table>
  219. <a id="Terminal_Gui_TextFormatter_HotKey_" data-uid="Terminal.Gui.TextFormatter.HotKey*"></a>
  220. <h4 id="Terminal_Gui_TextFormatter_HotKey" data-uid="Terminal.Gui.TextFormatter.HotKey">HotKey</h4>
  221. <div class="markdown level1 summary">
  222. Gets the hotkey. Will be an upper case letter or digit.
  223. </div>
  224. <div class="markdown level1 conceptual"></div>
  225. <h5 class="decalaration">Declaration</h5>
  226. <div class="codewrapper">
  227. <pre><code class="lang-csharp hljs">public Key HotKey { get; }</code></pre>
  228. </div>
  229. <h5 class="propertyValue">Property Value</h5>
  230. <table class="table table-bordered table-striped table-condensed">
  231. <thead>
  232. <tr>
  233. <th>Type</th>
  234. <th>Description</th>
  235. </tr>
  236. </thead>
  237. <tbody>
  238. <tr>
  239. <td><a class="xref" href="Terminal.Gui.Key.html">Key</a></td>
  240. <td></td>
  241. </tr>
  242. </tbody>
  243. </table>
  244. <a id="Terminal_Gui_TextFormatter_HotKeyPos_" data-uid="Terminal.Gui.TextFormatter.HotKeyPos*"></a>
  245. <h4 id="Terminal_Gui_TextFormatter_HotKeyPos" data-uid="Terminal.Gui.TextFormatter.HotKeyPos">HotKeyPos</h4>
  246. <div class="markdown level1 summary">
  247. The position in the text of the hotkey. The hotkey will be rendered using the hot color.
  248. </div>
  249. <div class="markdown level1 conceptual"></div>
  250. <h5 class="decalaration">Declaration</h5>
  251. <div class="codewrapper">
  252. <pre><code class="lang-csharp hljs">public int HotKeyPos { get; set; }</code></pre>
  253. </div>
  254. <h5 class="propertyValue">Property Value</h5>
  255. <table class="table table-bordered table-striped table-condensed">
  256. <thead>
  257. <tr>
  258. <th>Type</th>
  259. <th>Description</th>
  260. </tr>
  261. </thead>
  262. <tbody>
  263. <tr>
  264. <td><span class="xref">System.Int32</span></td>
  265. <td></td>
  266. </tr>
  267. </tbody>
  268. </table>
  269. <a id="Terminal_Gui_TextFormatter_HotKeySpecifier_" data-uid="Terminal.Gui.TextFormatter.HotKeySpecifier*"></a>
  270. <h4 id="Terminal_Gui_TextFormatter_HotKeySpecifier" data-uid="Terminal.Gui.TextFormatter.HotKeySpecifier">HotKeySpecifier</h4>
  271. <div class="markdown level1 summary">
  272. The specifier character for the hotkey (e.g. &apos;_&apos;). Set to &apos;\xffff&apos; to disable hotkey support for this View instance. The default is &apos;\xffff&apos;.
  273. </div>
  274. <div class="markdown level1 conceptual"></div>
  275. <h5 class="decalaration">Declaration</h5>
  276. <div class="codewrapper">
  277. <pre><code class="lang-csharp hljs">public Rune HotKeySpecifier { get; set; }</code></pre>
  278. </div>
  279. <h5 class="propertyValue">Property Value</h5>
  280. <table class="table table-bordered table-striped table-condensed">
  281. <thead>
  282. <tr>
  283. <th>Type</th>
  284. <th>Description</th>
  285. </tr>
  286. </thead>
  287. <tbody>
  288. <tr>
  289. <td><span class="xref">System.Rune</span></td>
  290. <td></td>
  291. </tr>
  292. </tbody>
  293. </table>
  294. <a id="Terminal_Gui_TextFormatter_HotKeyTagMask_" data-uid="Terminal.Gui.TextFormatter.HotKeyTagMask*"></a>
  295. <h4 id="Terminal_Gui_TextFormatter_HotKeyTagMask" data-uid="Terminal.Gui.TextFormatter.HotKeyTagMask">HotKeyTagMask</h4>
  296. <div class="markdown level1 summary">
  297. Specifies the mask to apply to the hotkey to tag it as the hotkey. The default value of <code>0x100000</code> causes
  298. the underlying Rune to be identified as a &quot;private use&quot; Unicode character.
  299. </div>
  300. <div class="markdown level1 conceptual"></div>
  301. <h5 class="decalaration">Declaration</h5>
  302. <div class="codewrapper">
  303. <pre><code class="lang-csharp hljs">public uint HotKeyTagMask { get; set; }</code></pre>
  304. </div>
  305. <h5 class="propertyValue">Property Value</h5>
  306. <table class="table table-bordered table-striped table-condensed">
  307. <thead>
  308. <tr>
  309. <th>Type</th>
  310. <th>Description</th>
  311. </tr>
  312. </thead>
  313. <tbody>
  314. <tr>
  315. <td><span class="xref">System.UInt32</span></td>
  316. <td></td>
  317. </tr>
  318. </tbody>
  319. </table>
  320. <a id="Terminal_Gui_TextFormatter_Lines_" data-uid="Terminal.Gui.TextFormatter.Lines*"></a>
  321. <h4 id="Terminal_Gui_TextFormatter_Lines" data-uid="Terminal.Gui.TextFormatter.Lines">Lines</h4>
  322. <div class="markdown level1 summary">
  323. Gets the formatted lines.
  324. </div>
  325. <div class="markdown level1 conceptual"></div>
  326. <h5 class="decalaration">Declaration</h5>
  327. <div class="codewrapper">
  328. <pre><code class="lang-csharp hljs">public List&lt;ustring&gt; Lines { get; }</code></pre>
  329. </div>
  330. <h5 class="propertyValue">Property Value</h5>
  331. <table class="table table-bordered table-striped table-condensed">
  332. <thead>
  333. <tr>
  334. <th>Type</th>
  335. <th>Description</th>
  336. </tr>
  337. </thead>
  338. <tbody>
  339. <tr>
  340. <td><span class="xref">System.Collections.Generic.List</span>&lt;<span class="xref">NStack.ustring</span>&gt;</td>
  341. <td></td>
  342. </tr>
  343. </tbody>
  344. </table>
  345. <h5 id="Terminal_Gui_TextFormatter_Lines_remarks">Remarks</h5>
  346. <div class="markdown level1 remarks">
  347. <p>
  348. Upon a &apos;get&apos; of this property, if the text needs to be formatted (if <a class="xref" href="Terminal.Gui.TextFormatter.html#Terminal_Gui_TextFormatter_NeedsFormat">NeedsFormat</a> is <code>true</code>)
  349. <a class="xref" href="Terminal.Gui.TextFormatter.html#Terminal_Gui_TextFormatter_Format_NStack_ustring_System_Int32_System_Boolean_System_Boolean_System_Boolean_System_Int32_">Format(ustring, Int32, Boolean, Boolean, Boolean, Int32)</a> will be called internally.
  350. </p>
  351. </div>
  352. <a id="Terminal_Gui_TextFormatter_NeedsFormat_" data-uid="Terminal.Gui.TextFormatter.NeedsFormat*"></a>
  353. <h4 id="Terminal_Gui_TextFormatter_NeedsFormat" data-uid="Terminal.Gui.TextFormatter.NeedsFormat">NeedsFormat</h4>
  354. <div class="markdown level1 summary">
  355. Gets or sets whether the <a class="xref" href="Terminal.Gui.TextFormatter.html">TextFormatter</a> needs to format the text when <a class="xref" href="Terminal.Gui.TextFormatter.html#Terminal_Gui_TextFormatter_Draw_Terminal_Gui_Rect_Terminal_Gui_Attribute_Terminal_Gui_Attribute_">Draw(Rect, Attribute, Attribute)</a> is called.
  356. If it is <code>false</code> when Draw is called, the Draw call will be faster.
  357. </div>
  358. <div class="markdown level1 conceptual"></div>
  359. <h5 class="decalaration">Declaration</h5>
  360. <div class="codewrapper">
  361. <pre><code class="lang-csharp hljs">public bool NeedsFormat { get; set; }</code></pre>
  362. </div>
  363. <h5 class="propertyValue">Property Value</h5>
  364. <table class="table table-bordered table-striped table-condensed">
  365. <thead>
  366. <tr>
  367. <th>Type</th>
  368. <th>Description</th>
  369. </tr>
  370. </thead>
  371. <tbody>
  372. <tr>
  373. <td><span class="xref">System.Boolean</span></td>
  374. <td></td>
  375. </tr>
  376. </tbody>
  377. </table>
  378. <h5 id="Terminal_Gui_TextFormatter_NeedsFormat_remarks">Remarks</h5>
  379. <div class="markdown level1 remarks">
  380. <p>
  381. This is set to true when the properties of <a class="xref" href="Terminal.Gui.TextFormatter.html">TextFormatter</a> are set.
  382. </p>
  383. </div>
  384. <a id="Terminal_Gui_TextFormatter_Size_" data-uid="Terminal.Gui.TextFormatter.Size*"></a>
  385. <h4 id="Terminal_Gui_TextFormatter_Size" data-uid="Terminal.Gui.TextFormatter.Size">Size</h4>
  386. <div class="markdown level1 summary">
  387. Gets or sets the size of the area the text will be constrained to when formatted.
  388. </div>
  389. <div class="markdown level1 conceptual"></div>
  390. <h5 class="decalaration">Declaration</h5>
  391. <div class="codewrapper">
  392. <pre><code class="lang-csharp hljs">public Size Size { get; set; }</code></pre>
  393. </div>
  394. <h5 class="propertyValue">Property Value</h5>
  395. <table class="table table-bordered table-striped table-condensed">
  396. <thead>
  397. <tr>
  398. <th>Type</th>
  399. <th>Description</th>
  400. </tr>
  401. </thead>
  402. <tbody>
  403. <tr>
  404. <td><a class="xref" href="Terminal.Gui.Size.html">Size</a></td>
  405. <td></td>
  406. </tr>
  407. </tbody>
  408. </table>
  409. <a id="Terminal_Gui_TextFormatter_Text_" data-uid="Terminal.Gui.TextFormatter.Text*"></a>
  410. <h4 id="Terminal_Gui_TextFormatter_Text" data-uid="Terminal.Gui.TextFormatter.Text">Text</h4>
  411. <div class="markdown level1 summary">
  412. The text to be displayed. This text is never modified.
  413. </div>
  414. <div class="markdown level1 conceptual"></div>
  415. <h5 class="decalaration">Declaration</h5>
  416. <div class="codewrapper">
  417. <pre><code class="lang-csharp hljs">public virtual ustring Text { get; set; }</code></pre>
  418. </div>
  419. <h5 class="propertyValue">Property Value</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><span class="xref">NStack.ustring</span></td>
  430. <td></td>
  431. </tr>
  432. </tbody>
  433. </table>
  434. <a id="Terminal_Gui_TextFormatter_VerticalAlignment_" data-uid="Terminal.Gui.TextFormatter.VerticalAlignment*"></a>
  435. <h4 id="Terminal_Gui_TextFormatter_VerticalAlignment" data-uid="Terminal.Gui.TextFormatter.VerticalAlignment">VerticalAlignment</h4>
  436. <div class="markdown level1 summary">
  437. Controls the vertical text-alignment property.
  438. </div>
  439. <div class="markdown level1 conceptual"></div>
  440. <h5 class="decalaration">Declaration</h5>
  441. <div class="codewrapper">
  442. <pre><code class="lang-csharp hljs">public VerticalTextAlignment VerticalAlignment { get; set; }</code></pre>
  443. </div>
  444. <h5 class="propertyValue">Property Value</h5>
  445. <table class="table table-bordered table-striped table-condensed">
  446. <thead>
  447. <tr>
  448. <th>Type</th>
  449. <th>Description</th>
  450. </tr>
  451. </thead>
  452. <tbody>
  453. <tr>
  454. <td><a class="xref" href="Terminal.Gui.VerticalTextAlignment.html">VerticalTextAlignment</a></td>
  455. <td>The text vertical alignment.</td>
  456. </tr>
  457. </tbody>
  458. </table>
  459. <h3 id="methods">Methods
  460. </h3>
  461. <a id="Terminal_Gui_TextFormatter_CalcRect_" data-uid="Terminal.Gui.TextFormatter.CalcRect*"></a>
  462. <h4 id="Terminal_Gui_TextFormatter_CalcRect_System_Int32_System_Int32_NStack_ustring_Terminal_Gui_TextDirection_" data-uid="Terminal.Gui.TextFormatter.CalcRect(System.Int32,System.Int32,NStack.ustring,Terminal.Gui.TextDirection)">CalcRect(Int32, Int32, ustring, TextDirection)</h4>
  463. <div class="markdown level1 summary">
  464. Calculates the rectangle required to hold text, assuming no word wrapping.
  465. </div>
  466. <div class="markdown level1 conceptual"></div>
  467. <h5 class="decalaration">Declaration</h5>
  468. <div class="codewrapper">
  469. <pre><code class="lang-csharp hljs">public static Rect CalcRect(int x, int y, ustring text, TextDirection direction = TextDirection.LeftRight_TopBottom)</code></pre>
  470. </div>
  471. <h5 class="parameters">Parameters</h5>
  472. <table class="table table-bordered table-striped table-condensed">
  473. <thead>
  474. <tr>
  475. <th>Type</th>
  476. <th>Name</th>
  477. <th>Description</th>
  478. </tr>
  479. </thead>
  480. <tbody>
  481. <tr>
  482. <td><span class="xref">System.Int32</span></td>
  483. <td><span class="parametername">x</span></td>
  484. <td>The x location of the rectangle</td>
  485. </tr>
  486. <tr>
  487. <td><span class="xref">System.Int32</span></td>
  488. <td><span class="parametername">y</span></td>
  489. <td>The y location of the rectangle</td>
  490. </tr>
  491. <tr>
  492. <td><span class="xref">NStack.ustring</span></td>
  493. <td><span class="parametername">text</span></td>
  494. <td>The text to measure</td>
  495. </tr>
  496. <tr>
  497. <td><a class="xref" href="Terminal.Gui.TextDirection.html">TextDirection</a></td>
  498. <td><span class="parametername">direction</span></td>
  499. <td>The text direction.</td>
  500. </tr>
  501. </tbody>
  502. </table>
  503. <h5 class="returns">Returns</h5>
  504. <table class="table table-bordered table-striped table-condensed">
  505. <thead>
  506. <tr>
  507. <th>Type</th>
  508. <th>Description</th>
  509. </tr>
  510. </thead>
  511. <tbody>
  512. <tr>
  513. <td><a class="xref" href="Terminal.Gui.Rect.html">Rect</a></td>
  514. <td></td>
  515. </tr>
  516. </tbody>
  517. </table>
  518. <a id="Terminal_Gui_TextFormatter_ClipAndJustify_" data-uid="Terminal.Gui.TextFormatter.ClipAndJustify*"></a>
  519. <h4 id="Terminal_Gui_TextFormatter_ClipAndJustify_NStack_ustring_System_Int32_System_Boolean_" data-uid="Terminal.Gui.TextFormatter.ClipAndJustify(NStack.ustring,System.Int32,System.Boolean)">ClipAndJustify(ustring, Int32, Boolean)</h4>
  520. <div class="markdown level1 summary">
  521. Justifies text within a specified width.
  522. </div>
  523. <div class="markdown level1 conceptual"></div>
  524. <h5 class="decalaration">Declaration</h5>
  525. <div class="codewrapper">
  526. <pre><code class="lang-csharp hljs">public static ustring ClipAndJustify(ustring text, int width, bool justify)</code></pre>
  527. </div>
  528. <h5 class="parameters">Parameters</h5>
  529. <table class="table table-bordered table-striped table-condensed">
  530. <thead>
  531. <tr>
  532. <th>Type</th>
  533. <th>Name</th>
  534. <th>Description</th>
  535. </tr>
  536. </thead>
  537. <tbody>
  538. <tr>
  539. <td><span class="xref">NStack.ustring</span></td>
  540. <td><span class="parametername">text</span></td>
  541. <td>The text to justify.</td>
  542. </tr>
  543. <tr>
  544. <td><span class="xref">System.Int32</span></td>
  545. <td><span class="parametername">width</span></td>
  546. <td>If the text length is greater that <code>width</code> it will be clipped.</td>
  547. </tr>
  548. <tr>
  549. <td><span class="xref">System.Boolean</span></td>
  550. <td><span class="parametername">justify</span></td>
  551. <td>Justify.</td>
  552. </tr>
  553. </tbody>
  554. </table>
  555. <h5 class="returns">Returns</h5>
  556. <table class="table table-bordered table-striped table-condensed">
  557. <thead>
  558. <tr>
  559. <th>Type</th>
  560. <th>Description</th>
  561. </tr>
  562. </thead>
  563. <tbody>
  564. <tr>
  565. <td><span class="xref">NStack.ustring</span></td>
  566. <td>Justified and clipped text.</td>
  567. </tr>
  568. </tbody>
  569. </table>
  570. <a id="Terminal_Gui_TextFormatter_ClipAndJustify_" data-uid="Terminal.Gui.TextFormatter.ClipAndJustify*"></a>
  571. <h4 id="Terminal_Gui_TextFormatter_ClipAndJustify_NStack_ustring_System_Int32_Terminal_Gui_TextAlignment_" data-uid="Terminal.Gui.TextFormatter.ClipAndJustify(NStack.ustring,System.Int32,Terminal.Gui.TextAlignment)">ClipAndJustify(ustring, Int32, TextAlignment)</h4>
  572. <div class="markdown level1 summary">
  573. Justifies text within a specified width.
  574. </div>
  575. <div class="markdown level1 conceptual"></div>
  576. <h5 class="decalaration">Declaration</h5>
  577. <div class="codewrapper">
  578. <pre><code class="lang-csharp hljs">public static ustring ClipAndJustify(ustring text, int width, TextAlignment talign)</code></pre>
  579. </div>
  580. <h5 class="parameters">Parameters</h5>
  581. <table class="table table-bordered table-striped table-condensed">
  582. <thead>
  583. <tr>
  584. <th>Type</th>
  585. <th>Name</th>
  586. <th>Description</th>
  587. </tr>
  588. </thead>
  589. <tbody>
  590. <tr>
  591. <td><span class="xref">NStack.ustring</span></td>
  592. <td><span class="parametername">text</span></td>
  593. <td>The text to justify.</td>
  594. </tr>
  595. <tr>
  596. <td><span class="xref">System.Int32</span></td>
  597. <td><span class="parametername">width</span></td>
  598. <td>If the text length is greater that <code>width</code> it will be clipped.</td>
  599. </tr>
  600. <tr>
  601. <td><a class="xref" href="Terminal.Gui.TextAlignment.html">TextAlignment</a></td>
  602. <td><span class="parametername">talign</span></td>
  603. <td>Alignment.</td>
  604. </tr>
  605. </tbody>
  606. </table>
  607. <h5 class="returns">Returns</h5>
  608. <table class="table table-bordered table-striped table-condensed">
  609. <thead>
  610. <tr>
  611. <th>Type</th>
  612. <th>Description</th>
  613. </tr>
  614. </thead>
  615. <tbody>
  616. <tr>
  617. <td><span class="xref">NStack.ustring</span></td>
  618. <td>Justified and clipped text.</td>
  619. </tr>
  620. </tbody>
  621. </table>
  622. <a id="Terminal_Gui_TextFormatter_ClipOrPad_" data-uid="Terminal.Gui.TextFormatter.ClipOrPad*"></a>
  623. <h4 id="Terminal_Gui_TextFormatter_ClipOrPad_System_String_System_Int32_" data-uid="Terminal.Gui.TextFormatter.ClipOrPad(System.String,System.Int32)">ClipOrPad(String, Int32)</h4>
  624. <div class="markdown level1 summary">
  625. Adds trailing whitespace or truncates <code data-dev-comment-type="paramref" class="paramref">text</code>
  626. so that it fits exactly <code data-dev-comment-type="paramref" class="paramref">width</code> console units.
  627. Note that some unicode characters take 2+ columns
  628. </div>
  629. <div class="markdown level1 conceptual"></div>
  630. <h5 class="decalaration">Declaration</h5>
  631. <div class="codewrapper">
  632. <pre><code class="lang-csharp hljs">public static string ClipOrPad(string text, int width)</code></pre>
  633. </div>
  634. <h5 class="parameters">Parameters</h5>
  635. <table class="table table-bordered table-striped table-condensed">
  636. <thead>
  637. <tr>
  638. <th>Type</th>
  639. <th>Name</th>
  640. <th>Description</th>
  641. </tr>
  642. </thead>
  643. <tbody>
  644. <tr>
  645. <td><span class="xref">System.String</span></td>
  646. <td><span class="parametername">text</span></td>
  647. <td></td>
  648. </tr>
  649. <tr>
  650. <td><span class="xref">System.Int32</span></td>
  651. <td><span class="parametername">width</span></td>
  652. <td></td>
  653. </tr>
  654. </tbody>
  655. </table>
  656. <h5 class="returns">Returns</h5>
  657. <table class="table table-bordered table-striped table-condensed">
  658. <thead>
  659. <tr>
  660. <th>Type</th>
  661. <th>Description</th>
  662. </tr>
  663. </thead>
  664. <tbody>
  665. <tr>
  666. <td><span class="xref">System.String</span></td>
  667. <td></td>
  668. </tr>
  669. </tbody>
  670. </table>
  671. <a id="Terminal_Gui_TextFormatter_Draw_" data-uid="Terminal.Gui.TextFormatter.Draw*"></a>
  672. <h4 id="Terminal_Gui_TextFormatter_Draw_Terminal_Gui_Rect_Terminal_Gui_Attribute_Terminal_Gui_Attribute_" data-uid="Terminal.Gui.TextFormatter.Draw(Terminal.Gui.Rect,Terminal.Gui.Attribute,Terminal.Gui.Attribute)">Draw(Rect, Attribute, Attribute)</h4>
  673. <div class="markdown level1 summary">
  674. Draws the text held by <a class="xref" href="Terminal.Gui.TextFormatter.html">TextFormatter</a> to <a class="xref" href="Terminal.Gui.Application.html#Terminal_Gui_Application_Driver">Driver</a> using the colors specified.
  675. </div>
  676. <div class="markdown level1 conceptual"></div>
  677. <h5 class="decalaration">Declaration</h5>
  678. <div class="codewrapper">
  679. <pre><code class="lang-csharp hljs">public void Draw(Rect bounds, Attribute normalColor, Attribute hotColor)</code></pre>
  680. </div>
  681. <h5 class="parameters">Parameters</h5>
  682. <table class="table table-bordered table-striped table-condensed">
  683. <thead>
  684. <tr>
  685. <th>Type</th>
  686. <th>Name</th>
  687. <th>Description</th>
  688. </tr>
  689. </thead>
  690. <tbody>
  691. <tr>
  692. <td><a class="xref" href="Terminal.Gui.Rect.html">Rect</a></td>
  693. <td><span class="parametername">bounds</span></td>
  694. <td>Specifies the screen-relative location and maximum size for drawing the text.</td>
  695. </tr>
  696. <tr>
  697. <td><a class="xref" href="Terminal.Gui.Attribute.html">Attribute</a></td>
  698. <td><span class="parametername">normalColor</span></td>
  699. <td>The color to use for all text except the hotkey</td>
  700. </tr>
  701. <tr>
  702. <td><a class="xref" href="Terminal.Gui.Attribute.html">Attribute</a></td>
  703. <td><span class="parametername">hotColor</span></td>
  704. <td>The color to use to draw the hotkey</td>
  705. </tr>
  706. </tbody>
  707. </table>
  708. <a id="Terminal_Gui_TextFormatter_FindHotKey_" data-uid="Terminal.Gui.TextFormatter.FindHotKey*"></a>
  709. <h4 id="Terminal_Gui_TextFormatter_FindHotKey_NStack_ustring_System_Rune_System_Boolean_System_Int32__Terminal_Gui_Key__" data-uid="Terminal.Gui.TextFormatter.FindHotKey(NStack.ustring,System.Rune,System.Boolean,System.Int32@,Terminal.Gui.Key@)">FindHotKey(ustring, Rune, Boolean, out Int32, out Key)</h4>
  710. <div class="markdown level1 summary">
  711. Finds the hotkey and its location in text.
  712. </div>
  713. <div class="markdown level1 conceptual"></div>
  714. <h5 class="decalaration">Declaration</h5>
  715. <div class="codewrapper">
  716. <pre><code class="lang-csharp hljs">public static bool FindHotKey(ustring text, Rune hotKeySpecifier, bool firstUpperCase, out int hotPos, out Key hotKey)</code></pre>
  717. </div>
  718. <h5 class="parameters">Parameters</h5>
  719. <table class="table table-bordered table-striped table-condensed">
  720. <thead>
  721. <tr>
  722. <th>Type</th>
  723. <th>Name</th>
  724. <th>Description</th>
  725. </tr>
  726. </thead>
  727. <tbody>
  728. <tr>
  729. <td><span class="xref">NStack.ustring</span></td>
  730. <td><span class="parametername">text</span></td>
  731. <td>The text to look in.</td>
  732. </tr>
  733. <tr>
  734. <td><span class="xref">System.Rune</span></td>
  735. <td><span class="parametername">hotKeySpecifier</span></td>
  736. <td>The hotkey specifier (e.g. &apos;_&apos;) to look for.</td>
  737. </tr>
  738. <tr>
  739. <td><span class="xref">System.Boolean</span></td>
  740. <td><span class="parametername">firstUpperCase</span></td>
  741. <td>If <code>true</code> the legacy behavior of identifying the first upper case character as the hotkey will be enabled.
  742. Regardless of the value of this parameter, <code>hotKeySpecifier</code> takes precedence.</td>
  743. </tr>
  744. <tr>
  745. <td><span class="xref">System.Int32</span></td>
  746. <td><span class="parametername">hotPos</span></td>
  747. <td>Outputs the Rune index into <code>text</code>.</td>
  748. </tr>
  749. <tr>
  750. <td><a class="xref" href="Terminal.Gui.Key.html">Key</a></td>
  751. <td><span class="parametername">hotKey</span></td>
  752. <td>Outputs the hotKey.</td>
  753. </tr>
  754. </tbody>
  755. </table>
  756. <h5 class="returns">Returns</h5>
  757. <table class="table table-bordered table-striped table-condensed">
  758. <thead>
  759. <tr>
  760. <th>Type</th>
  761. <th>Description</th>
  762. </tr>
  763. </thead>
  764. <tbody>
  765. <tr>
  766. <td><span class="xref">System.Boolean</span></td>
  767. <td><code>true</code> if a hotkey was found; <code>false</code> otherwise.</td>
  768. </tr>
  769. </tbody>
  770. </table>
  771. <a id="Terminal_Gui_TextFormatter_Format_" data-uid="Terminal.Gui.TextFormatter.Format*"></a>
  772. <h4 id="Terminal_Gui_TextFormatter_Format_NStack_ustring_System_Int32_System_Boolean_System_Boolean_System_Boolean_System_Int32_" data-uid="Terminal.Gui.TextFormatter.Format(NStack.ustring,System.Int32,System.Boolean,System.Boolean,System.Boolean,System.Int32)">Format(ustring, Int32, Boolean, Boolean, Boolean, Int32)</h4>
  773. <div class="markdown level1 summary">
  774. Reformats text into lines, applying text alignment and optionally wrapping text to new lines on word boundaries.
  775. </div>
  776. <div class="markdown level1 conceptual"></div>
  777. <h5 class="decalaration">Declaration</h5>
  778. <div class="codewrapper">
  779. <pre><code class="lang-csharp hljs">public static List&lt;ustring&gt; Format(ustring text, int width, bool justify, bool wordWrap, bool preserveTrailingSpaces = false, int tabWidth = 0)</code></pre>
  780. </div>
  781. <h5 class="parameters">Parameters</h5>
  782. <table class="table table-bordered table-striped table-condensed">
  783. <thead>
  784. <tr>
  785. <th>Type</th>
  786. <th>Name</th>
  787. <th>Description</th>
  788. </tr>
  789. </thead>
  790. <tbody>
  791. <tr>
  792. <td><span class="xref">NStack.ustring</span></td>
  793. <td><span class="parametername">text</span></td>
  794. <td></td>
  795. </tr>
  796. <tr>
  797. <td><span class="xref">System.Int32</span></td>
  798. <td><span class="parametername">width</span></td>
  799. <td>The width to bound the text to for word wrapping and clipping.</td>
  800. </tr>
  801. <tr>
  802. <td><span class="xref">System.Boolean</span></td>
  803. <td><span class="parametername">justify</span></td>
  804. <td>Specifies whether the text should be justified.</td>
  805. </tr>
  806. <tr>
  807. <td><span class="xref">System.Boolean</span></td>
  808. <td><span class="parametername">wordWrap</span></td>
  809. <td>If <code>true</code>, the text will be wrapped to new lines as need. If <code>false</code>, forces text to fit a single line. Line breaks are converted to spaces. The text will be clipped to <code>width</code></td>
  810. </tr>
  811. <tr>
  812. <td><span class="xref">System.Boolean</span></td>
  813. <td><span class="parametername">preserveTrailingSpaces</span></td>
  814. <td>If <code>true</code> and &apos;wordWrap&apos; also true, the wrapped text will keep the trailing spaces. If <code>false</code>, the trailing spaces will be trimmed.</td>
  815. </tr>
  816. <tr>
  817. <td><span class="xref">System.Int32</span></td>
  818. <td><span class="parametername">tabWidth</span></td>
  819. <td>The tab width.</td>
  820. </tr>
  821. </tbody>
  822. </table>
  823. <h5 class="returns">Returns</h5>
  824. <table class="table table-bordered table-striped table-condensed">
  825. <thead>
  826. <tr>
  827. <th>Type</th>
  828. <th>Description</th>
  829. </tr>
  830. </thead>
  831. <tbody>
  832. <tr>
  833. <td><span class="xref">System.Collections.Generic.List</span>&lt;<span class="xref">NStack.ustring</span>&gt;</td>
  834. <td>A list of word wrapped lines.</td>
  835. </tr>
  836. </tbody>
  837. </table>
  838. <h5 id="Terminal_Gui_TextFormatter_Format_NStack_ustring_System_Int32_System_Boolean_System_Boolean_System_Boolean_System_Int32__remarks">Remarks</h5>
  839. <div class="markdown level1 remarks">
  840. <p>
  841. An empty <code>text</code> string will result in one empty line.
  842. </p>
  843. <p>
  844. If <code>width</code> is 0, a single, empty line will be returned.
  845. </p>
  846. <p>
  847. If <code>width</code> is int.MaxValue, the text will be formatted to the maximum width possible.
  848. </p>
  849. </div>
  850. <a id="Terminal_Gui_TextFormatter_Format_" data-uid="Terminal.Gui.TextFormatter.Format*"></a>
  851. <h4 id="Terminal_Gui_TextFormatter_Format_NStack_ustring_System_Int32_Terminal_Gui_TextAlignment_System_Boolean_System_Boolean_System_Int32_" data-uid="Terminal.Gui.TextFormatter.Format(NStack.ustring,System.Int32,Terminal.Gui.TextAlignment,System.Boolean,System.Boolean,System.Int32)">Format(ustring, Int32, TextAlignment, Boolean, Boolean, Int32)</h4>
  852. <div class="markdown level1 summary">
  853. Reformats text into lines, applying text alignment and optionally wrapping text to new lines on word boundaries.
  854. </div>
  855. <div class="markdown level1 conceptual"></div>
  856. <h5 class="decalaration">Declaration</h5>
  857. <div class="codewrapper">
  858. <pre><code class="lang-csharp hljs">public static List&lt;ustring&gt; Format(ustring text, int width, TextAlignment talign, bool wordWrap, bool preserveTrailingSpaces = false, int tabWidth = 0)</code></pre>
  859. </div>
  860. <h5 class="parameters">Parameters</h5>
  861. <table class="table table-bordered table-striped table-condensed">
  862. <thead>
  863. <tr>
  864. <th>Type</th>
  865. <th>Name</th>
  866. <th>Description</th>
  867. </tr>
  868. </thead>
  869. <tbody>
  870. <tr>
  871. <td><span class="xref">NStack.ustring</span></td>
  872. <td><span class="parametername">text</span></td>
  873. <td></td>
  874. </tr>
  875. <tr>
  876. <td><span class="xref">System.Int32</span></td>
  877. <td><span class="parametername">width</span></td>
  878. <td>The width to bound the text to for word wrapping and clipping.</td>
  879. </tr>
  880. <tr>
  881. <td><a class="xref" href="Terminal.Gui.TextAlignment.html">TextAlignment</a></td>
  882. <td><span class="parametername">talign</span></td>
  883. <td>Specifies how the text will be aligned horizontally.</td>
  884. </tr>
  885. <tr>
  886. <td><span class="xref">System.Boolean</span></td>
  887. <td><span class="parametername">wordWrap</span></td>
  888. <td>If <code>true</code>, the text will be wrapped to new lines as need. If <code>false</code>, forces text to fit a single line. Line breaks are converted to spaces. The text will be clipped to <code>width</code></td>
  889. </tr>
  890. <tr>
  891. <td><span class="xref">System.Boolean</span></td>
  892. <td><span class="parametername">preserveTrailingSpaces</span></td>
  893. <td>If <code>true</code> and &apos;wordWrap&apos; also true, the wrapped text will keep the trailing spaces. If <code>false</code>, the trailing spaces will be trimmed.</td>
  894. </tr>
  895. <tr>
  896. <td><span class="xref">System.Int32</span></td>
  897. <td><span class="parametername">tabWidth</span></td>
  898. <td>The tab width.</td>
  899. </tr>
  900. </tbody>
  901. </table>
  902. <h5 class="returns">Returns</h5>
  903. <table class="table table-bordered table-striped table-condensed">
  904. <thead>
  905. <tr>
  906. <th>Type</th>
  907. <th>Description</th>
  908. </tr>
  909. </thead>
  910. <tbody>
  911. <tr>
  912. <td><span class="xref">System.Collections.Generic.List</span>&lt;<span class="xref">NStack.ustring</span>&gt;</td>
  913. <td>A list of word wrapped lines.</td>
  914. </tr>
  915. </tbody>
  916. </table>
  917. <h5 id="Terminal_Gui_TextFormatter_Format_NStack_ustring_System_Int32_Terminal_Gui_TextAlignment_System_Boolean_System_Boolean_System_Int32__remarks">Remarks</h5>
  918. <div class="markdown level1 remarks">
  919. <p>
  920. An empty <code>text</code> string will result in one empty line.
  921. </p>
  922. <p>
  923. If <code>width</code> is 0, a single, empty line will be returned.
  924. </p>
  925. <p>
  926. If <code>width</code> is int.MaxValue, the text will be formatted to the maximum width possible.
  927. </p>
  928. </div>
  929. <a id="Terminal_Gui_TextFormatter_IsHorizontalDirection_" data-uid="Terminal.Gui.TextFormatter.IsHorizontalDirection*"></a>
  930. <h4 id="Terminal_Gui_TextFormatter_IsHorizontalDirection_Terminal_Gui_TextDirection_" data-uid="Terminal.Gui.TextFormatter.IsHorizontalDirection(Terminal.Gui.TextDirection)">IsHorizontalDirection(TextDirection)</h4>
  931. <div class="markdown level1 summary">
  932. Check if it is a horizontal direction
  933. </div>
  934. <div class="markdown level1 conceptual"></div>
  935. <h5 class="decalaration">Declaration</h5>
  936. <div class="codewrapper">
  937. <pre><code class="lang-csharp hljs">public static bool IsHorizontalDirection(TextDirection textDirection)</code></pre>
  938. </div>
  939. <h5 class="parameters">Parameters</h5>
  940. <table class="table table-bordered table-striped table-condensed">
  941. <thead>
  942. <tr>
  943. <th>Type</th>
  944. <th>Name</th>
  945. <th>Description</th>
  946. </tr>
  947. </thead>
  948. <tbody>
  949. <tr>
  950. <td><a class="xref" href="Terminal.Gui.TextDirection.html">TextDirection</a></td>
  951. <td><span class="parametername">textDirection</span></td>
  952. <td></td>
  953. </tr>
  954. </tbody>
  955. </table>
  956. <h5 class="returns">Returns</h5>
  957. <table class="table table-bordered table-striped table-condensed">
  958. <thead>
  959. <tr>
  960. <th>Type</th>
  961. <th>Description</th>
  962. </tr>
  963. </thead>
  964. <tbody>
  965. <tr>
  966. <td><span class="xref">System.Boolean</span></td>
  967. <td></td>
  968. </tr>
  969. </tbody>
  970. </table>
  971. <a id="Terminal_Gui_TextFormatter_IsLeftToRight_" data-uid="Terminal.Gui.TextFormatter.IsLeftToRight*"></a>
  972. <h4 id="Terminal_Gui_TextFormatter_IsLeftToRight_Terminal_Gui_TextDirection_" data-uid="Terminal.Gui.TextFormatter.IsLeftToRight(Terminal.Gui.TextDirection)">IsLeftToRight(TextDirection)</h4>
  973. <div class="markdown level1 summary">
  974. Check if it is Left to Right direction
  975. </div>
  976. <div class="markdown level1 conceptual"></div>
  977. <h5 class="decalaration">Declaration</h5>
  978. <div class="codewrapper">
  979. <pre><code class="lang-csharp hljs">public static bool IsLeftToRight(TextDirection textDirection)</code></pre>
  980. </div>
  981. <h5 class="parameters">Parameters</h5>
  982. <table class="table table-bordered table-striped table-condensed">
  983. <thead>
  984. <tr>
  985. <th>Type</th>
  986. <th>Name</th>
  987. <th>Description</th>
  988. </tr>
  989. </thead>
  990. <tbody>
  991. <tr>
  992. <td><a class="xref" href="Terminal.Gui.TextDirection.html">TextDirection</a></td>
  993. <td><span class="parametername">textDirection</span></td>
  994. <td></td>
  995. </tr>
  996. </tbody>
  997. </table>
  998. <h5 class="returns">Returns</h5>
  999. <table class="table table-bordered table-striped table-condensed">
  1000. <thead>
  1001. <tr>
  1002. <th>Type</th>
  1003. <th>Description</th>
  1004. </tr>
  1005. </thead>
  1006. <tbody>
  1007. <tr>
  1008. <td><span class="xref">System.Boolean</span></td>
  1009. <td></td>
  1010. </tr>
  1011. </tbody>
  1012. </table>
  1013. <a id="Terminal_Gui_TextFormatter_IsTopToBottom_" data-uid="Terminal.Gui.TextFormatter.IsTopToBottom*"></a>
  1014. <h4 id="Terminal_Gui_TextFormatter_IsTopToBottom_Terminal_Gui_TextDirection_" data-uid="Terminal.Gui.TextFormatter.IsTopToBottom(Terminal.Gui.TextDirection)">IsTopToBottom(TextDirection)</h4>
  1015. <div class="markdown level1 summary">
  1016. Check if it is Top to Bottom direction
  1017. </div>
  1018. <div class="markdown level1 conceptual"></div>
  1019. <h5 class="decalaration">Declaration</h5>
  1020. <div class="codewrapper">
  1021. <pre><code class="lang-csharp hljs">public static bool IsTopToBottom(TextDirection textDirection)</code></pre>
  1022. </div>
  1023. <h5 class="parameters">Parameters</h5>
  1024. <table class="table table-bordered table-striped table-condensed">
  1025. <thead>
  1026. <tr>
  1027. <th>Type</th>
  1028. <th>Name</th>
  1029. <th>Description</th>
  1030. </tr>
  1031. </thead>
  1032. <tbody>
  1033. <tr>
  1034. <td><a class="xref" href="Terminal.Gui.TextDirection.html">TextDirection</a></td>
  1035. <td><span class="parametername">textDirection</span></td>
  1036. <td></td>
  1037. </tr>
  1038. </tbody>
  1039. </table>
  1040. <h5 class="returns">Returns</h5>
  1041. <table class="table table-bordered table-striped table-condensed">
  1042. <thead>
  1043. <tr>
  1044. <th>Type</th>
  1045. <th>Description</th>
  1046. </tr>
  1047. </thead>
  1048. <tbody>
  1049. <tr>
  1050. <td><span class="xref">System.Boolean</span></td>
  1051. <td></td>
  1052. </tr>
  1053. </tbody>
  1054. </table>
  1055. <a id="Terminal_Gui_TextFormatter_IsVerticalDirection_" data-uid="Terminal.Gui.TextFormatter.IsVerticalDirection*"></a>
  1056. <h4 id="Terminal_Gui_TextFormatter_IsVerticalDirection_Terminal_Gui_TextDirection_" data-uid="Terminal.Gui.TextFormatter.IsVerticalDirection(Terminal.Gui.TextDirection)">IsVerticalDirection(TextDirection)</h4>
  1057. <div class="markdown level1 summary">
  1058. Check if it is a vertical direction
  1059. </div>
  1060. <div class="markdown level1 conceptual"></div>
  1061. <h5 class="decalaration">Declaration</h5>
  1062. <div class="codewrapper">
  1063. <pre><code class="lang-csharp hljs">public static bool IsVerticalDirection(TextDirection textDirection)</code></pre>
  1064. </div>
  1065. <h5 class="parameters">Parameters</h5>
  1066. <table class="table table-bordered table-striped table-condensed">
  1067. <thead>
  1068. <tr>
  1069. <th>Type</th>
  1070. <th>Name</th>
  1071. <th>Description</th>
  1072. </tr>
  1073. </thead>
  1074. <tbody>
  1075. <tr>
  1076. <td><a class="xref" href="Terminal.Gui.TextDirection.html">TextDirection</a></td>
  1077. <td><span class="parametername">textDirection</span></td>
  1078. <td></td>
  1079. </tr>
  1080. </tbody>
  1081. </table>
  1082. <h5 class="returns">Returns</h5>
  1083. <table class="table table-bordered table-striped table-condensed">
  1084. <thead>
  1085. <tr>
  1086. <th>Type</th>
  1087. <th>Description</th>
  1088. </tr>
  1089. </thead>
  1090. <tbody>
  1091. <tr>
  1092. <td><span class="xref">System.Boolean</span></td>
  1093. <td></td>
  1094. </tr>
  1095. </tbody>
  1096. </table>
  1097. <a id="Terminal_Gui_TextFormatter_Justify_" data-uid="Terminal.Gui.TextFormatter.Justify*"></a>
  1098. <h4 id="Terminal_Gui_TextFormatter_Justify_NStack_ustring_System_Int32_System_Char_" data-uid="Terminal.Gui.TextFormatter.Justify(NStack.ustring,System.Int32,System.Char)">Justify(ustring, Int32, Char)</h4>
  1099. <div class="markdown level1 summary">
  1100. Justifies the text to fill the width provided. Space will be added between words (demarked by spaces and tabs) to
  1101. make the text just fit <code>width</code>. Spaces will not be added to the ends.
  1102. </div>
  1103. <div class="markdown level1 conceptual"></div>
  1104. <h5 class="decalaration">Declaration</h5>
  1105. <div class="codewrapper">
  1106. <pre><code class="lang-csharp hljs">public static ustring Justify(ustring text, int width, char spaceChar = ' ')</code></pre>
  1107. </div>
  1108. <h5 class="parameters">Parameters</h5>
  1109. <table class="table table-bordered table-striped table-condensed">
  1110. <thead>
  1111. <tr>
  1112. <th>Type</th>
  1113. <th>Name</th>
  1114. <th>Description</th>
  1115. </tr>
  1116. </thead>
  1117. <tbody>
  1118. <tr>
  1119. <td><span class="xref">NStack.ustring</span></td>
  1120. <td><span class="parametername">text</span></td>
  1121. <td></td>
  1122. </tr>
  1123. <tr>
  1124. <td><span class="xref">System.Int32</span></td>
  1125. <td><span class="parametername">width</span></td>
  1126. <td></td>
  1127. </tr>
  1128. <tr>
  1129. <td><span class="xref">System.Char</span></td>
  1130. <td><span class="parametername">spaceChar</span></td>
  1131. <td>Character to replace whitespace and pad with. For debugging purposes.</td>
  1132. </tr>
  1133. </tbody>
  1134. </table>
  1135. <h5 class="returns">Returns</h5>
  1136. <table class="table table-bordered table-striped table-condensed">
  1137. <thead>
  1138. <tr>
  1139. <th>Type</th>
  1140. <th>Description</th>
  1141. </tr>
  1142. </thead>
  1143. <tbody>
  1144. <tr>
  1145. <td><span class="xref">NStack.ustring</span></td>
  1146. <td>The justified text.</td>
  1147. </tr>
  1148. </tbody>
  1149. </table>
  1150. <a id="Terminal_Gui_TextFormatter_MaxLines_" data-uid="Terminal.Gui.TextFormatter.MaxLines*"></a>
  1151. <h4 id="Terminal_Gui_TextFormatter_MaxLines_NStack_ustring_System_Int32_" data-uid="Terminal.Gui.TextFormatter.MaxLines(NStack.ustring,System.Int32)">MaxLines(ustring, Int32)</h4>
  1152. <div class="markdown level1 summary">
  1153. Computes the number of lines needed to render the specified text given the width.
  1154. </div>
  1155. <div class="markdown level1 conceptual"></div>
  1156. <h5 class="decalaration">Declaration</h5>
  1157. <div class="codewrapper">
  1158. <pre><code class="lang-csharp hljs">public static int MaxLines(ustring text, int width)</code></pre>
  1159. </div>
  1160. <h5 class="parameters">Parameters</h5>
  1161. <table class="table table-bordered table-striped table-condensed">
  1162. <thead>
  1163. <tr>
  1164. <th>Type</th>
  1165. <th>Name</th>
  1166. <th>Description</th>
  1167. </tr>
  1168. </thead>
  1169. <tbody>
  1170. <tr>
  1171. <td><span class="xref">NStack.ustring</span></td>
  1172. <td><span class="parametername">text</span></td>
  1173. <td>Text, may contain newlines.</td>
  1174. </tr>
  1175. <tr>
  1176. <td><span class="xref">System.Int32</span></td>
  1177. <td><span class="parametername">width</span></td>
  1178. <td>The minimum width for the text.</td>
  1179. </tr>
  1180. </tbody>
  1181. </table>
  1182. <h5 class="returns">Returns</h5>
  1183. <table class="table table-bordered table-striped table-condensed">
  1184. <thead>
  1185. <tr>
  1186. <th>Type</th>
  1187. <th>Description</th>
  1188. </tr>
  1189. </thead>
  1190. <tbody>
  1191. <tr>
  1192. <td><span class="xref">System.Int32</span></td>
  1193. <td>Number of lines.</td>
  1194. </tr>
  1195. </tbody>
  1196. </table>
  1197. <a id="Terminal_Gui_TextFormatter_MaxWidth_" data-uid="Terminal.Gui.TextFormatter.MaxWidth*"></a>
  1198. <h4 id="Terminal_Gui_TextFormatter_MaxWidth_NStack_ustring_System_Int32_" data-uid="Terminal.Gui.TextFormatter.MaxWidth(NStack.ustring,System.Int32)">MaxWidth(ustring, Int32)</h4>
  1199. <div class="markdown level1 summary">
  1200. Computes the maximum width needed to render the text (single line or multiple lines) given a minimum width.
  1201. </div>
  1202. <div class="markdown level1 conceptual"></div>
  1203. <h5 class="decalaration">Declaration</h5>
  1204. <div class="codewrapper">
  1205. <pre><code class="lang-csharp hljs">public static int MaxWidth(ustring text, int width)</code></pre>
  1206. </div>
  1207. <h5 class="parameters">Parameters</h5>
  1208. <table class="table table-bordered table-striped table-condensed">
  1209. <thead>
  1210. <tr>
  1211. <th>Type</th>
  1212. <th>Name</th>
  1213. <th>Description</th>
  1214. </tr>
  1215. </thead>
  1216. <tbody>
  1217. <tr>
  1218. <td><span class="xref">NStack.ustring</span></td>
  1219. <td><span class="parametername">text</span></td>
  1220. <td>Text, may contain newlines.</td>
  1221. </tr>
  1222. <tr>
  1223. <td><span class="xref">System.Int32</span></td>
  1224. <td><span class="parametername">width</span></td>
  1225. <td>The minimum width for the text.</td>
  1226. </tr>
  1227. </tbody>
  1228. </table>
  1229. <h5 class="returns">Returns</h5>
  1230. <table class="table table-bordered table-striped table-condensed">
  1231. <thead>
  1232. <tr>
  1233. <th>Type</th>
  1234. <th>Description</th>
  1235. </tr>
  1236. </thead>
  1237. <tbody>
  1238. <tr>
  1239. <td><span class="xref">System.Int32</span></td>
  1240. <td>Max width of lines.</td>
  1241. </tr>
  1242. </tbody>
  1243. </table>
  1244. <a id="Terminal_Gui_TextFormatter_RemoveHotKeySpecifier_" data-uid="Terminal.Gui.TextFormatter.RemoveHotKeySpecifier*"></a>
  1245. <h4 id="Terminal_Gui_TextFormatter_RemoveHotKeySpecifier_NStack_ustring_System_Int32_System_Rune_" data-uid="Terminal.Gui.TextFormatter.RemoveHotKeySpecifier(NStack.ustring,System.Int32,System.Rune)">RemoveHotKeySpecifier(ustring, Int32, Rune)</h4>
  1246. <div class="markdown level1 summary">
  1247. Removes the hotkey specifier from text.
  1248. </div>
  1249. <div class="markdown level1 conceptual"></div>
  1250. <h5 class="decalaration">Declaration</h5>
  1251. <div class="codewrapper">
  1252. <pre><code class="lang-csharp hljs">public static ustring RemoveHotKeySpecifier(ustring text, int hotPos, Rune hotKeySpecifier)</code></pre>
  1253. </div>
  1254. <h5 class="parameters">Parameters</h5>
  1255. <table class="table table-bordered table-striped table-condensed">
  1256. <thead>
  1257. <tr>
  1258. <th>Type</th>
  1259. <th>Name</th>
  1260. <th>Description</th>
  1261. </tr>
  1262. </thead>
  1263. <tbody>
  1264. <tr>
  1265. <td><span class="xref">NStack.ustring</span></td>
  1266. <td><span class="parametername">text</span></td>
  1267. <td>The text to manipulate.</td>
  1268. </tr>
  1269. <tr>
  1270. <td><span class="xref">System.Int32</span></td>
  1271. <td><span class="parametername">hotPos</span></td>
  1272. <td>Returns the position of the hot-key in the text. -1 if not found.</td>
  1273. </tr>
  1274. <tr>
  1275. <td><span class="xref">System.Rune</span></td>
  1276. <td><span class="parametername">hotKeySpecifier</span></td>
  1277. <td>The hot-key specifier (e.g. &apos;_&apos;) to look for.</td>
  1278. </tr>
  1279. </tbody>
  1280. </table>
  1281. <h5 class="returns">Returns</h5>
  1282. <table class="table table-bordered table-striped table-condensed">
  1283. <thead>
  1284. <tr>
  1285. <th>Type</th>
  1286. <th>Description</th>
  1287. </tr>
  1288. </thead>
  1289. <tbody>
  1290. <tr>
  1291. <td><span class="xref">NStack.ustring</span></td>
  1292. <td>The input text with the hotkey specifier (&apos;_&apos;) removed.</td>
  1293. </tr>
  1294. </tbody>
  1295. </table>
  1296. <a id="Terminal_Gui_TextFormatter_ReplaceHotKeyWithTag_" data-uid="Terminal.Gui.TextFormatter.ReplaceHotKeyWithTag*"></a>
  1297. <h4 id="Terminal_Gui_TextFormatter_ReplaceHotKeyWithTag_NStack_ustring_System_Int32_" data-uid="Terminal.Gui.TextFormatter.ReplaceHotKeyWithTag(NStack.ustring,System.Int32)">ReplaceHotKeyWithTag(ustring, Int32)</h4>
  1298. <div class="markdown level1 summary">
  1299. Replaces the Rune at the index specified by the <code>hotPos</code> parameter with a tag identifying
  1300. it as the hotkey.
  1301. </div>
  1302. <div class="markdown level1 conceptual"></div>
  1303. <h5 class="decalaration">Declaration</h5>
  1304. <div class="codewrapper">
  1305. <pre><code class="lang-csharp hljs">public ustring ReplaceHotKeyWithTag(ustring text, int hotPos)</code></pre>
  1306. </div>
  1307. <h5 class="parameters">Parameters</h5>
  1308. <table class="table table-bordered table-striped table-condensed">
  1309. <thead>
  1310. <tr>
  1311. <th>Type</th>
  1312. <th>Name</th>
  1313. <th>Description</th>
  1314. </tr>
  1315. </thead>
  1316. <tbody>
  1317. <tr>
  1318. <td><span class="xref">NStack.ustring</span></td>
  1319. <td><span class="parametername">text</span></td>
  1320. <td>The text to tag the hotkey in.</td>
  1321. </tr>
  1322. <tr>
  1323. <td><span class="xref">System.Int32</span></td>
  1324. <td><span class="parametername">hotPos</span></td>
  1325. <td>The Rune index of the hotkey in <code>text</code>.</td>
  1326. </tr>
  1327. </tbody>
  1328. </table>
  1329. <h5 class="returns">Returns</h5>
  1330. <table class="table table-bordered table-striped table-condensed">
  1331. <thead>
  1332. <tr>
  1333. <th>Type</th>
  1334. <th>Description</th>
  1335. </tr>
  1336. </thead>
  1337. <tbody>
  1338. <tr>
  1339. <td><span class="xref">NStack.ustring</span></td>
  1340. <td>The text with the hotkey tagged.</td>
  1341. </tr>
  1342. </tbody>
  1343. </table>
  1344. <h5 id="Terminal_Gui_TextFormatter_ReplaceHotKeyWithTag_NStack_ustring_System_Int32__remarks">Remarks</h5>
  1345. <div class="markdown level1 remarks">
  1346. The returned string will not render correctly without first un-doing the tag. To undo the tag, search for
  1347. Runes with a bitmask of <code>otKeyTagMask</code> and remove that bitmask.
  1348. </div>
  1349. <a id="Terminal_Gui_TextFormatter_WordWrap_" data-uid="Terminal.Gui.TextFormatter.WordWrap*"></a>
  1350. <h4 id="Terminal_Gui_TextFormatter_WordWrap_NStack_ustring_System_Int32_System_Boolean_System_Int32_" data-uid="Terminal.Gui.TextFormatter.WordWrap(NStack.ustring,System.Int32,System.Boolean,System.Int32)">WordWrap(ustring, Int32, Boolean, Int32)</h4>
  1351. <div class="markdown level1 summary">
  1352. Formats the provided text to fit within the width provided using word wrapping.
  1353. </div>
  1354. <div class="markdown level1 conceptual"></div>
  1355. <h5 class="decalaration">Declaration</h5>
  1356. <div class="codewrapper">
  1357. <pre><code class="lang-csharp hljs">public static List&lt;ustring&gt; WordWrap(ustring text, int width, bool preserveTrailingSpaces = false, int tabWidth = 0)</code></pre>
  1358. </div>
  1359. <h5 class="parameters">Parameters</h5>
  1360. <table class="table table-bordered table-striped table-condensed">
  1361. <thead>
  1362. <tr>
  1363. <th>Type</th>
  1364. <th>Name</th>
  1365. <th>Description</th>
  1366. </tr>
  1367. </thead>
  1368. <tbody>
  1369. <tr>
  1370. <td><span class="xref">NStack.ustring</span></td>
  1371. <td><span class="parametername">text</span></td>
  1372. <td>The text to word wrap</td>
  1373. </tr>
  1374. <tr>
  1375. <td><span class="xref">System.Int32</span></td>
  1376. <td><span class="parametername">width</span></td>
  1377. <td>The width to contain the text to</td>
  1378. </tr>
  1379. <tr>
  1380. <td><span class="xref">System.Boolean</span></td>
  1381. <td><span class="parametername">preserveTrailingSpaces</span></td>
  1382. <td>If <code>true</code>, the wrapped text will keep the trailing spaces.
  1383. If <code>false</code>, the trailing spaces will be trimmed.</td>
  1384. </tr>
  1385. <tr>
  1386. <td><span class="xref">System.Int32</span></td>
  1387. <td><span class="parametername">tabWidth</span></td>
  1388. <td>The tab width.</td>
  1389. </tr>
  1390. </tbody>
  1391. </table>
  1392. <h5 class="returns">Returns</h5>
  1393. <table class="table table-bordered table-striped table-condensed">
  1394. <thead>
  1395. <tr>
  1396. <th>Type</th>
  1397. <th>Description</th>
  1398. </tr>
  1399. </thead>
  1400. <tbody>
  1401. <tr>
  1402. <td><span class="xref">System.Collections.Generic.List</span>&lt;<span class="xref">NStack.ustring</span>&gt;</td>
  1403. <td>Returns a list of word wrapped lines.</td>
  1404. </tr>
  1405. </tbody>
  1406. </table>
  1407. <h5 id="Terminal_Gui_TextFormatter_WordWrap_NStack_ustring_System_Int32_System_Boolean_System_Int32__remarks">Remarks</h5>
  1408. <div class="markdown level1 remarks">
  1409. <p>
  1410. This method does not do any justification.
  1411. </p>
  1412. <p>
  1413. This method strips Newline (&apos;\n&apos; and &apos;\r\n&apos;) sequences before processing.
  1414. </p>
  1415. </div>
  1416. <h3 id="events">Events
  1417. </h3>
  1418. <h4 id="Terminal_Gui_TextFormatter_HotKeyChanged" data-uid="Terminal.Gui.TextFormatter.HotKeyChanged">HotKeyChanged</h4>
  1419. <div class="markdown level1 summary">
  1420. Event invoked when the <a class="xref" href="Terminal.Gui.TextFormatter.html#Terminal_Gui_TextFormatter_HotKey">HotKey</a> is changed.
  1421. </div>
  1422. <div class="markdown level1 conceptual"></div>
  1423. <h5 class="decalaration">Declaration</h5>
  1424. <div class="codewrapper">
  1425. <pre><code class="lang-csharp hljs">public event Action&lt;Key&gt; HotKeyChanged</code></pre>
  1426. </div>
  1427. <h5 class="eventType">Event Type</h5>
  1428. <table class="table table-bordered table-striped table-condensed">
  1429. <thead>
  1430. <tr>
  1431. <th>Type</th>
  1432. <th>Description</th>
  1433. </tr>
  1434. </thead>
  1435. <tbody>
  1436. <tr>
  1437. <td><span class="xref">System.Action</span>&lt;<a class="xref" href="Terminal.Gui.Key.html">Key</a>&gt;</td>
  1438. <td></td>
  1439. </tr>
  1440. </tbody>
  1441. </table>
  1442. </article>
  1443. </div>
  1444. <div class="hidden-sm col-md-2" role="complementary">
  1445. <div class="sideaffix">
  1446. <nav class="bs-docs-sidebar hidden-print hidden-xs hidden-sm affix" id="affix">
  1447. <h5>In This Article</h5>
  1448. <div></div>
  1449. </nav>
  1450. </div>
  1451. </div>
  1452. </div>
  1453. </div>
  1454. <footer>
  1455. <div class="grad-bottom"></div>
  1456. <div class="footer">
  1457. <div class="container">
  1458. <span class="pull-right">
  1459. <a href="#top">Back to top</a>
  1460. </span>
  1461. <span>Generated by <strong>DocFX</strong></span>
  1462. </div>
  1463. </div>
  1464. </footer>
  1465. </div>
  1466. <script type="text/javascript" src="../../styles/docfx.vendor.js"></script>
  1467. <script type="text/javascript" src="../../styles/docfx.js"></script>
  1468. <script type="text/javascript" src="../../styles/main.js"></script>
  1469. </body>
  1470. </html>