Terminal.Gui.Pos.html 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781
  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.56.7.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.Pos">
  73. <h1 id="Terminal_Gui_Pos" data-uid="Terminal.Gui.Pos" class="text-break">Class Pos
  74. </h1>
  75. <div class="markdown level0 summary">
  76. 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
  77. relative to the ending dimension. Integer values are implicitly convertible to
  78. an absolute <a class="xref" href="Terminal.Gui.Pos.html">Pos</a>. These objects are created using the static methods Percent,
  79. AnchorEnd, and Center. The <a class="xref" href="Terminal.Gui.Pos.html">Pos</a> objects can be combined with the addition and
  80. subtraction operators.
  81. </div>
  82. <div class="markdown level0 conceptual"></div>
  83. <div class="inheritance">
  84. <h5>Inheritance</h5>
  85. <div class="level0"><span class="xref">System.Object</span></div>
  86. <div class="level1"><span class="xref">Pos</span></div>
  87. </div>
  88. <div class="inheritedMembers">
  89. <h5>Inherited Members</h5>
  90. <div>
  91. <span class="xref">System.Object.Equals(System.Object)</span>
  92. </div>
  93. <div>
  94. <span class="xref">System.Object.Equals(System.Object, System.Object)</span>
  95. </div>
  96. <div>
  97. <span class="xref">System.Object.GetHashCode()</span>
  98. </div>
  99. <div>
  100. <span class="xref">System.Object.GetType()</span>
  101. </div>
  102. <div>
  103. <span class="xref">System.Object.MemberwiseClone()</span>
  104. </div>
  105. <div>
  106. <span class="xref">System.Object.ReferenceEquals(System.Object, System.Object)</span>
  107. </div>
  108. <div>
  109. <span class="xref">System.Object.ToString()</span>
  110. </div>
  111. </div>
  112. <h6><strong>Namespace</strong>: <a class="xref" href="Terminal.Gui.html">Terminal.Gui</a></h6>
  113. <h6><strong>Assembly</strong>: Terminal.Gui.dll</h6>
  114. <h5 id="Terminal_Gui_Pos_syntax">Syntax</h5>
  115. <div class="codewrapper">
  116. <pre><code class="lang-csharp hljs">public class Pos</code></pre>
  117. </div>
  118. <h5 id="Terminal_Gui_Pos_remarks"><strong>Remarks</strong></h5>
  119. <div class="markdown level0 remarks">
  120. <p>
  121. 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.
  122. </p>
  123. <p>
  124. These can be used to set the absolute position, when merely assigning an
  125. integer value (via the implicit integer to <a class="xref" href="Terminal.Gui.Pos.html">Pos</a> conversion), and they can be combined
  126. to produce more useful layouts, like: Pos.Center - 3, which would shift the position
  127. of the <a class="xref" href="Terminal.Gui.View.html">View</a> 3 characters to the left after centering for example.
  128. </p>
  129. <p>
  130. It is possible to reference coordinates of another view by using the methods
  131. Left(View), Right(View), Bottom(View), Top(View). The X(View) and Y(View) are
  132. aliases to Left(View) and Top(View) respectively.
  133. </p>
  134. </div>
  135. <h3 id="methods">Methods
  136. </h3>
  137. <a id="Terminal_Gui_Pos_AnchorEnd_" data-uid="Terminal.Gui.Pos.AnchorEnd*"></a>
  138. <h4 id="Terminal_Gui_Pos_AnchorEnd_System_Int32_" data-uid="Terminal.Gui.Pos.AnchorEnd(System.Int32)">AnchorEnd(Int32)</h4>
  139. <div class="markdown level1 summary">
  140. 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,
  141. useful to flush the layout from the right or bottom.
  142. </div>
  143. <div class="markdown level1 conceptual"></div>
  144. <h5 class="decalaration">Declaration</h5>
  145. <div class="codewrapper">
  146. <pre><code class="lang-csharp hljs">public static Pos AnchorEnd(int margin = 0)</code></pre>
  147. </div>
  148. <h5 class="parameters">Parameters</h5>
  149. <table class="table table-bordered table-striped table-condensed">
  150. <thead>
  151. <tr>
  152. <th>Type</th>
  153. <th>Name</th>
  154. <th>Description</th>
  155. </tr>
  156. </thead>
  157. <tbody>
  158. <tr>
  159. <td><span class="xref">System.Int32</span></td>
  160. <td><span class="parametername">margin</span></td>
  161. <td>Optional margin to place to the right or below.</td>
  162. </tr>
  163. </tbody>
  164. </table>
  165. <h5 class="returns">Returns</h5>
  166. <table class="table table-bordered table-striped table-condensed">
  167. <thead>
  168. <tr>
  169. <th>Type</th>
  170. <th>Description</th>
  171. </tr>
  172. </thead>
  173. <tbody>
  174. <tr>
  175. <td><a class="xref" href="Terminal.Gui.Pos.html">Pos</a></td>
  176. <td>The <a class="xref" href="Terminal.Gui.Pos.html">Pos</a> object anchored to the end (the bottom or the right side).</td>
  177. </tr>
  178. </tbody>
  179. </table>
  180. <h5 id="Terminal_Gui_Pos_AnchorEnd_System_Int32__examples">Examples</h5>
  181. This sample shows how align a <a class="xref" href="Terminal.Gui.Button.html">Button</a> to the bottom-right of a <a class="xref" href="Terminal.Gui.View.html">View</a>.
  182. <pre><code>// See Issue #502
  183. anchorButton.X = Pos.AnchorEnd () - (Pos.Right (anchorButton) - Pos.Left (anchorButton));
  184. anchorButton.Y = Pos.AnchorEnd (1);</code></pre>
  185. <a id="Terminal_Gui_Pos_At_" data-uid="Terminal.Gui.Pos.At*"></a>
  186. <h4 id="Terminal_Gui_Pos_At_System_Int32_" data-uid="Terminal.Gui.Pos.At(System.Int32)">At(Int32)</h4>
  187. <div class="markdown level1 summary">
  188. Creates an Absolute <a class="xref" href="Terminal.Gui.Pos.html">Pos</a> from the specified integer value.
  189. </div>
  190. <div class="markdown level1 conceptual"></div>
  191. <h5 class="decalaration">Declaration</h5>
  192. <div class="codewrapper">
  193. <pre><code class="lang-csharp hljs">public static Pos At(int n)</code></pre>
  194. </div>
  195. <h5 class="parameters">Parameters</h5>
  196. <table class="table table-bordered table-striped table-condensed">
  197. <thead>
  198. <tr>
  199. <th>Type</th>
  200. <th>Name</th>
  201. <th>Description</th>
  202. </tr>
  203. </thead>
  204. <tbody>
  205. <tr>
  206. <td><span class="xref">System.Int32</span></td>
  207. <td><span class="parametername">n</span></td>
  208. <td>The value to convert to the <a class="xref" href="Terminal.Gui.Pos.html">Pos</a>.</td>
  209. </tr>
  210. </tbody>
  211. </table>
  212. <h5 class="returns">Returns</h5>
  213. <table class="table table-bordered table-striped table-condensed">
  214. <thead>
  215. <tr>
  216. <th>Type</th>
  217. <th>Description</th>
  218. </tr>
  219. </thead>
  220. <tbody>
  221. <tr>
  222. <td><a class="xref" href="Terminal.Gui.Pos.html">Pos</a></td>
  223. <td>The Absolute <a class="xref" href="Terminal.Gui.Pos.html">Pos</a>.</td>
  224. </tr>
  225. </tbody>
  226. </table>
  227. <a id="Terminal_Gui_Pos_Bottom_" data-uid="Terminal.Gui.Pos.Bottom*"></a>
  228. <h4 id="Terminal_Gui_Pos_Bottom_Terminal_Gui_View_" data-uid="Terminal.Gui.Pos.Bottom(Terminal.Gui.View)">Bottom(View)</h4>
  229. <div class="markdown level1 summary">
  230. 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>
  231. </div>
  232. <div class="markdown level1 conceptual"></div>
  233. <h5 class="decalaration">Declaration</h5>
  234. <div class="codewrapper">
  235. <pre><code class="lang-csharp hljs">public static Pos Bottom(View view)</code></pre>
  236. </div>
  237. <h5 class="parameters">Parameters</h5>
  238. <table class="table table-bordered table-striped table-condensed">
  239. <thead>
  240. <tr>
  241. <th>Type</th>
  242. <th>Name</th>
  243. <th>Description</th>
  244. </tr>
  245. </thead>
  246. <tbody>
  247. <tr>
  248. <td><a class="xref" href="Terminal.Gui.View.html">View</a></td>
  249. <td><span class="parametername">view</span></td>
  250. <td>The <a class="xref" href="Terminal.Gui.View.html">View</a> that will be tracked.</td>
  251. </tr>
  252. </tbody>
  253. </table>
  254. <h5 class="returns">Returns</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><a class="xref" href="Terminal.Gui.Pos.html">Pos</a></td>
  265. <td>The <a class="xref" href="Terminal.Gui.Pos.html">Pos</a> that depends on the other view.</td>
  266. </tr>
  267. </tbody>
  268. </table>
  269. <a id="Terminal_Gui_Pos_Center_" data-uid="Terminal.Gui.Pos.Center*"></a>
  270. <h4 id="Terminal_Gui_Pos_Center" data-uid="Terminal.Gui.Pos.Center">Center()</h4>
  271. <div class="markdown level1 summary">
  272. 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>
  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 static Pos Center()</code></pre>
  278. </div>
  279. <h5 class="returns">Returns</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><a class="xref" href="Terminal.Gui.Pos.html">Pos</a></td>
  290. <td>The center Pos.</td>
  291. </tr>
  292. </tbody>
  293. </table>
  294. <h5 id="Terminal_Gui_Pos_Center_examples">Examples</h5>
  295. This creates a <a class="xref" href="Terminal.Gui.TextField.html">TextField</a>that is centered horizontally, is 50% of the way down,
  296. is 30% the height, and is 80% the width of the <a class="xref" href="Terminal.Gui.View.html">View</a> it added to.
  297. <pre><code>var textView = new TextView () {
  298. X = Pos.Center (),
  299. Y = Pos.Percent (50),
  300. Width = Dim.Percent (80),
  301. Height = Dim.Percent (30),
  302. };</code></pre>
  303. <a id="Terminal_Gui_Pos_Left_" data-uid="Terminal.Gui.Pos.Left*"></a>
  304. <h4 id="Terminal_Gui_Pos_Left_Terminal_Gui_View_" data-uid="Terminal.Gui.Pos.Left(Terminal.Gui.View)">Left(View)</h4>
  305. <div class="markdown level1 summary">
  306. 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>.
  307. </div>
  308. <div class="markdown level1 conceptual"></div>
  309. <h5 class="decalaration">Declaration</h5>
  310. <div class="codewrapper">
  311. <pre><code class="lang-csharp hljs">public static Pos Left(View view)</code></pre>
  312. </div>
  313. <h5 class="parameters">Parameters</h5>
  314. <table class="table table-bordered table-striped table-condensed">
  315. <thead>
  316. <tr>
  317. <th>Type</th>
  318. <th>Name</th>
  319. <th>Description</th>
  320. </tr>
  321. </thead>
  322. <tbody>
  323. <tr>
  324. <td><a class="xref" href="Terminal.Gui.View.html">View</a></td>
  325. <td><span class="parametername">view</span></td>
  326. <td>The <a class="xref" href="Terminal.Gui.View.html">View</a> that will be tracked.</td>
  327. </tr>
  328. </tbody>
  329. </table>
  330. <h5 class="returns">Returns</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><a class="xref" href="Terminal.Gui.Pos.html">Pos</a></td>
  341. <td>The <a class="xref" href="Terminal.Gui.Pos.html">Pos</a> that depends on the other view.</td>
  342. </tr>
  343. </tbody>
  344. </table>
  345. <a id="Terminal_Gui_Pos_Percent_" data-uid="Terminal.Gui.Pos.Percent*"></a>
  346. <h4 id="Terminal_Gui_Pos_Percent_System_Single_" data-uid="Terminal.Gui.Pos.Percent(System.Single)">Percent(Single)</h4>
  347. <div class="markdown level1 summary">
  348. Creates a percentage <a class="xref" href="Terminal.Gui.Pos.html">Pos</a> object
  349. </div>
  350. <div class="markdown level1 conceptual"></div>
  351. <h5 class="decalaration">Declaration</h5>
  352. <div class="codewrapper">
  353. <pre><code class="lang-csharp hljs">public static Pos Percent(float n)</code></pre>
  354. </div>
  355. <h5 class="parameters">Parameters</h5>
  356. <table class="table table-bordered table-striped table-condensed">
  357. <thead>
  358. <tr>
  359. <th>Type</th>
  360. <th>Name</th>
  361. <th>Description</th>
  362. </tr>
  363. </thead>
  364. <tbody>
  365. <tr>
  366. <td><span class="xref">System.Single</span></td>
  367. <td><span class="parametername">n</span></td>
  368. <td>A value between 0 and 100 representing the percentage.</td>
  369. </tr>
  370. </tbody>
  371. </table>
  372. <h5 class="returns">Returns</h5>
  373. <table class="table table-bordered table-striped table-condensed">
  374. <thead>
  375. <tr>
  376. <th>Type</th>
  377. <th>Description</th>
  378. </tr>
  379. </thead>
  380. <tbody>
  381. <tr>
  382. <td><a class="xref" href="Terminal.Gui.Pos.html">Pos</a></td>
  383. <td>The percent <a class="xref" href="Terminal.Gui.Pos.html">Pos</a> object.</td>
  384. </tr>
  385. </tbody>
  386. </table>
  387. <h5 id="Terminal_Gui_Pos_Percent_System_Single__examples">Examples</h5>
  388. This creates a <a class="xref" href="Terminal.Gui.TextField.html">TextField</a>that is centered horizontally, is 50% of the way down,
  389. is 30% the height, and is 80% the width of the <a class="xref" href="Terminal.Gui.View.html">View</a> it added to.
  390. <pre><code>var textView = new TextView () {
  391. X = Pos.Center (),
  392. Y = Pos.Percent (50),
  393. Width = Dim.Percent (80),
  394. Height = Dim.Percent (30),
  395. };</code></pre>
  396. <a id="Terminal_Gui_Pos_Right_" data-uid="Terminal.Gui.Pos.Right*"></a>
  397. <h4 id="Terminal_Gui_Pos_Right_Terminal_Gui_View_" data-uid="Terminal.Gui.Pos.Right(Terminal.Gui.View)">Right(View)</h4>
  398. <div class="markdown level1 summary">
  399. 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>.
  400. </div>
  401. <div class="markdown level1 conceptual"></div>
  402. <h5 class="decalaration">Declaration</h5>
  403. <div class="codewrapper">
  404. <pre><code class="lang-csharp hljs">public static Pos Right(View view)</code></pre>
  405. </div>
  406. <h5 class="parameters">Parameters</h5>
  407. <table class="table table-bordered table-striped table-condensed">
  408. <thead>
  409. <tr>
  410. <th>Type</th>
  411. <th>Name</th>
  412. <th>Description</th>
  413. </tr>
  414. </thead>
  415. <tbody>
  416. <tr>
  417. <td><a class="xref" href="Terminal.Gui.View.html">View</a></td>
  418. <td><span class="parametername">view</span></td>
  419. <td>The <a class="xref" href="Terminal.Gui.View.html">View</a> that will be tracked.</td>
  420. </tr>
  421. </tbody>
  422. </table>
  423. <h5 class="returns">Returns</h5>
  424. <table class="table table-bordered table-striped table-condensed">
  425. <thead>
  426. <tr>
  427. <th>Type</th>
  428. <th>Description</th>
  429. </tr>
  430. </thead>
  431. <tbody>
  432. <tr>
  433. <td><a class="xref" href="Terminal.Gui.Pos.html">Pos</a></td>
  434. <td>The <a class="xref" href="Terminal.Gui.Pos.html">Pos</a> that depends on the other view.</td>
  435. </tr>
  436. </tbody>
  437. </table>
  438. <a id="Terminal_Gui_Pos_Top_" data-uid="Terminal.Gui.Pos.Top*"></a>
  439. <h4 id="Terminal_Gui_Pos_Top_Terminal_Gui_View_" data-uid="Terminal.Gui.Pos.Top(Terminal.Gui.View)">Top(View)</h4>
  440. <div class="markdown level1 summary">
  441. 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>.
  442. </div>
  443. <div class="markdown level1 conceptual"></div>
  444. <h5 class="decalaration">Declaration</h5>
  445. <div class="codewrapper">
  446. <pre><code class="lang-csharp hljs">public static Pos Top(View view)</code></pre>
  447. </div>
  448. <h5 class="parameters">Parameters</h5>
  449. <table class="table table-bordered table-striped table-condensed">
  450. <thead>
  451. <tr>
  452. <th>Type</th>
  453. <th>Name</th>
  454. <th>Description</th>
  455. </tr>
  456. </thead>
  457. <tbody>
  458. <tr>
  459. <td><a class="xref" href="Terminal.Gui.View.html">View</a></td>
  460. <td><span class="parametername">view</span></td>
  461. <td>The <a class="xref" href="Terminal.Gui.View.html">View</a> that will be tracked.</td>
  462. </tr>
  463. </tbody>
  464. </table>
  465. <h5 class="returns">Returns</h5>
  466. <table class="table table-bordered table-striped table-condensed">
  467. <thead>
  468. <tr>
  469. <th>Type</th>
  470. <th>Description</th>
  471. </tr>
  472. </thead>
  473. <tbody>
  474. <tr>
  475. <td><a class="xref" href="Terminal.Gui.Pos.html">Pos</a></td>
  476. <td>The <a class="xref" href="Terminal.Gui.Pos.html">Pos</a> that depends on the other view.</td>
  477. </tr>
  478. </tbody>
  479. </table>
  480. <a id="Terminal_Gui_Pos_X_" data-uid="Terminal.Gui.Pos.X*"></a>
  481. <h4 id="Terminal_Gui_Pos_X_Terminal_Gui_View_" data-uid="Terminal.Gui.Pos.X(Terminal.Gui.View)">X(View)</h4>
  482. <div class="markdown level1 summary">
  483. 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>.
  484. </div>
  485. <div class="markdown level1 conceptual"></div>
  486. <h5 class="decalaration">Declaration</h5>
  487. <div class="codewrapper">
  488. <pre><code class="lang-csharp hljs">public static Pos X(View view)</code></pre>
  489. </div>
  490. <h5 class="parameters">Parameters</h5>
  491. <table class="table table-bordered table-striped table-condensed">
  492. <thead>
  493. <tr>
  494. <th>Type</th>
  495. <th>Name</th>
  496. <th>Description</th>
  497. </tr>
  498. </thead>
  499. <tbody>
  500. <tr>
  501. <td><a class="xref" href="Terminal.Gui.View.html">View</a></td>
  502. <td><span class="parametername">view</span></td>
  503. <td>The <a class="xref" href="Terminal.Gui.View.html">View</a> that will be tracked.</td>
  504. </tr>
  505. </tbody>
  506. </table>
  507. <h5 class="returns">Returns</h5>
  508. <table class="table table-bordered table-striped table-condensed">
  509. <thead>
  510. <tr>
  511. <th>Type</th>
  512. <th>Description</th>
  513. </tr>
  514. </thead>
  515. <tbody>
  516. <tr>
  517. <td><a class="xref" href="Terminal.Gui.Pos.html">Pos</a></td>
  518. <td>The <a class="xref" href="Terminal.Gui.Pos.html">Pos</a> that depends on the other view.</td>
  519. </tr>
  520. </tbody>
  521. </table>
  522. <a id="Terminal_Gui_Pos_Y_" data-uid="Terminal.Gui.Pos.Y*"></a>
  523. <h4 id="Terminal_Gui_Pos_Y_Terminal_Gui_View_" data-uid="Terminal.Gui.Pos.Y(Terminal.Gui.View)">Y(View)</h4>
  524. <div class="markdown level1 summary">
  525. 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>.
  526. </div>
  527. <div class="markdown level1 conceptual"></div>
  528. <h5 class="decalaration">Declaration</h5>
  529. <div class="codewrapper">
  530. <pre><code class="lang-csharp hljs">public static Pos Y(View view)</code></pre>
  531. </div>
  532. <h5 class="parameters">Parameters</h5>
  533. <table class="table table-bordered table-striped table-condensed">
  534. <thead>
  535. <tr>
  536. <th>Type</th>
  537. <th>Name</th>
  538. <th>Description</th>
  539. </tr>
  540. </thead>
  541. <tbody>
  542. <tr>
  543. <td><a class="xref" href="Terminal.Gui.View.html">View</a></td>
  544. <td><span class="parametername">view</span></td>
  545. <td>The <a class="xref" href="Terminal.Gui.View.html">View</a> that will be tracked.</td>
  546. </tr>
  547. </tbody>
  548. </table>
  549. <h5 class="returns">Returns</h5>
  550. <table class="table table-bordered table-striped table-condensed">
  551. <thead>
  552. <tr>
  553. <th>Type</th>
  554. <th>Description</th>
  555. </tr>
  556. </thead>
  557. <tbody>
  558. <tr>
  559. <td><a class="xref" href="Terminal.Gui.Pos.html">Pos</a></td>
  560. <td>The <a class="xref" href="Terminal.Gui.Pos.html">Pos</a> that depends on the other view.</td>
  561. </tr>
  562. </tbody>
  563. </table>
  564. <h3 id="operators">Operators
  565. </h3>
  566. <a id="Terminal_Gui_Pos_op_Addition_" data-uid="Terminal.Gui.Pos.op_Addition*"></a>
  567. <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>
  568. <div class="markdown level1 summary">
  569. 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>.
  570. </div>
  571. <div class="markdown level1 conceptual"></div>
  572. <h5 class="decalaration">Declaration</h5>
  573. <div class="codewrapper">
  574. <pre><code class="lang-csharp hljs">public static Pos operator +(Pos left, Pos right)</code></pre>
  575. </div>
  576. <h5 class="parameters">Parameters</h5>
  577. <table class="table table-bordered table-striped table-condensed">
  578. <thead>
  579. <tr>
  580. <th>Type</th>
  581. <th>Name</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><span class="parametername">left</span></td>
  589. <td>The first <a class="xref" href="Terminal.Gui.Pos.html">Pos</a> to add.</td>
  590. </tr>
  591. <tr>
  592. <td><a class="xref" href="Terminal.Gui.Pos.html">Pos</a></td>
  593. <td><span class="parametername">right</span></td>
  594. <td>The second <a class="xref" href="Terminal.Gui.Pos.html">Pos</a> to add.</td>
  595. </tr>
  596. </tbody>
  597. </table>
  598. <h5 class="returns">Returns</h5>
  599. <table class="table table-bordered table-striped table-condensed">
  600. <thead>
  601. <tr>
  602. <th>Type</th>
  603. <th>Description</th>
  604. </tr>
  605. </thead>
  606. <tbody>
  607. <tr>
  608. <td><a class="xref" href="Terminal.Gui.Pos.html">Pos</a></td>
  609. <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>
  610. </tr>
  611. </tbody>
  612. </table>
  613. <a id="Terminal_Gui_Pos_op_Implicit_" data-uid="Terminal.Gui.Pos.op_Implicit*"></a>
  614. <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>
  615. <div class="markdown level1 summary">
  616. Creates an Absolute <a class="xref" href="Terminal.Gui.Pos.html">Pos</a> from the specified integer value.
  617. </div>
  618. <div class="markdown level1 conceptual"></div>
  619. <h5 class="decalaration">Declaration</h5>
  620. <div class="codewrapper">
  621. <pre><code class="lang-csharp hljs">public static implicit operator Pos(int n)</code></pre>
  622. </div>
  623. <h5 class="parameters">Parameters</h5>
  624. <table class="table table-bordered table-striped table-condensed">
  625. <thead>
  626. <tr>
  627. <th>Type</th>
  628. <th>Name</th>
  629. <th>Description</th>
  630. </tr>
  631. </thead>
  632. <tbody>
  633. <tr>
  634. <td><span class="xref">System.Int32</span></td>
  635. <td><span class="parametername">n</span></td>
  636. <td>The value to convert to the <a class="xref" href="Terminal.Gui.Pos.html">Pos</a> .</td>
  637. </tr>
  638. </tbody>
  639. </table>
  640. <h5 class="returns">Returns</h5>
  641. <table class="table table-bordered table-striped table-condensed">
  642. <thead>
  643. <tr>
  644. <th>Type</th>
  645. <th>Description</th>
  646. </tr>
  647. </thead>
  648. <tbody>
  649. <tr>
  650. <td><a class="xref" href="Terminal.Gui.Pos.html">Pos</a></td>
  651. <td>The Absolute <a class="xref" href="Terminal.Gui.Pos.html">Pos</a>.</td>
  652. </tr>
  653. </tbody>
  654. </table>
  655. <a id="Terminal_Gui_Pos_op_Subtraction_" data-uid="Terminal.Gui.Pos.op_Subtraction*"></a>
  656. <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>
  657. <div class="markdown level1 summary">
  658. 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>.
  659. </div>
  660. <div class="markdown level1 conceptual"></div>
  661. <h5 class="decalaration">Declaration</h5>
  662. <div class="codewrapper">
  663. <pre><code class="lang-csharp hljs">public static Pos operator -(Pos left, Pos right)</code></pre>
  664. </div>
  665. <h5 class="parameters">Parameters</h5>
  666. <table class="table table-bordered table-striped table-condensed">
  667. <thead>
  668. <tr>
  669. <th>Type</th>
  670. <th>Name</th>
  671. <th>Description</th>
  672. </tr>
  673. </thead>
  674. <tbody>
  675. <tr>
  676. <td><a class="xref" href="Terminal.Gui.Pos.html">Pos</a></td>
  677. <td><span class="parametername">left</span></td>
  678. <td>The <a class="xref" href="Terminal.Gui.Pos.html">Pos</a> to subtract from (the minuend).</td>
  679. </tr>
  680. <tr>
  681. <td><a class="xref" href="Terminal.Gui.Pos.html">Pos</a></td>
  682. <td><span class="parametername">right</span></td>
  683. <td>The <a class="xref" href="Terminal.Gui.Pos.html">Pos</a> to subtract (the subtrahend).</td>
  684. </tr>
  685. </tbody>
  686. </table>
  687. <h5 class="returns">Returns</h5>
  688. <table class="table table-bordered table-striped table-condensed">
  689. <thead>
  690. <tr>
  691. <th>Type</th>
  692. <th>Description</th>
  693. </tr>
  694. </thead>
  695. <tbody>
  696. <tr>
  697. <td><a class="xref" href="Terminal.Gui.Pos.html">Pos</a></td>
  698. <td>The <a class="xref" href="Terminal.Gui.Pos.html">Pos</a> that is the <code>left</code> minus <code>right</code>.</td>
  699. </tr>
  700. </tbody>
  701. </table>
  702. </article>
  703. </div>
  704. <div class="hidden-sm col-md-2" role="complementary">
  705. <div class="sideaffix">
  706. <div class="contribution">
  707. <ul class="nav">
  708. </ul>
  709. </div>
  710. <nav class="bs-docs-sidebar hidden-print hidden-xs hidden-sm affix" id="affix">
  711. <h5>In This Article</h5>
  712. <div></div>
  713. </nav>
  714. </div>
  715. </div>
  716. </div>
  717. </div>
  718. <footer>
  719. <div class="grad-bottom"></div>
  720. <div class="footer">
  721. <div class="container">
  722. <span class="pull-right">
  723. <a href="#top">Back to top</a>
  724. </span>
  725. <span>Generated by <strong>DocFX</strong></span>
  726. </div>
  727. </div>
  728. </footer>
  729. </div>
  730. <script type="text/javascript" src="../../styles/docfx.vendor.js"></script>
  731. <script type="text/javascript" src="../../styles/docfx.js"></script>
  732. <script type="text/javascript" src="../../styles/main.js"></script>
  733. </body>
  734. </html>