Terminal.Gui.Pos.html 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779
  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.54.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. <link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet">
  18. <meta property="docfx:navrel" content="../../toc.html">
  19. <meta property="docfx:tocrel" content="toc.html">
  20. <meta property="docfx:rel" content="../../">
  21. </head> <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"></div>
  57. <div class="sr-items">
  58. <p><i class="glyphicon glyphicon-refresh index-loading"></i></p>
  59. </div>
  60. <ul id="pagination"></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 postion
  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>anchorButton.X = Pos.AnchorEnd () - (Pos.Right (anchorButton) - Pos.Left (anchorButton));
  183. anchorButton.Y = Pos.AnchorEnd () - 1;</code></pre>
  184. <a id="Terminal_Gui_Pos_At_" data-uid="Terminal.Gui.Pos.At*"></a>
  185. <h4 id="Terminal_Gui_Pos_At_System_Int32_" data-uid="Terminal.Gui.Pos.At(System.Int32)">At(Int32)</h4>
  186. <div class="markdown level1 summary">
  187. Creates an Absolute <a class="xref" href="Terminal.Gui.Pos.html">Pos</a> from the specified integer value.
  188. </div>
  189. <div class="markdown level1 conceptual"></div>
  190. <h5 class="decalaration">Declaration</h5>
  191. <div class="codewrapper">
  192. <pre><code class="lang-csharp hljs">public static Pos At(int n)</code></pre>
  193. </div>
  194. <h5 class="parameters">Parameters</h5>
  195. <table class="table table-bordered table-striped table-condensed">
  196. <thead>
  197. <tr>
  198. <th>Type</th>
  199. <th>Name</th>
  200. <th>Description</th>
  201. </tr>
  202. </thead>
  203. <tbody>
  204. <tr>
  205. <td><span class="xref">System.Int32</span></td>
  206. <td><span class="parametername">n</span></td>
  207. <td>The value to convert to the <a class="xref" href="Terminal.Gui.Pos.html">Pos</a>.</td>
  208. </tr>
  209. </tbody>
  210. </table>
  211. <h5 class="returns">Returns</h5>
  212. <table class="table table-bordered table-striped table-condensed">
  213. <thead>
  214. <tr>
  215. <th>Type</th>
  216. <th>Description</th>
  217. </tr>
  218. </thead>
  219. <tbody>
  220. <tr>
  221. <td><a class="xref" href="Terminal.Gui.Pos.html">Pos</a></td>
  222. <td>The Absolute <a class="xref" href="Terminal.Gui.Pos.html">Pos</a>.</td>
  223. </tr>
  224. </tbody>
  225. </table>
  226. <a id="Terminal_Gui_Pos_Bottom_" data-uid="Terminal.Gui.Pos.Bottom*"></a>
  227. <h4 id="Terminal_Gui_Pos_Bottom_Terminal_Gui_View_" data-uid="Terminal.Gui.Pos.Bottom(Terminal.Gui.View)">Bottom(View)</h4>
  228. <div class="markdown level1 summary">
  229. 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>
  230. </div>
  231. <div class="markdown level1 conceptual"></div>
  232. <h5 class="decalaration">Declaration</h5>
  233. <div class="codewrapper">
  234. <pre><code class="lang-csharp hljs">public static Pos Bottom(View view)</code></pre>
  235. </div>
  236. <h5 class="parameters">Parameters</h5>
  237. <table class="table table-bordered table-striped table-condensed">
  238. <thead>
  239. <tr>
  240. <th>Type</th>
  241. <th>Name</th>
  242. <th>Description</th>
  243. </tr>
  244. </thead>
  245. <tbody>
  246. <tr>
  247. <td><a class="xref" href="Terminal.Gui.View.html">View</a></td>
  248. <td><span class="parametername">view</span></td>
  249. <td>The <a class="xref" href="Terminal.Gui.View.html">View</a> that will be tracked.</td>
  250. </tr>
  251. </tbody>
  252. </table>
  253. <h5 class="returns">Returns</h5>
  254. <table class="table table-bordered table-striped table-condensed">
  255. <thead>
  256. <tr>
  257. <th>Type</th>
  258. <th>Description</th>
  259. </tr>
  260. </thead>
  261. <tbody>
  262. <tr>
  263. <td><a class="xref" href="Terminal.Gui.Pos.html">Pos</a></td>
  264. <td>The <a class="xref" href="Terminal.Gui.Pos.html">Pos</a> that depends on the other view.</td>
  265. </tr>
  266. </tbody>
  267. </table>
  268. <a id="Terminal_Gui_Pos_Center_" data-uid="Terminal.Gui.Pos.Center*"></a>
  269. <h4 id="Terminal_Gui_Pos_Center" data-uid="Terminal.Gui.Pos.Center">Center()</h4>
  270. <div class="markdown level1 summary">
  271. 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>
  272. </div>
  273. <div class="markdown level1 conceptual"></div>
  274. <h5 class="decalaration">Declaration</h5>
  275. <div class="codewrapper">
  276. <pre><code class="lang-csharp hljs">public static Pos Center()</code></pre>
  277. </div>
  278. <h5 class="returns">Returns</h5>
  279. <table class="table table-bordered table-striped table-condensed">
  280. <thead>
  281. <tr>
  282. <th>Type</th>
  283. <th>Description</th>
  284. </tr>
  285. </thead>
  286. <tbody>
  287. <tr>
  288. <td><a class="xref" href="Terminal.Gui.Pos.html">Pos</a></td>
  289. <td>The center Pos.</td>
  290. </tr>
  291. </tbody>
  292. </table>
  293. <h5 id="Terminal_Gui_Pos_Center_examples">Examples</h5>
  294. This creates a <a class="xref" href="Terminal.Gui.TextField.html">TextField</a>that is centered horizontally, is 50% of the way down,
  295. is 30% the height, and is 80% the width of the <a class="xref" href="Terminal.Gui.View.html">View</a> it added to.
  296. <pre><code>var textView = new TextView () {
  297. X = Pos.Center (),
  298. Y = Pos.Percent (50),
  299. Width = Dim.Percent (80),
  300. Height = Dim.Percent (30),
  301. };</code></pre>
  302. <a id="Terminal_Gui_Pos_Left_" data-uid="Terminal.Gui.Pos.Left*"></a>
  303. <h4 id="Terminal_Gui_Pos_Left_Terminal_Gui_View_" data-uid="Terminal.Gui.Pos.Left(Terminal.Gui.View)">Left(View)</h4>
  304. <div class="markdown level1 summary">
  305. 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>.
  306. </div>
  307. <div class="markdown level1 conceptual"></div>
  308. <h5 class="decalaration">Declaration</h5>
  309. <div class="codewrapper">
  310. <pre><code class="lang-csharp hljs">public static Pos Left(View view)</code></pre>
  311. </div>
  312. <h5 class="parameters">Parameters</h5>
  313. <table class="table table-bordered table-striped table-condensed">
  314. <thead>
  315. <tr>
  316. <th>Type</th>
  317. <th>Name</th>
  318. <th>Description</th>
  319. </tr>
  320. </thead>
  321. <tbody>
  322. <tr>
  323. <td><a class="xref" href="Terminal.Gui.View.html">View</a></td>
  324. <td><span class="parametername">view</span></td>
  325. <td>The <a class="xref" href="Terminal.Gui.View.html">View</a> that will be tracked.</td>
  326. </tr>
  327. </tbody>
  328. </table>
  329. <h5 class="returns">Returns</h5>
  330. <table class="table table-bordered table-striped table-condensed">
  331. <thead>
  332. <tr>
  333. <th>Type</th>
  334. <th>Description</th>
  335. </tr>
  336. </thead>
  337. <tbody>
  338. <tr>
  339. <td><a class="xref" href="Terminal.Gui.Pos.html">Pos</a></td>
  340. <td>The <a class="xref" href="Terminal.Gui.Pos.html">Pos</a> that depends on the other view.</td>
  341. </tr>
  342. </tbody>
  343. </table>
  344. <a id="Terminal_Gui_Pos_Percent_" data-uid="Terminal.Gui.Pos.Percent*"></a>
  345. <h4 id="Terminal_Gui_Pos_Percent_System_Single_" data-uid="Terminal.Gui.Pos.Percent(System.Single)">Percent(Single)</h4>
  346. <div class="markdown level1 summary">
  347. Creates a percentage <a class="xref" href="Terminal.Gui.Pos.html">Pos</a> object
  348. </div>
  349. <div class="markdown level1 conceptual"></div>
  350. <h5 class="decalaration">Declaration</h5>
  351. <div class="codewrapper">
  352. <pre><code class="lang-csharp hljs">public static Pos Percent(float n)</code></pre>
  353. </div>
  354. <h5 class="parameters">Parameters</h5>
  355. <table class="table table-bordered table-striped table-condensed">
  356. <thead>
  357. <tr>
  358. <th>Type</th>
  359. <th>Name</th>
  360. <th>Description</th>
  361. </tr>
  362. </thead>
  363. <tbody>
  364. <tr>
  365. <td><span class="xref">System.Single</span></td>
  366. <td><span class="parametername">n</span></td>
  367. <td>A value between 0 and 100 representing the percentage.</td>
  368. </tr>
  369. </tbody>
  370. </table>
  371. <h5 class="returns">Returns</h5>
  372. <table class="table table-bordered table-striped table-condensed">
  373. <thead>
  374. <tr>
  375. <th>Type</th>
  376. <th>Description</th>
  377. </tr>
  378. </thead>
  379. <tbody>
  380. <tr>
  381. <td><a class="xref" href="Terminal.Gui.Pos.html">Pos</a></td>
  382. <td>The percent <a class="xref" href="Terminal.Gui.Pos.html">Pos</a> object.</td>
  383. </tr>
  384. </tbody>
  385. </table>
  386. <h5 id="Terminal_Gui_Pos_Percent_System_Single__examples">Examples</h5>
  387. This creates a <a class="xref" href="Terminal.Gui.TextField.html">TextField</a>that is centered horizontally, is 50% of the way down,
  388. is 30% the height, and is 80% the width of the <a class="xref" href="Terminal.Gui.View.html">View</a> it added to.
  389. <pre><code>var textView = new TextView () {
  390. X = Pos.Center (),
  391. Y = Pos.Percent (50),
  392. Width = Dim.Percent (80),
  393. Height = Dim.Percent (30),
  394. };</code></pre>
  395. <a id="Terminal_Gui_Pos_Right_" data-uid="Terminal.Gui.Pos.Right*"></a>
  396. <h4 id="Terminal_Gui_Pos_Right_Terminal_Gui_View_" data-uid="Terminal.Gui.Pos.Right(Terminal.Gui.View)">Right(View)</h4>
  397. <div class="markdown level1 summary">
  398. 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>.
  399. </div>
  400. <div class="markdown level1 conceptual"></div>
  401. <h5 class="decalaration">Declaration</h5>
  402. <div class="codewrapper">
  403. <pre><code class="lang-csharp hljs">public static Pos Right(View view)</code></pre>
  404. </div>
  405. <h5 class="parameters">Parameters</h5>
  406. <table class="table table-bordered table-striped table-condensed">
  407. <thead>
  408. <tr>
  409. <th>Type</th>
  410. <th>Name</th>
  411. <th>Description</th>
  412. </tr>
  413. </thead>
  414. <tbody>
  415. <tr>
  416. <td><a class="xref" href="Terminal.Gui.View.html">View</a></td>
  417. <td><span class="parametername">view</span></td>
  418. <td>The <a class="xref" href="Terminal.Gui.View.html">View</a> that will be tracked.</td>
  419. </tr>
  420. </tbody>
  421. </table>
  422. <h5 class="returns">Returns</h5>
  423. <table class="table table-bordered table-striped table-condensed">
  424. <thead>
  425. <tr>
  426. <th>Type</th>
  427. <th>Description</th>
  428. </tr>
  429. </thead>
  430. <tbody>
  431. <tr>
  432. <td><a class="xref" href="Terminal.Gui.Pos.html">Pos</a></td>
  433. <td>The <a class="xref" href="Terminal.Gui.Pos.html">Pos</a> that depends on the other view.</td>
  434. </tr>
  435. </tbody>
  436. </table>
  437. <a id="Terminal_Gui_Pos_Top_" data-uid="Terminal.Gui.Pos.Top*"></a>
  438. <h4 id="Terminal_Gui_Pos_Top_Terminal_Gui_View_" data-uid="Terminal.Gui.Pos.Top(Terminal.Gui.View)">Top(View)</h4>
  439. <div class="markdown level1 summary">
  440. 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>.
  441. </div>
  442. <div class="markdown level1 conceptual"></div>
  443. <h5 class="decalaration">Declaration</h5>
  444. <div class="codewrapper">
  445. <pre><code class="lang-csharp hljs">public static Pos Top(View view)</code></pre>
  446. </div>
  447. <h5 class="parameters">Parameters</h5>
  448. <table class="table table-bordered table-striped table-condensed">
  449. <thead>
  450. <tr>
  451. <th>Type</th>
  452. <th>Name</th>
  453. <th>Description</th>
  454. </tr>
  455. </thead>
  456. <tbody>
  457. <tr>
  458. <td><a class="xref" href="Terminal.Gui.View.html">View</a></td>
  459. <td><span class="parametername">view</span></td>
  460. <td>The <a class="xref" href="Terminal.Gui.View.html">View</a> that will be tracked.</td>
  461. </tr>
  462. </tbody>
  463. </table>
  464. <h5 class="returns">Returns</h5>
  465. <table class="table table-bordered table-striped table-condensed">
  466. <thead>
  467. <tr>
  468. <th>Type</th>
  469. <th>Description</th>
  470. </tr>
  471. </thead>
  472. <tbody>
  473. <tr>
  474. <td><a class="xref" href="Terminal.Gui.Pos.html">Pos</a></td>
  475. <td>The <a class="xref" href="Terminal.Gui.Pos.html">Pos</a> that depends on the other view.</td>
  476. </tr>
  477. </tbody>
  478. </table>
  479. <a id="Terminal_Gui_Pos_X_" data-uid="Terminal.Gui.Pos.X*"></a>
  480. <h4 id="Terminal_Gui_Pos_X_Terminal_Gui_View_" data-uid="Terminal.Gui.Pos.X(Terminal.Gui.View)">X(View)</h4>
  481. <div class="markdown level1 summary">
  482. 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>.
  483. </div>
  484. <div class="markdown level1 conceptual"></div>
  485. <h5 class="decalaration">Declaration</h5>
  486. <div class="codewrapper">
  487. <pre><code class="lang-csharp hljs">public static Pos X(View view)</code></pre>
  488. </div>
  489. <h5 class="parameters">Parameters</h5>
  490. <table class="table table-bordered table-striped table-condensed">
  491. <thead>
  492. <tr>
  493. <th>Type</th>
  494. <th>Name</th>
  495. <th>Description</th>
  496. </tr>
  497. </thead>
  498. <tbody>
  499. <tr>
  500. <td><a class="xref" href="Terminal.Gui.View.html">View</a></td>
  501. <td><span class="parametername">view</span></td>
  502. <td>The <a class="xref" href="Terminal.Gui.View.html">View</a> that will be tracked.</td>
  503. </tr>
  504. </tbody>
  505. </table>
  506. <h5 class="returns">Returns</h5>
  507. <table class="table table-bordered table-striped table-condensed">
  508. <thead>
  509. <tr>
  510. <th>Type</th>
  511. <th>Description</th>
  512. </tr>
  513. </thead>
  514. <tbody>
  515. <tr>
  516. <td><a class="xref" href="Terminal.Gui.Pos.html">Pos</a></td>
  517. <td>The <a class="xref" href="Terminal.Gui.Pos.html">Pos</a> that depends on the other view.</td>
  518. </tr>
  519. </tbody>
  520. </table>
  521. <a id="Terminal_Gui_Pos_Y_" data-uid="Terminal.Gui.Pos.Y*"></a>
  522. <h4 id="Terminal_Gui_Pos_Y_Terminal_Gui_View_" data-uid="Terminal.Gui.Pos.Y(Terminal.Gui.View)">Y(View)</h4>
  523. <div class="markdown level1 summary">
  524. 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>.
  525. </div>
  526. <div class="markdown level1 conceptual"></div>
  527. <h5 class="decalaration">Declaration</h5>
  528. <div class="codewrapper">
  529. <pre><code class="lang-csharp hljs">public static Pos Y(View view)</code></pre>
  530. </div>
  531. <h5 class="parameters">Parameters</h5>
  532. <table class="table table-bordered table-striped table-condensed">
  533. <thead>
  534. <tr>
  535. <th>Type</th>
  536. <th>Name</th>
  537. <th>Description</th>
  538. </tr>
  539. </thead>
  540. <tbody>
  541. <tr>
  542. <td><a class="xref" href="Terminal.Gui.View.html">View</a></td>
  543. <td><span class="parametername">view</span></td>
  544. <td>The <a class="xref" href="Terminal.Gui.View.html">View</a> that will be tracked.</td>
  545. </tr>
  546. </tbody>
  547. </table>
  548. <h5 class="returns">Returns</h5>
  549. <table class="table table-bordered table-striped table-condensed">
  550. <thead>
  551. <tr>
  552. <th>Type</th>
  553. <th>Description</th>
  554. </tr>
  555. </thead>
  556. <tbody>
  557. <tr>
  558. <td><a class="xref" href="Terminal.Gui.Pos.html">Pos</a></td>
  559. <td>The <a class="xref" href="Terminal.Gui.Pos.html">Pos</a> that depends on the other view.</td>
  560. </tr>
  561. </tbody>
  562. </table>
  563. <h3 id="operators">Operators
  564. </h3>
  565. <a id="Terminal_Gui_Pos_op_Addition_" data-uid="Terminal.Gui.Pos.op_Addition*"></a>
  566. <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>
  567. <div class="markdown level1 summary">
  568. 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>.
  569. </div>
  570. <div class="markdown level1 conceptual"></div>
  571. <h5 class="decalaration">Declaration</h5>
  572. <div class="codewrapper">
  573. <pre><code class="lang-csharp hljs">public static Pos operator +(Pos left, Pos right)</code></pre>
  574. </div>
  575. <h5 class="parameters">Parameters</h5>
  576. <table class="table table-bordered table-striped table-condensed">
  577. <thead>
  578. <tr>
  579. <th>Type</th>
  580. <th>Name</th>
  581. <th>Description</th>
  582. </tr>
  583. </thead>
  584. <tbody>
  585. <tr>
  586. <td><a class="xref" href="Terminal.Gui.Pos.html">Pos</a></td>
  587. <td><span class="parametername">left</span></td>
  588. <td>The first <a class="xref" href="Terminal.Gui.Pos.html">Pos</a> to add.</td>
  589. </tr>
  590. <tr>
  591. <td><a class="xref" href="Terminal.Gui.Pos.html">Pos</a></td>
  592. <td><span class="parametername">right</span></td>
  593. <td>The second <a class="xref" href="Terminal.Gui.Pos.html">Pos</a> to add.</td>
  594. </tr>
  595. </tbody>
  596. </table>
  597. <h5 class="returns">Returns</h5>
  598. <table class="table table-bordered table-striped table-condensed">
  599. <thead>
  600. <tr>
  601. <th>Type</th>
  602. <th>Description</th>
  603. </tr>
  604. </thead>
  605. <tbody>
  606. <tr>
  607. <td><a class="xref" href="Terminal.Gui.Pos.html">Pos</a></td>
  608. <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>
  609. </tr>
  610. </tbody>
  611. </table>
  612. <a id="Terminal_Gui_Pos_op_Implicit_" data-uid="Terminal.Gui.Pos.op_Implicit*"></a>
  613. <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>
  614. <div class="markdown level1 summary">
  615. Creates an Absolute <a class="xref" href="Terminal.Gui.Pos.html">Pos</a> from the specified integer value.
  616. </div>
  617. <div class="markdown level1 conceptual"></div>
  618. <h5 class="decalaration">Declaration</h5>
  619. <div class="codewrapper">
  620. <pre><code class="lang-csharp hljs">public static implicit operator Pos(int n)</code></pre>
  621. </div>
  622. <h5 class="parameters">Parameters</h5>
  623. <table class="table table-bordered table-striped table-condensed">
  624. <thead>
  625. <tr>
  626. <th>Type</th>
  627. <th>Name</th>
  628. <th>Description</th>
  629. </tr>
  630. </thead>
  631. <tbody>
  632. <tr>
  633. <td><span class="xref">System.Int32</span></td>
  634. <td><span class="parametername">n</span></td>
  635. <td>The value to convert to the <a class="xref" href="Terminal.Gui.Pos.html">Pos</a> .</td>
  636. </tr>
  637. </tbody>
  638. </table>
  639. <h5 class="returns">Returns</h5>
  640. <table class="table table-bordered table-striped table-condensed">
  641. <thead>
  642. <tr>
  643. <th>Type</th>
  644. <th>Description</th>
  645. </tr>
  646. </thead>
  647. <tbody>
  648. <tr>
  649. <td><a class="xref" href="Terminal.Gui.Pos.html">Pos</a></td>
  650. <td>The Absolute <a class="xref" href="Terminal.Gui.Pos.html">Pos</a>.</td>
  651. </tr>
  652. </tbody>
  653. </table>
  654. <a id="Terminal_Gui_Pos_op_Subtraction_" data-uid="Terminal.Gui.Pos.op_Subtraction*"></a>
  655. <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>
  656. <div class="markdown level1 summary">
  657. 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>.
  658. </div>
  659. <div class="markdown level1 conceptual"></div>
  660. <h5 class="decalaration">Declaration</h5>
  661. <div class="codewrapper">
  662. <pre><code class="lang-csharp hljs">public static Pos operator -(Pos left, Pos right)</code></pre>
  663. </div>
  664. <h5 class="parameters">Parameters</h5>
  665. <table class="table table-bordered table-striped table-condensed">
  666. <thead>
  667. <tr>
  668. <th>Type</th>
  669. <th>Name</th>
  670. <th>Description</th>
  671. </tr>
  672. </thead>
  673. <tbody>
  674. <tr>
  675. <td><a class="xref" href="Terminal.Gui.Pos.html">Pos</a></td>
  676. <td><span class="parametername">left</span></td>
  677. <td>The <a class="xref" href="Terminal.Gui.Pos.html">Pos</a> to subtract from (the minuend).</td>
  678. </tr>
  679. <tr>
  680. <td><a class="xref" href="Terminal.Gui.Pos.html">Pos</a></td>
  681. <td><span class="parametername">right</span></td>
  682. <td>The <a class="xref" href="Terminal.Gui.Pos.html">Pos</a> to subtract (the subtrahend).</td>
  683. </tr>
  684. </tbody>
  685. </table>
  686. <h5 class="returns">Returns</h5>
  687. <table class="table table-bordered table-striped table-condensed">
  688. <thead>
  689. <tr>
  690. <th>Type</th>
  691. <th>Description</th>
  692. </tr>
  693. </thead>
  694. <tbody>
  695. <tr>
  696. <td><a class="xref" href="Terminal.Gui.Pos.html">Pos</a></td>
  697. <td>The <a class="xref" href="Terminal.Gui.Pos.html">Pos</a> that is the <code>left</code> minus <code>right</code>.</td>
  698. </tr>
  699. </tbody>
  700. </table>
  701. </article>
  702. </div>
  703. <div class="hidden-sm col-md-2" role="complementary">
  704. <div class="sideaffix">
  705. <div class="contribution">
  706. <ul class="nav">
  707. </ul>
  708. </div>
  709. <nav class="bs-docs-sidebar hidden-print hidden-xs hidden-sm affix" id="affix">
  710. <!-- <p><a class="back-to-top" href="#top">Back to top</a><p> -->
  711. </nav>
  712. </div>
  713. </div>
  714. </div>
  715. </div>
  716. <footer>
  717. <div class="grad-bottom"></div>
  718. <div class="footer">
  719. <div class="container">
  720. <span class="pull-right">
  721. <a href="#top">Back to top</a>
  722. </span>
  723. <span>Generated by <strong>DocFX</strong></span>
  724. </div>
  725. </div>
  726. </footer>
  727. </div>
  728. <script type="text/javascript" src="../../styles/docfx.vendor.js"></script>
  729. <script type="text/javascript" src="../../styles/docfx.js"></script>
  730. <script type="text/javascript" src="../../styles/main.js"></script>
  731. </body>
  732. </html>