Terminal.Gui.Pos.html 31 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815
  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 Pos
  8. </title>
  9. <meta name="viewport" content="width=device-width">
  10. <meta name="title" content="Class Pos
  11. ">
  12. <meta name="generator" content="docfx 2.59.3.0">
  13. <link rel="shortcut icon" href="../../favicon.ico">
  14. <link rel="stylesheet" href="../../styles/docfx.vendor.css">
  15. <link rel="stylesheet" href="../../styles/docfx.css">
  16. <link rel="stylesheet" href="../../styles/main.css">
  17. <link href="https://fonts.googleapis.com/css?family=Source Sans Pro" rel="stylesheet">
  18. <link href="https://fonts.googleapis.com/css?family=Source Code Pro" rel="stylesheet">
  19. <meta property="docfx:navrel" content="../../toc.html">
  20. <meta property="docfx:tocrel" content="toc.html">
  21. <meta property="docfx:rel" content="../../">
  22. </head> <body data-spy="scroll" data-target="#affix" data-offset="120">
  23. <div id="wrapper">
  24. <header>
  25. <nav id="autocollapse" class="navbar navbar-inverse ng-scope" role="navigation">
  26. <div class="container">
  27. <div class="navbar-header">
  28. <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar">
  29. <span class="sr-only">Toggle navigation</span>
  30. <span class="icon-bar"></span>
  31. <span class="icon-bar"></span>
  32. <span class="icon-bar"></span>
  33. </button>
  34. <a class="navbar-brand" href="../../index.html">
  35. <img id="logo" class="svg" src="../../images/logo48.png" alt="">
  36. </a>
  37. </div>
  38. <div class="collapse navbar-collapse" id="navbar">
  39. <form class="navbar-form navbar-right" role="search" id="search">
  40. <div class="form-group">
  41. <input type="text" class="form-control" id="search-query" placeholder="Search" autocomplete="off">
  42. </div>
  43. </form>
  44. </div>
  45. </div>
  46. </nav>
  47. <div class="subnav navbar navbar-default">
  48. <div class="container hide-when-search" id="breadcrumb">
  49. <ul class="breadcrumb">
  50. <li></li>
  51. </ul>
  52. </div>
  53. </div>
  54. </header>
  55. <div class="container body-content">
  56. <div id="search-results">
  57. <div class="search-list">Search Results for <span></span></div>
  58. <div class="sr-items">
  59. <p><i class="glyphicon glyphicon-refresh index-loading"></i></p>
  60. </div>
  61. <ul id="pagination" data-first="First" data-prev="Previous" data-next="Next" data-last="Last"></ul>
  62. </div>
  63. </div>
  64. <div role="main" class="container body-content hide-when-search">
  65. <div class="sidenav hide-when-search">
  66. <a class="btn toc-toggle collapse" data-toggle="collapse" href="#sidetoggle" aria-expanded="false" aria-controls="sidetoggle">Show / Hide Table of Contents</a>
  67. <div class="sidetoggle collapse" id="sidetoggle">
  68. <div id="sidetoc"></div>
  69. </div>
  70. </div>
  71. <div class="article row grid-right">
  72. <div class="col-md-10">
  73. <article class="content wrap" id="_content" data-uid="Terminal.Gui.Pos">
  74. <h1 id="Terminal_Gui_Pos" data-uid="Terminal.Gui.Pos" class="text-break">Class Pos
  75. </h1>
  76. <div class="markdown level0 summary">
  77. Describes the position of a <a class="xref" href="Terminal.Gui.View.html">View</a> which can be an absolute value, a percentage, centered, or
  78. relative to the ending dimension. Integer values are implicitly convertible to
  79. an absolute <a class="xref" href="Terminal.Gui.Pos.html">Pos</a>. These objects are created using the static methods Percent,
  80. AnchorEnd, and Center. The <a class="xref" href="Terminal.Gui.Pos.html">Pos</a> objects can be combined with the addition and
  81. subtraction operators.
  82. </div>
  83. <div class="markdown level0 conceptual"></div>
  84. <div class="inheritance">
  85. <h5>Inheritance</h5>
  86. <div class="level0"><span class="xref">System.Object</span></div>
  87. <div class="level1"><span class="xref">Pos</span></div>
  88. </div>
  89. <h5 id="Terminal_Gui_Pos_remarks"><strong>Remarks</strong></h5>
  90. <div class="markdown level0 remarks">
  91. <p>
  92. Use the <a class="xref" href="Terminal.Gui.Pos.html">Pos</a> objects on the X or Y properties of a view to control the position.
  93. </p>
  94. <p>
  95. These can be used to set the absolute position, when merely assigning an
  96. integer value (via the implicit integer to <a class="xref" href="Terminal.Gui.Pos.html">Pos</a> conversion), and they can be combined
  97. to produce more useful layouts, like: Pos.Center - 3, which would shift the position
  98. of the <a class="xref" href="Terminal.Gui.View.html">View</a> 3 characters to the left after centering for example.
  99. </p>
  100. <p>
  101. It is possible to reference coordinates of another view by using the methods
  102. Left(View), Right(View), Bottom(View), Top(View). The X(View) and Y(View) are
  103. aliases to Left(View) and Top(View) respectively.
  104. </p>
  105. </div>
  106. <h6><strong>Namespace</strong>: <a class="xref" href="Terminal.Gui.html">Terminal.Gui</a></h6>
  107. <h6><strong>Assembly</strong>: Terminal.Gui.dll</h6>
  108. <h5 id="Terminal_Gui_Pos_syntax">Syntax</h5>
  109. <div class="codewrapper">
  110. <pre><code class="lang-csharp hljs">public class Pos : Object</code></pre>
  111. </div>
  112. <h3 id="constructors">Constructors
  113. </h3>
  114. <a id="Terminal_Gui_Pos__ctor_" data-uid="Terminal.Gui.Pos.#ctor*"></a>
  115. <h4 id="Terminal_Gui_Pos__ctor" data-uid="Terminal.Gui.Pos.#ctor">Pos()</h4>
  116. <div class="markdown level1 summary"></div>
  117. <div class="markdown level1 conceptual"></div>
  118. <h5 class="decalaration">Declaration</h5>
  119. <div class="codewrapper">
  120. <pre><code class="lang-csharp hljs">public Pos()</code></pre>
  121. </div>
  122. <h3 id="methods">Methods
  123. </h3>
  124. <a id="Terminal_Gui_Pos_AnchorEnd_" data-uid="Terminal.Gui.Pos.AnchorEnd*"></a>
  125. <h4 id="Terminal_Gui_Pos_AnchorEnd_System_Int32_" data-uid="Terminal.Gui.Pos.AnchorEnd(System.Int32)">AnchorEnd(Int32)</h4>
  126. <div class="markdown level1 summary">
  127. Creates a <a class="xref" href="Terminal.Gui.Pos.html">Pos</a> object that is anchored to the end (right side or bottom) of the dimension,
  128. useful to flush the layout from the right or bottom.
  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 static Pos AnchorEnd(int margin = 0)</code></pre>
  134. </div>
  135. <h5 class="parameters">Parameters</h5>
  136. <table class="table table-bordered table-striped table-condensed">
  137. <thead>
  138. <tr>
  139. <th>Type</th>
  140. <th>Name</th>
  141. <th>Description</th>
  142. </tr>
  143. </thead>
  144. <tbody>
  145. <tr>
  146. <td><span class="xref">System.Int32</span></td>
  147. <td><span class="parametername">margin</span></td>
  148. <td>Optional margin to place to the right or below.</td>
  149. </tr>
  150. </tbody>
  151. </table>
  152. <h5 class="returns">Returns</h5>
  153. <table class="table table-bordered table-striped table-condensed">
  154. <thead>
  155. <tr>
  156. <th>Type</th>
  157. <th>Description</th>
  158. </tr>
  159. </thead>
  160. <tbody>
  161. <tr>
  162. <td><a class="xref" href="Terminal.Gui.Pos.html">Pos</a></td>
  163. <td>The <a class="xref" href="Terminal.Gui.Pos.html">Pos</a> object anchored to the end (the bottom or the right side).</td>
  164. </tr>
  165. </tbody>
  166. </table>
  167. <a id="Terminal_Gui_Pos_At_" data-uid="Terminal.Gui.Pos.At*"></a>
  168. <h4 id="Terminal_Gui_Pos_At_System_Int32_" data-uid="Terminal.Gui.Pos.At(System.Int32)">At(Int32)</h4>
  169. <div class="markdown level1 summary">
  170. Creates an Absolute <a class="xref" href="Terminal.Gui.Pos.html">Pos</a> from the specified integer value.
  171. </div>
  172. <div class="markdown level1 conceptual"></div>
  173. <h5 class="decalaration">Declaration</h5>
  174. <div class="codewrapper">
  175. <pre><code class="lang-csharp hljs">public static Pos At(int n)</code></pre>
  176. </div>
  177. <h5 class="parameters">Parameters</h5>
  178. <table class="table table-bordered table-striped table-condensed">
  179. <thead>
  180. <tr>
  181. <th>Type</th>
  182. <th>Name</th>
  183. <th>Description</th>
  184. </tr>
  185. </thead>
  186. <tbody>
  187. <tr>
  188. <td><span class="xref">System.Int32</span></td>
  189. <td><span class="parametername">n</span></td>
  190. <td>The value to convert to the <a class="xref" href="Terminal.Gui.Pos.html">Pos</a>.</td>
  191. </tr>
  192. </tbody>
  193. </table>
  194. <h5 class="returns">Returns</h5>
  195. <table class="table table-bordered table-striped table-condensed">
  196. <thead>
  197. <tr>
  198. <th>Type</th>
  199. <th>Description</th>
  200. </tr>
  201. </thead>
  202. <tbody>
  203. <tr>
  204. <td><a class="xref" href="Terminal.Gui.Pos.html">Pos</a></td>
  205. <td>The Absolute <a class="xref" href="Terminal.Gui.Pos.html">Pos</a>.</td>
  206. </tr>
  207. </tbody>
  208. </table>
  209. <a id="Terminal_Gui_Pos_Bottom_" data-uid="Terminal.Gui.Pos.Bottom*"></a>
  210. <h4 id="Terminal_Gui_Pos_Bottom_Terminal_Gui_View_" data-uid="Terminal.Gui.Pos.Bottom(Terminal.Gui.View)">Bottom(View)</h4>
  211. <div class="markdown level1 summary">
  212. Returns a <a class="xref" href="Terminal.Gui.Pos.html">Pos</a> object tracks the Bottom (Y+Height) coordinate of the specified <a class="xref" href="Terminal.Gui.View.html">View</a>
  213. </div>
  214. <div class="markdown level1 conceptual"></div>
  215. <h5 class="decalaration">Declaration</h5>
  216. <div class="codewrapper">
  217. <pre><code class="lang-csharp hljs">public static Pos Bottom(View view)</code></pre>
  218. </div>
  219. <h5 class="parameters">Parameters</h5>
  220. <table class="table table-bordered table-striped table-condensed">
  221. <thead>
  222. <tr>
  223. <th>Type</th>
  224. <th>Name</th>
  225. <th>Description</th>
  226. </tr>
  227. </thead>
  228. <tbody>
  229. <tr>
  230. <td><a class="xref" href="Terminal.Gui.View.html">View</a></td>
  231. <td><span class="parametername">view</span></td>
  232. <td>The <a class="xref" href="Terminal.Gui.View.html">View</a> that will be tracked.</td>
  233. </tr>
  234. </tbody>
  235. </table>
  236. <h5 class="returns">Returns</h5>
  237. <table class="table table-bordered table-striped table-condensed">
  238. <thead>
  239. <tr>
  240. <th>Type</th>
  241. <th>Description</th>
  242. </tr>
  243. </thead>
  244. <tbody>
  245. <tr>
  246. <td><a class="xref" href="Terminal.Gui.Pos.html">Pos</a></td>
  247. <td>The <a class="xref" href="Terminal.Gui.Pos.html">Pos</a> that depends on the other view.</td>
  248. </tr>
  249. </tbody>
  250. </table>
  251. <a id="Terminal_Gui_Pos_Center_" data-uid="Terminal.Gui.Pos.Center*"></a>
  252. <h4 id="Terminal_Gui_Pos_Center" data-uid="Terminal.Gui.Pos.Center">Center()</h4>
  253. <div class="markdown level1 summary">
  254. Returns a <a class="xref" href="Terminal.Gui.Pos.html">Pos</a> object that can be used to center the <a class="xref" href="Terminal.Gui.View.html">View</a>
  255. </div>
  256. <div class="markdown level1 conceptual"></div>
  257. <h5 class="decalaration">Declaration</h5>
  258. <div class="codewrapper">
  259. <pre><code class="lang-csharp hljs">public static Pos Center()</code></pre>
  260. </div>
  261. <h5 class="returns">Returns</h5>
  262. <table class="table table-bordered table-striped table-condensed">
  263. <thead>
  264. <tr>
  265. <th>Type</th>
  266. <th>Description</th>
  267. </tr>
  268. </thead>
  269. <tbody>
  270. <tr>
  271. <td><a class="xref" href="Terminal.Gui.Pos.html">Pos</a></td>
  272. <td>The center Pos.</td>
  273. </tr>
  274. </tbody>
  275. </table>
  276. <a id="Terminal_Gui_Pos_Equals_" data-uid="Terminal.Gui.Pos.Equals*"></a>
  277. <h4 id="Terminal_Gui_Pos_Equals_System_Object_" data-uid="Terminal.Gui.Pos.Equals(System.Object)">Equals(Object)</h4>
  278. <div class="markdown level1 summary">Determines whether the specified object is equal to the current object.</div>
  279. <div class="markdown level1 conceptual"></div>
  280. <h5 class="decalaration">Declaration</h5>
  281. <div class="codewrapper">
  282. <pre><code class="lang-csharp hljs">public override bool Equals(object other)</code></pre>
  283. </div>
  284. <h5 class="parameters">Parameters</h5>
  285. <table class="table table-bordered table-striped table-condensed">
  286. <thead>
  287. <tr>
  288. <th>Type</th>
  289. <th>Name</th>
  290. <th>Description</th>
  291. </tr>
  292. </thead>
  293. <tbody>
  294. <tr>
  295. <td><span class="xref">System.Object</span></td>
  296. <td><span class="parametername">other</span></td>
  297. <td>The object to compare with the current object. </td>
  298. </tr>
  299. </tbody>
  300. </table>
  301. <h5 class="returns">Returns</h5>
  302. <table class="table table-bordered table-striped table-condensed">
  303. <thead>
  304. <tr>
  305. <th>Type</th>
  306. <th>Description</th>
  307. </tr>
  308. </thead>
  309. <tbody>
  310. <tr>
  311. <td><span class="xref">System.Boolean</span></td>
  312. <td>
  313. <span class="xref">true</span> if the specified object is equal to the current object; otherwise, <span class="xref">false</span>.</td>
  314. </tr>
  315. </tbody>
  316. </table>
  317. <a id="Terminal_Gui_Pos_Function_" data-uid="Terminal.Gui.Pos.Function*"></a>
  318. <h4 id="Terminal_Gui_Pos_Function_System_Func_System_Int32__" data-uid="Terminal.Gui.Pos.Function(System.Func{System.Int32})">Function(Func&lt;Int32&gt;)</h4>
  319. <div class="markdown level1 summary">
  320. Creates a &quot;PosFunc&quot; from the specified function.
  321. </div>
  322. <div class="markdown level1 conceptual"></div>
  323. <h5 class="decalaration">Declaration</h5>
  324. <div class="codewrapper">
  325. <pre><code class="lang-csharp hljs">public static Pos Function(Func&lt;int&gt; function)</code></pre>
  326. </div>
  327. <h5 class="parameters">Parameters</h5>
  328. <table class="table table-bordered table-striped table-condensed">
  329. <thead>
  330. <tr>
  331. <th>Type</th>
  332. <th>Name</th>
  333. <th>Description</th>
  334. </tr>
  335. </thead>
  336. <tbody>
  337. <tr>
  338. <td><span class="xref">System.Func</span>&lt;<span class="xref">System.Int32</span>&gt;</td>
  339. <td><span class="parametername">function</span></td>
  340. <td>The function to be executed.</td>
  341. </tr>
  342. </tbody>
  343. </table>
  344. <h5 class="returns">Returns</h5>
  345. <table class="table table-bordered table-striped table-condensed">
  346. <thead>
  347. <tr>
  348. <th>Type</th>
  349. <th>Description</th>
  350. </tr>
  351. </thead>
  352. <tbody>
  353. <tr>
  354. <td><a class="xref" href="Terminal.Gui.Pos.html">Pos</a></td>
  355. <td>The <a class="xref" href="Terminal.Gui.Pos.html">Pos</a> returned from the function.</td>
  356. </tr>
  357. </tbody>
  358. </table>
  359. <a id="Terminal_Gui_Pos_GetHashCode_" data-uid="Terminal.Gui.Pos.GetHashCode*"></a>
  360. <h4 id="Terminal_Gui_Pos_GetHashCode" data-uid="Terminal.Gui.Pos.GetHashCode">GetHashCode()</h4>
  361. <div class="markdown level1 summary">Serves as the default hash function. </div>
  362. <div class="markdown level1 conceptual"></div>
  363. <h5 class="decalaration">Declaration</h5>
  364. <div class="codewrapper">
  365. <pre><code class="lang-csharp hljs">public override int GetHashCode()</code></pre>
  366. </div>
  367. <h5 class="returns">Returns</h5>
  368. <table class="table table-bordered table-striped table-condensed">
  369. <thead>
  370. <tr>
  371. <th>Type</th>
  372. <th>Description</th>
  373. </tr>
  374. </thead>
  375. <tbody>
  376. <tr>
  377. <td><span class="xref">System.Int32</span></td>
  378. <td>A hash code for the current object.</td>
  379. </tr>
  380. </tbody>
  381. </table>
  382. <a id="Terminal_Gui_Pos_Left_" data-uid="Terminal.Gui.Pos.Left*"></a>
  383. <h4 id="Terminal_Gui_Pos_Left_Terminal_Gui_View_" data-uid="Terminal.Gui.Pos.Left(Terminal.Gui.View)">Left(View)</h4>
  384. <div class="markdown level1 summary">
  385. Returns a <a class="xref" href="Terminal.Gui.Pos.html">Pos</a> object tracks the Left (X) position of the specified <a class="xref" href="Terminal.Gui.View.html">View</a>.
  386. </div>
  387. <div class="markdown level1 conceptual"></div>
  388. <h5 class="decalaration">Declaration</h5>
  389. <div class="codewrapper">
  390. <pre><code class="lang-csharp hljs">public static Pos Left(View view)</code></pre>
  391. </div>
  392. <h5 class="parameters">Parameters</h5>
  393. <table class="table table-bordered table-striped table-condensed">
  394. <thead>
  395. <tr>
  396. <th>Type</th>
  397. <th>Name</th>
  398. <th>Description</th>
  399. </tr>
  400. </thead>
  401. <tbody>
  402. <tr>
  403. <td><a class="xref" href="Terminal.Gui.View.html">View</a></td>
  404. <td><span class="parametername">view</span></td>
  405. <td>The <a class="xref" href="Terminal.Gui.View.html">View</a> that will be tracked.</td>
  406. </tr>
  407. </tbody>
  408. </table>
  409. <h5 class="returns">Returns</h5>
  410. <table class="table table-bordered table-striped table-condensed">
  411. <thead>
  412. <tr>
  413. <th>Type</th>
  414. <th>Description</th>
  415. </tr>
  416. </thead>
  417. <tbody>
  418. <tr>
  419. <td><a class="xref" href="Terminal.Gui.Pos.html">Pos</a></td>
  420. <td>The <a class="xref" href="Terminal.Gui.Pos.html">Pos</a> that depends on the other view.</td>
  421. </tr>
  422. </tbody>
  423. </table>
  424. <a id="Terminal_Gui_Pos_Percent_" data-uid="Terminal.Gui.Pos.Percent*"></a>
  425. <h4 id="Terminal_Gui_Pos_Percent_System_Single_" data-uid="Terminal.Gui.Pos.Percent(System.Single)">Percent(Single)</h4>
  426. <div class="markdown level1 summary">
  427. Creates a percentage <a class="xref" href="Terminal.Gui.Pos.html">Pos</a> object
  428. </div>
  429. <div class="markdown level1 conceptual"></div>
  430. <h5 class="decalaration">Declaration</h5>
  431. <div class="codewrapper">
  432. <pre><code class="lang-csharp hljs">public static Pos Percent(float n)</code></pre>
  433. </div>
  434. <h5 class="parameters">Parameters</h5>
  435. <table class="table table-bordered table-striped table-condensed">
  436. <thead>
  437. <tr>
  438. <th>Type</th>
  439. <th>Name</th>
  440. <th>Description</th>
  441. </tr>
  442. </thead>
  443. <tbody>
  444. <tr>
  445. <td><span class="xref">System.Single</span></td>
  446. <td><span class="parametername">n</span></td>
  447. <td>A value between 0 and 100 representing the percentage.</td>
  448. </tr>
  449. </tbody>
  450. </table>
  451. <h5 class="returns">Returns</h5>
  452. <table class="table table-bordered table-striped table-condensed">
  453. <thead>
  454. <tr>
  455. <th>Type</th>
  456. <th>Description</th>
  457. </tr>
  458. </thead>
  459. <tbody>
  460. <tr>
  461. <td><a class="xref" href="Terminal.Gui.Pos.html">Pos</a></td>
  462. <td>The percent <a class="xref" href="Terminal.Gui.Pos.html">Pos</a> object.</td>
  463. </tr>
  464. </tbody>
  465. </table>
  466. <a id="Terminal_Gui_Pos_Right_" data-uid="Terminal.Gui.Pos.Right*"></a>
  467. <h4 id="Terminal_Gui_Pos_Right_Terminal_Gui_View_" data-uid="Terminal.Gui.Pos.Right(Terminal.Gui.View)">Right(View)</h4>
  468. <div class="markdown level1 summary">
  469. Returns a <a class="xref" href="Terminal.Gui.Pos.html">Pos</a> object tracks the Right (X+Width) coordinate of the specified <a class="xref" href="Terminal.Gui.View.html">View</a>.
  470. </div>
  471. <div class="markdown level1 conceptual"></div>
  472. <h5 class="decalaration">Declaration</h5>
  473. <div class="codewrapper">
  474. <pre><code class="lang-csharp hljs">public static Pos Right(View view)</code></pre>
  475. </div>
  476. <h5 class="parameters">Parameters</h5>
  477. <table class="table table-bordered table-striped table-condensed">
  478. <thead>
  479. <tr>
  480. <th>Type</th>
  481. <th>Name</th>
  482. <th>Description</th>
  483. </tr>
  484. </thead>
  485. <tbody>
  486. <tr>
  487. <td><a class="xref" href="Terminal.Gui.View.html">View</a></td>
  488. <td><span class="parametername">view</span></td>
  489. <td>The <a class="xref" href="Terminal.Gui.View.html">View</a> that will be tracked.</td>
  490. </tr>
  491. </tbody>
  492. </table>
  493. <h5 class="returns">Returns</h5>
  494. <table class="table table-bordered table-striped table-condensed">
  495. <thead>
  496. <tr>
  497. <th>Type</th>
  498. <th>Description</th>
  499. </tr>
  500. </thead>
  501. <tbody>
  502. <tr>
  503. <td><a class="xref" href="Terminal.Gui.Pos.html">Pos</a></td>
  504. <td>The <a class="xref" href="Terminal.Gui.Pos.html">Pos</a> that depends on the other view.</td>
  505. </tr>
  506. </tbody>
  507. </table>
  508. <a id="Terminal_Gui_Pos_Top_" data-uid="Terminal.Gui.Pos.Top*"></a>
  509. <h4 id="Terminal_Gui_Pos_Top_Terminal_Gui_View_" data-uid="Terminal.Gui.Pos.Top(Terminal.Gui.View)">Top(View)</h4>
  510. <div class="markdown level1 summary">
  511. Returns a <a class="xref" href="Terminal.Gui.Pos.html">Pos</a> object tracks the Top (Y) position of the specified <a class="xref" href="Terminal.Gui.View.html">View</a>.
  512. </div>
  513. <div class="markdown level1 conceptual"></div>
  514. <h5 class="decalaration">Declaration</h5>
  515. <div class="codewrapper">
  516. <pre><code class="lang-csharp hljs">public static Pos Top(View view)</code></pre>
  517. </div>
  518. <h5 class="parameters">Parameters</h5>
  519. <table class="table table-bordered table-striped table-condensed">
  520. <thead>
  521. <tr>
  522. <th>Type</th>
  523. <th>Name</th>
  524. <th>Description</th>
  525. </tr>
  526. </thead>
  527. <tbody>
  528. <tr>
  529. <td><a class="xref" href="Terminal.Gui.View.html">View</a></td>
  530. <td><span class="parametername">view</span></td>
  531. <td>The <a class="xref" href="Terminal.Gui.View.html">View</a> that will be tracked.</td>
  532. </tr>
  533. </tbody>
  534. </table>
  535. <h5 class="returns">Returns</h5>
  536. <table class="table table-bordered table-striped table-condensed">
  537. <thead>
  538. <tr>
  539. <th>Type</th>
  540. <th>Description</th>
  541. </tr>
  542. </thead>
  543. <tbody>
  544. <tr>
  545. <td><a class="xref" href="Terminal.Gui.Pos.html">Pos</a></td>
  546. <td>The <a class="xref" href="Terminal.Gui.Pos.html">Pos</a> that depends on the other view.</td>
  547. </tr>
  548. </tbody>
  549. </table>
  550. <a id="Terminal_Gui_Pos_X_" data-uid="Terminal.Gui.Pos.X*"></a>
  551. <h4 id="Terminal_Gui_Pos_X_Terminal_Gui_View_" data-uid="Terminal.Gui.Pos.X(Terminal.Gui.View)">X(View)</h4>
  552. <div class="markdown level1 summary">
  553. Returns a <a class="xref" href="Terminal.Gui.Pos.html">Pos</a> object tracks the Left (X) position of the specified <a class="xref" href="Terminal.Gui.View.html">View</a>.
  554. </div>
  555. <div class="markdown level1 conceptual"></div>
  556. <h5 class="decalaration">Declaration</h5>
  557. <div class="codewrapper">
  558. <pre><code class="lang-csharp hljs">public static Pos X(View view)</code></pre>
  559. </div>
  560. <h5 class="parameters">Parameters</h5>
  561. <table class="table table-bordered table-striped table-condensed">
  562. <thead>
  563. <tr>
  564. <th>Type</th>
  565. <th>Name</th>
  566. <th>Description</th>
  567. </tr>
  568. </thead>
  569. <tbody>
  570. <tr>
  571. <td><a class="xref" href="Terminal.Gui.View.html">View</a></td>
  572. <td><span class="parametername">view</span></td>
  573. <td>The <a class="xref" href="Terminal.Gui.View.html">View</a> that will be tracked.</td>
  574. </tr>
  575. </tbody>
  576. </table>
  577. <h5 class="returns">Returns</h5>
  578. <table class="table table-bordered table-striped table-condensed">
  579. <thead>
  580. <tr>
  581. <th>Type</th>
  582. <th>Description</th>
  583. </tr>
  584. </thead>
  585. <tbody>
  586. <tr>
  587. <td><a class="xref" href="Terminal.Gui.Pos.html">Pos</a></td>
  588. <td>The <a class="xref" href="Terminal.Gui.Pos.html">Pos</a> that depends on the other view.</td>
  589. </tr>
  590. </tbody>
  591. </table>
  592. <a id="Terminal_Gui_Pos_Y_" data-uid="Terminal.Gui.Pos.Y*"></a>
  593. <h4 id="Terminal_Gui_Pos_Y_Terminal_Gui_View_" data-uid="Terminal.Gui.Pos.Y(Terminal.Gui.View)">Y(View)</h4>
  594. <div class="markdown level1 summary">
  595. Returns a <a class="xref" href="Terminal.Gui.Pos.html">Pos</a> object tracks the Top (Y) position of the specified <a class="xref" href="Terminal.Gui.View.html">View</a>.
  596. </div>
  597. <div class="markdown level1 conceptual"></div>
  598. <h5 class="decalaration">Declaration</h5>
  599. <div class="codewrapper">
  600. <pre><code class="lang-csharp hljs">public static Pos Y(View view)</code></pre>
  601. </div>
  602. <h5 class="parameters">Parameters</h5>
  603. <table class="table table-bordered table-striped table-condensed">
  604. <thead>
  605. <tr>
  606. <th>Type</th>
  607. <th>Name</th>
  608. <th>Description</th>
  609. </tr>
  610. </thead>
  611. <tbody>
  612. <tr>
  613. <td><a class="xref" href="Terminal.Gui.View.html">View</a></td>
  614. <td><span class="parametername">view</span></td>
  615. <td>The <a class="xref" href="Terminal.Gui.View.html">View</a> that will be tracked.</td>
  616. </tr>
  617. </tbody>
  618. </table>
  619. <h5 class="returns">Returns</h5>
  620. <table class="table table-bordered table-striped table-condensed">
  621. <thead>
  622. <tr>
  623. <th>Type</th>
  624. <th>Description</th>
  625. </tr>
  626. </thead>
  627. <tbody>
  628. <tr>
  629. <td><a class="xref" href="Terminal.Gui.Pos.html">Pos</a></td>
  630. <td>The <a class="xref" href="Terminal.Gui.Pos.html">Pos</a> that depends on the other view.</td>
  631. </tr>
  632. </tbody>
  633. </table>
  634. <h3 id="operators">Operators
  635. </h3>
  636. <a id="Terminal_Gui_Pos_op_Addition_" data-uid="Terminal.Gui.Pos.op_Addition*"></a>
  637. <h4 id="Terminal_Gui_Pos_op_Addition_Terminal_Gui_Pos_Terminal_Gui_Pos_" data-uid="Terminal.Gui.Pos.op_Addition(Terminal.Gui.Pos,Terminal.Gui.Pos)">Addition(Pos, Pos)</h4>
  638. <div class="markdown level1 summary">
  639. Adds a <a class="xref" href="Terminal.Gui.Pos.html">Pos</a> to a <a class="xref" href="Terminal.Gui.Pos.html">Pos</a>, yielding a new <a class="xref" href="Terminal.Gui.Pos.html">Pos</a>.
  640. </div>
  641. <div class="markdown level1 conceptual"></div>
  642. <h5 class="decalaration">Declaration</h5>
  643. <div class="codewrapper">
  644. <pre><code class="lang-csharp hljs">public static Pos operator +(Pos left, Pos right)</code></pre>
  645. </div>
  646. <h5 class="parameters">Parameters</h5>
  647. <table class="table table-bordered table-striped table-condensed">
  648. <thead>
  649. <tr>
  650. <th>Type</th>
  651. <th>Name</th>
  652. <th>Description</th>
  653. </tr>
  654. </thead>
  655. <tbody>
  656. <tr>
  657. <td><a class="xref" href="Terminal.Gui.Pos.html">Pos</a></td>
  658. <td><span class="parametername">left</span></td>
  659. <td>The first <a class="xref" href="Terminal.Gui.Pos.html">Pos</a> to add.</td>
  660. </tr>
  661. <tr>
  662. <td><a class="xref" href="Terminal.Gui.Pos.html">Pos</a></td>
  663. <td><span class="parametername">right</span></td>
  664. <td>The second <a class="xref" href="Terminal.Gui.Pos.html">Pos</a> to add.</td>
  665. </tr>
  666. </tbody>
  667. </table>
  668. <h5 class="returns">Returns</h5>
  669. <table class="table table-bordered table-striped table-condensed">
  670. <thead>
  671. <tr>
  672. <th>Type</th>
  673. <th>Description</th>
  674. </tr>
  675. </thead>
  676. <tbody>
  677. <tr>
  678. <td><a class="xref" href="Terminal.Gui.Pos.html">Pos</a></td>
  679. <td>The <a class="xref" href="Terminal.Gui.Pos.html">Pos</a> that is the sum of the values of <code>left</code> and <code>right</code>.</td>
  680. </tr>
  681. </tbody>
  682. </table>
  683. <a id="Terminal_Gui_Pos_op_Implicit_" data-uid="Terminal.Gui.Pos.op_Implicit*"></a>
  684. <h4 id="Terminal_Gui_Pos_op_Implicit_System_Int32__Terminal_Gui_Pos" data-uid="Terminal.Gui.Pos.op_Implicit(System.Int32)~Terminal.Gui.Pos">Implicit(Int32 to Pos)</h4>
  685. <div class="markdown level1 summary">
  686. Creates an Absolute <a class="xref" href="Terminal.Gui.Pos.html">Pos</a> from the specified integer value.
  687. </div>
  688. <div class="markdown level1 conceptual"></div>
  689. <h5 class="decalaration">Declaration</h5>
  690. <div class="codewrapper">
  691. <pre><code class="lang-csharp hljs">public static implicit operator Pos(int n)</code></pre>
  692. </div>
  693. <h5 class="parameters">Parameters</h5>
  694. <table class="table table-bordered table-striped table-condensed">
  695. <thead>
  696. <tr>
  697. <th>Type</th>
  698. <th>Name</th>
  699. <th>Description</th>
  700. </tr>
  701. </thead>
  702. <tbody>
  703. <tr>
  704. <td><span class="xref">System.Int32</span></td>
  705. <td><span class="parametername">n</span></td>
  706. <td>The value to convert to the <a class="xref" href="Terminal.Gui.Pos.html">Pos</a> .</td>
  707. </tr>
  708. </tbody>
  709. </table>
  710. <h5 class="returns">Returns</h5>
  711. <table class="table table-bordered table-striped table-condensed">
  712. <thead>
  713. <tr>
  714. <th>Type</th>
  715. <th>Description</th>
  716. </tr>
  717. </thead>
  718. <tbody>
  719. <tr>
  720. <td><a class="xref" href="Terminal.Gui.Pos.html">Pos</a></td>
  721. <td>The Absolute <a class="xref" href="Terminal.Gui.Pos.html">Pos</a>.</td>
  722. </tr>
  723. </tbody>
  724. </table>
  725. <a id="Terminal_Gui_Pos_op_Subtraction_" data-uid="Terminal.Gui.Pos.op_Subtraction*"></a>
  726. <h4 id="Terminal_Gui_Pos_op_Subtraction_Terminal_Gui_Pos_Terminal_Gui_Pos_" data-uid="Terminal.Gui.Pos.op_Subtraction(Terminal.Gui.Pos,Terminal.Gui.Pos)">Subtraction(Pos, Pos)</h4>
  727. <div class="markdown level1 summary">
  728. Subtracts a <a class="xref" href="Terminal.Gui.Pos.html">Pos</a> from a <a class="xref" href="Terminal.Gui.Pos.html">Pos</a>, yielding a new <a class="xref" href="Terminal.Gui.Pos.html">Pos</a>.
  729. </div>
  730. <div class="markdown level1 conceptual"></div>
  731. <h5 class="decalaration">Declaration</h5>
  732. <div class="codewrapper">
  733. <pre><code class="lang-csharp hljs">public static Pos operator -(Pos left, Pos right)</code></pre>
  734. </div>
  735. <h5 class="parameters">Parameters</h5>
  736. <table class="table table-bordered table-striped table-condensed">
  737. <thead>
  738. <tr>
  739. <th>Type</th>
  740. <th>Name</th>
  741. <th>Description</th>
  742. </tr>
  743. </thead>
  744. <tbody>
  745. <tr>
  746. <td><a class="xref" href="Terminal.Gui.Pos.html">Pos</a></td>
  747. <td><span class="parametername">left</span></td>
  748. <td>The <a class="xref" href="Terminal.Gui.Pos.html">Pos</a> to subtract from (the minuend).</td>
  749. </tr>
  750. <tr>
  751. <td><a class="xref" href="Terminal.Gui.Pos.html">Pos</a></td>
  752. <td><span class="parametername">right</span></td>
  753. <td>The <a class="xref" href="Terminal.Gui.Pos.html">Pos</a> to subtract (the subtrahend).</td>
  754. </tr>
  755. </tbody>
  756. </table>
  757. <h5 class="returns">Returns</h5>
  758. <table class="table table-bordered table-striped table-condensed">
  759. <thead>
  760. <tr>
  761. <th>Type</th>
  762. <th>Description</th>
  763. </tr>
  764. </thead>
  765. <tbody>
  766. <tr>
  767. <td><a class="xref" href="Terminal.Gui.Pos.html">Pos</a></td>
  768. <td>The <a class="xref" href="Terminal.Gui.Pos.html">Pos</a> that is the <code>left</code> minus <code>right</code>.</td>
  769. </tr>
  770. </tbody>
  771. </table>
  772. </article>
  773. </div>
  774. <div class="hidden-sm col-md-2" role="complementary">
  775. <div class="sideaffix">
  776. <nav class="bs-docs-sidebar hidden-print hidden-xs hidden-sm affix" id="affix">
  777. <h5>In This Article</h5>
  778. <div></div>
  779. </nav>
  780. </div>
  781. </div>
  782. </div>
  783. </div>
  784. <footer>
  785. <div class="grad-bottom"></div>
  786. <div class="footer">
  787. <div class="container">
  788. <span class="pull-right">
  789. <a href="#top">Back to top</a>
  790. </span>
  791. <span>Generated by <strong>DocFX</strong></span>
  792. </div>
  793. </div>
  794. </footer>
  795. </div>
  796. <script type="text/javascript" src="../../styles/docfx.vendor.js"></script>
  797. <script type="text/javascript" src="../../styles/docfx.js"></script>
  798. <script type="text/javascript" src="../../styles/main.js"></script>
  799. </body>
  800. </html>