Terminal.Gui.Pos.html 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739
  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.18.2.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="">
  18. <meta property="docfx:tocrel" content="../toc.html">
  19. </head>
  20. <body data-spy="scroll" data-target="#affix">
  21. <div id="wrapper">
  22. <header>
  23. <nav id="autocollapse" class="navbar navbar-inverse ng-scope" role="navigation">
  24. <div class="container">
  25. <div class="navbar-header">
  26. <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar">
  27. <span class="sr-only">Toggle navigation</span>
  28. <span class="icon-bar"></span>
  29. <span class="icon-bar"></span>
  30. <span class="icon-bar"></span>
  31. </button>
  32. <a class="navbar-brand" href="../../index.html">
  33. <img id="logo" class="svg" src="../../logo.svg" alt="">
  34. </a>
  35. </div>
  36. <div class="collapse navbar-collapse" id="navbar">
  37. <form class="navbar-form navbar-right" role="search" id="search">
  38. <div class="form-group">
  39. <input type="text" class="form-control" id="search-query" placeholder="Search" autocomplete="off">
  40. </div>
  41. </form>
  42. </div>
  43. </div>
  44. </nav>
  45. <div class="subnav navbar navbar-default">
  46. <div class="container hide-when-search" id="breadcrumb">
  47. <ul class="breadcrumb">
  48. <li></li>
  49. </ul>
  50. </div>
  51. </div>
  52. </header>
  53. <div role="main" class="container body-content hide-when-search">
  54. <div class="sidenav hide-when-search">
  55. <a class="btn toc-toggle collapse" data-toggle="collapse" href="#sidetoggle" aria-expanded="false" aria-controls="sidetoggle">Show / Hide Table of Contents</a>
  56. <div class="sidetoggle collapse" id="sidetoggle">
  57. <div id="sidetoc"></div>
  58. </div>
  59. </div>
  60. <div class="article row grid-right">
  61. <div class="col-md-10">
  62. <article class="content wrap" id="_content" data-uid="Terminal.Gui.Pos">
  63. <h1 id="Terminal_Gui_Pos" data-uid="Terminal.Gui.Pos">Class Pos
  64. </h1>
  65. <div class="markdown level0 summary"><p>Describes a position which can be an absolute value, a percentage, centered, or
  66. relative to the ending dimension. Integer values are implicitly convertible to
  67. an absolute Pos. These objects are created using the static methods Percent,
  68. AnchorEnd and Center. The Pos objects can be combined with the addition and
  69. subtraction operators.</p>
  70. </div>
  71. <div class="markdown level0 conceptual"></div>
  72. <div class="inheritance">
  73. <h5>Inheritance</h5>
  74. <div class="level0"><span class="xref">System.Object</span></div>
  75. <div class="level1"><span class="xref">Pos</span></div>
  76. </div>
  77. <h6><strong>Namespace</strong>: <a class="xref" href="../Terminal.Gui.html">Terminal.Gui</a></h6>
  78. <h6><strong>Assembly</strong>: Terminal.Gui.dll</h6>
  79. <h5 id="Terminal_Gui_Pos_syntax">Syntax</h5>
  80. <div class="codewrapper">
  81. <pre><code class="lang-csharp hljs">public class Pos</code></pre>
  82. </div>
  83. <h5 id="Terminal_Gui_Pos_remarks"><strong>Remarks</strong></h5>
  84. <div class="markdown level0 remarks"><p>
  85. Use the Pos objects on the X or Y properties of a view to control the position.
  86. </p>
  87. <p>
  88. These can be used to set the absolute position, when merely assigning an
  89. integer value (via the implicit integer to Pos conversion), and they can be combined
  90. to produce more useful layouts, like: Pos.Center - 3, which would shift the postion
  91. of the view 3 characters to the left after centering for example.
  92. </p>
  93. <p>
  94. It is possible to reference coordinates of another view by using the methods
  95. Left(View), Right(View), Bottom(View), Top(View). The X(View) and Y(View) are
  96. aliases to Left(View) and Top(View) respectively.
  97. </p></div>
  98. <h3 id="constructors">Constructors
  99. </h3>
  100. <a id="Terminal_Gui_Pos__ctor_" data-uid="Terminal.Gui.Pos.#ctor*"></a>
  101. <h4 id="Terminal_Gui_Pos__ctor" data-uid="Terminal.Gui.Pos.#ctor">Pos()</h4>
  102. <div class="markdown level1 summary"></div>
  103. <div class="markdown level1 conceptual"></div>
  104. <h5 class="decalaration">Declaration</h5>
  105. <div class="codewrapper">
  106. <pre><code class="lang-csharp hljs">public Pos ();</code></pre>
  107. </div>
  108. <h3 id="methods">Methods
  109. </h3>
  110. <a id="Terminal_Gui_Pos_AnchorEnd_" data-uid="Terminal.Gui.Pos.AnchorEnd*"></a>
  111. <h4 id="Terminal_Gui_Pos_AnchorEnd_System_Int32_" data-uid="Terminal.Gui.Pos.AnchorEnd(System.Int32)">AnchorEnd(Int32)</h4>
  112. <div class="markdown level1 summary"><p>Creates a Pos object that is anchored to the end of the dimension, useful to flush
  113. the layout from the end.</p>
  114. </div>
  115. <div class="markdown level1 conceptual"></div>
  116. <h5 class="decalaration">Declaration</h5>
  117. <div class="codewrapper">
  118. <pre><code class="lang-csharp hljs">public static Terminal.Gui.Pos AnchorEnd (int margin = 0);</code></pre>
  119. </div>
  120. <h5 class="parameters">Parameters</h5>
  121. <table class="table table-bordered table-striped table-condensed">
  122. <thead>
  123. <tr>
  124. <th>Type</th>
  125. <th>Name</th>
  126. <th>Description</th>
  127. </tr>
  128. </thead>
  129. <tbody>
  130. <tr>
  131. <td><span class="xref">System.Int32</span></td>
  132. <td><span class="parametername">margin</span></td>
  133. <td><p>Optional margin to set aside.</p>
  134. </td>
  135. </tr>
  136. </tbody>
  137. </table>
  138. <h5 class="returns">Returns</h5>
  139. <table class="table table-bordered table-striped table-condensed">
  140. <thead>
  141. <tr>
  142. <th>Type</th>
  143. <th>Description</th>
  144. </tr>
  145. </thead>
  146. <tbody>
  147. <tr>
  148. <td><a class="xref" href="Terminal.Gui.Pos.html">Pos</a></td>
  149. <td><p>The Pos object anchored to the end (the bottom or the right side).</p>
  150. </td>
  151. </tr>
  152. </tbody>
  153. </table>
  154. <a id="Terminal_Gui_Pos_At_" data-uid="Terminal.Gui.Pos.At*"></a>
  155. <h4 id="Terminal_Gui_Pos_At_System_Int32_" data-uid="Terminal.Gui.Pos.At(System.Int32)">At(Int32)</h4>
  156. <div class="markdown level1 summary"><p>Creates an Absolute Pos from the specified integer value.</p>
  157. </div>
  158. <div class="markdown level1 conceptual"></div>
  159. <h5 class="decalaration">Declaration</h5>
  160. <div class="codewrapper">
  161. <pre><code class="lang-csharp hljs">public static Terminal.Gui.Pos At (int n);</code></pre>
  162. </div>
  163. <h5 class="parameters">Parameters</h5>
  164. <table class="table table-bordered table-striped table-condensed">
  165. <thead>
  166. <tr>
  167. <th>Type</th>
  168. <th>Name</th>
  169. <th>Description</th>
  170. </tr>
  171. </thead>
  172. <tbody>
  173. <tr>
  174. <td><span class="xref">System.Int32</span></td>
  175. <td><span class="parametername">n</span></td>
  176. <td><p>The value to convert to the pos.</p>
  177. </td>
  178. </tr>
  179. </tbody>
  180. </table>
  181. <h5 class="returns">Returns</h5>
  182. <table class="table table-bordered table-striped table-condensed">
  183. <thead>
  184. <tr>
  185. <th>Type</th>
  186. <th>Description</th>
  187. </tr>
  188. </thead>
  189. <tbody>
  190. <tr>
  191. <td><a class="xref" href="Terminal.Gui.Pos.html">Pos</a></td>
  192. <td><p>The Absolute Pos.</p>
  193. </td>
  194. </tr>
  195. </tbody>
  196. </table>
  197. <a id="Terminal_Gui_Pos_Bottom_" data-uid="Terminal.Gui.Pos.Bottom*"></a>
  198. <h4 id="Terminal_Gui_Pos_Bottom_Terminal_Gui_View_" data-uid="Terminal.Gui.Pos.Bottom(Terminal.Gui.View)">Bottom(View)</h4>
  199. <div class="markdown level1 summary"><p>Returns a Pos object tracks the Bottom (Y+Height) coordinate of the specified view.</p>
  200. </div>
  201. <div class="markdown level1 conceptual"></div>
  202. <h5 class="decalaration">Declaration</h5>
  203. <div class="codewrapper">
  204. <pre><code class="lang-csharp hljs">public static Terminal.Gui.Pos Bottom (Terminal.Gui.View view);</code></pre>
  205. </div>
  206. <h5 class="parameters">Parameters</h5>
  207. <table class="table table-bordered table-striped table-condensed">
  208. <thead>
  209. <tr>
  210. <th>Type</th>
  211. <th>Name</th>
  212. <th>Description</th>
  213. </tr>
  214. </thead>
  215. <tbody>
  216. <tr>
  217. <td><a class="xref" href="Terminal.Gui.View.html">View</a></td>
  218. <td><span class="parametername">view</span></td>
  219. <td><p>The view that will be tracked.</p>
  220. </td>
  221. </tr>
  222. </tbody>
  223. </table>
  224. <h5 class="returns">Returns</h5>
  225. <table class="table table-bordered table-striped table-condensed">
  226. <thead>
  227. <tr>
  228. <th>Type</th>
  229. <th>Description</th>
  230. </tr>
  231. </thead>
  232. <tbody>
  233. <tr>
  234. <td><a class="xref" href="Terminal.Gui.Pos.html">Pos</a></td>
  235. <td><p>The Position that depends on the other view.</p>
  236. </td>
  237. </tr>
  238. </tbody>
  239. </table>
  240. <a id="Terminal_Gui_Pos_Center_" data-uid="Terminal.Gui.Pos.Center*"></a>
  241. <h4 id="Terminal_Gui_Pos_Center" data-uid="Terminal.Gui.Pos.Center">Center()</h4>
  242. <div class="markdown level1 summary"><p>Returns a Pos object that can be used to center the views.</p>
  243. </div>
  244. <div class="markdown level1 conceptual"></div>
  245. <h5 class="decalaration">Declaration</h5>
  246. <div class="codewrapper">
  247. <pre><code class="lang-csharp hljs">public static Terminal.Gui.Pos Center ();</code></pre>
  248. </div>
  249. <h5 class="returns">Returns</h5>
  250. <table class="table table-bordered table-striped table-condensed">
  251. <thead>
  252. <tr>
  253. <th>Type</th>
  254. <th>Description</th>
  255. </tr>
  256. </thead>
  257. <tbody>
  258. <tr>
  259. <td><a class="xref" href="Terminal.Gui.Pos.html">Pos</a></td>
  260. <td><p>The center Pos.</p>
  261. </td>
  262. </tr>
  263. </tbody>
  264. </table>
  265. <a id="Terminal_Gui_Pos_Left_" data-uid="Terminal.Gui.Pos.Left*"></a>
  266. <h4 id="Terminal_Gui_Pos_Left_Terminal_Gui_View_" data-uid="Terminal.Gui.Pos.Left(Terminal.Gui.View)">Left(View)</h4>
  267. <div class="markdown level1 summary"><p>Returns a Pos object tracks the Left (X) position of the specified view.</p>
  268. </div>
  269. <div class="markdown level1 conceptual"></div>
  270. <h5 class="decalaration">Declaration</h5>
  271. <div class="codewrapper">
  272. <pre><code class="lang-csharp hljs">public static Terminal.Gui.Pos Left (Terminal.Gui.View view);</code></pre>
  273. </div>
  274. <h5 class="parameters">Parameters</h5>
  275. <table class="table table-bordered table-striped table-condensed">
  276. <thead>
  277. <tr>
  278. <th>Type</th>
  279. <th>Name</th>
  280. <th>Description</th>
  281. </tr>
  282. </thead>
  283. <tbody>
  284. <tr>
  285. <td><a class="xref" href="Terminal.Gui.View.html">View</a></td>
  286. <td><span class="parametername">view</span></td>
  287. <td><p>The view that will be tracked.</p>
  288. </td>
  289. </tr>
  290. </tbody>
  291. </table>
  292. <h5 class="returns">Returns</h5>
  293. <table class="table table-bordered table-striped table-condensed">
  294. <thead>
  295. <tr>
  296. <th>Type</th>
  297. <th>Description</th>
  298. </tr>
  299. </thead>
  300. <tbody>
  301. <tr>
  302. <td><a class="xref" href="Terminal.Gui.Pos.html">Pos</a></td>
  303. <td><p>The Position that depends on the other view.</p>
  304. </td>
  305. </tr>
  306. </tbody>
  307. </table>
  308. <a id="Terminal_Gui_Pos_Percent_" data-uid="Terminal.Gui.Pos.Percent*"></a>
  309. <h4 id="Terminal_Gui_Pos_Percent_System_Single_" data-uid="Terminal.Gui.Pos.Percent(System.Single)">Percent(Single)</h4>
  310. <div class="markdown level1 summary"><p>Creates a percentage Pos object</p>
  311. </div>
  312. <div class="markdown level1 conceptual"></div>
  313. <h5 class="decalaration">Declaration</h5>
  314. <div class="codewrapper">
  315. <pre><code class="lang-csharp hljs">public static Terminal.Gui.Pos Percent (float n);</code></pre>
  316. </div>
  317. <h5 class="parameters">Parameters</h5>
  318. <table class="table table-bordered table-striped table-condensed">
  319. <thead>
  320. <tr>
  321. <th>Type</th>
  322. <th>Name</th>
  323. <th>Description</th>
  324. </tr>
  325. </thead>
  326. <tbody>
  327. <tr>
  328. <td><span class="xref">System.Single</span></td>
  329. <td><span class="parametername">n</span></td>
  330. <td><p>A value between 0 and 100 representing the percentage.</p>
  331. </td>
  332. </tr>
  333. </tbody>
  334. </table>
  335. <h5 class="returns">Returns</h5>
  336. <table class="table table-bordered table-striped table-condensed">
  337. <thead>
  338. <tr>
  339. <th>Type</th>
  340. <th>Description</th>
  341. </tr>
  342. </thead>
  343. <tbody>
  344. <tr>
  345. <td><a class="xref" href="Terminal.Gui.Pos.html">Pos</a></td>
  346. <td><p>The percent Pos object.</p>
  347. </td>
  348. </tr>
  349. </tbody>
  350. </table>
  351. <a id="Terminal_Gui_Pos_Right_" data-uid="Terminal.Gui.Pos.Right*"></a>
  352. <h4 id="Terminal_Gui_Pos_Right_Terminal_Gui_View_" data-uid="Terminal.Gui.Pos.Right(Terminal.Gui.View)">Right(View)</h4>
  353. <div class="markdown level1 summary"><p>Returns a Pos object tracks the Right (X+Width) coordinate of the specified view.</p>
  354. </div>
  355. <div class="markdown level1 conceptual"></div>
  356. <h5 class="decalaration">Declaration</h5>
  357. <div class="codewrapper">
  358. <pre><code class="lang-csharp hljs">public static Terminal.Gui.Pos Right (Terminal.Gui.View view);</code></pre>
  359. </div>
  360. <h5 class="parameters">Parameters</h5>
  361. <table class="table table-bordered table-striped table-condensed">
  362. <thead>
  363. <tr>
  364. <th>Type</th>
  365. <th>Name</th>
  366. <th>Description</th>
  367. </tr>
  368. </thead>
  369. <tbody>
  370. <tr>
  371. <td><a class="xref" href="Terminal.Gui.View.html">View</a></td>
  372. <td><span class="parametername">view</span></td>
  373. <td><p>The view that will be tracked.</p>
  374. </td>
  375. </tr>
  376. </tbody>
  377. </table>
  378. <h5 class="returns">Returns</h5>
  379. <table class="table table-bordered table-striped table-condensed">
  380. <thead>
  381. <tr>
  382. <th>Type</th>
  383. <th>Description</th>
  384. </tr>
  385. </thead>
  386. <tbody>
  387. <tr>
  388. <td><a class="xref" href="Terminal.Gui.Pos.html">Pos</a></td>
  389. <td><p>The Position that depends on the other view.</p>
  390. </td>
  391. </tr>
  392. </tbody>
  393. </table>
  394. <a id="Terminal_Gui_Pos_Top_" data-uid="Terminal.Gui.Pos.Top*"></a>
  395. <h4 id="Terminal_Gui_Pos_Top_Terminal_Gui_View_" data-uid="Terminal.Gui.Pos.Top(Terminal.Gui.View)">Top(View)</h4>
  396. <div class="markdown level1 summary"><p>Returns a Pos object tracks the Top (Y) position of the specified view.</p>
  397. </div>
  398. <div class="markdown level1 conceptual"></div>
  399. <h5 class="decalaration">Declaration</h5>
  400. <div class="codewrapper">
  401. <pre><code class="lang-csharp hljs">public static Terminal.Gui.Pos Top (Terminal.Gui.View view);</code></pre>
  402. </div>
  403. <h5 class="parameters">Parameters</h5>
  404. <table class="table table-bordered table-striped table-condensed">
  405. <thead>
  406. <tr>
  407. <th>Type</th>
  408. <th>Name</th>
  409. <th>Description</th>
  410. </tr>
  411. </thead>
  412. <tbody>
  413. <tr>
  414. <td><a class="xref" href="Terminal.Gui.View.html">View</a></td>
  415. <td><span class="parametername">view</span></td>
  416. <td><p>The view that will be tracked.</p>
  417. </td>
  418. </tr>
  419. </tbody>
  420. </table>
  421. <h5 class="returns">Returns</h5>
  422. <table class="table table-bordered table-striped table-condensed">
  423. <thead>
  424. <tr>
  425. <th>Type</th>
  426. <th>Description</th>
  427. </tr>
  428. </thead>
  429. <tbody>
  430. <tr>
  431. <td><a class="xref" href="Terminal.Gui.Pos.html">Pos</a></td>
  432. <td><p>The Position that depends on the other view.</p>
  433. </td>
  434. </tr>
  435. </tbody>
  436. </table>
  437. <a id="Terminal_Gui_Pos_X_" data-uid="Terminal.Gui.Pos.X*"></a>
  438. <h4 id="Terminal_Gui_Pos_X_Terminal_Gui_View_" data-uid="Terminal.Gui.Pos.X(Terminal.Gui.View)">X(View)</h4>
  439. <div class="markdown level1 summary"><p>Returns a Pos object tracks the Left (X) position of the specified view.</p>
  440. </div>
  441. <div class="markdown level1 conceptual"></div>
  442. <h5 class="decalaration">Declaration</h5>
  443. <div class="codewrapper">
  444. <pre><code class="lang-csharp hljs">public static Terminal.Gui.Pos X (Terminal.Gui.View view);</code></pre>
  445. </div>
  446. <h5 class="parameters">Parameters</h5>
  447. <table class="table table-bordered table-striped table-condensed">
  448. <thead>
  449. <tr>
  450. <th>Type</th>
  451. <th>Name</th>
  452. <th>Description</th>
  453. </tr>
  454. </thead>
  455. <tbody>
  456. <tr>
  457. <td><a class="xref" href="Terminal.Gui.View.html">View</a></td>
  458. <td><span class="parametername">view</span></td>
  459. <td><p>The view that will be tracked.</p>
  460. </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><p>The Position that depends on the other view.</p>
  476. </td>
  477. </tr>
  478. </tbody>
  479. </table>
  480. <a id="Terminal_Gui_Pos_Y_" data-uid="Terminal.Gui.Pos.Y*"></a>
  481. <h4 id="Terminal_Gui_Pos_Y_Terminal_Gui_View_" data-uid="Terminal.Gui.Pos.Y(Terminal.Gui.View)">Y(View)</h4>
  482. <div class="markdown level1 summary"><p>Returns a Pos object tracks the Top (Y) position of the specified view.</p>
  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 Terminal.Gui.Pos Y (Terminal.Gui.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><p>The view that will be tracked.</p>
  503. </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><p>The Position that depends on the other view.</p>
  519. </td>
  520. </tr>
  521. </tbody>
  522. </table>
  523. <h3 id="operators">Operators
  524. </h3>
  525. <a id="Terminal_Gui_Pos_op_Addition_" data-uid="Terminal.Gui.Pos.op_Addition*"></a>
  526. <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)">op_Addition(Pos, Pos)</h4>
  527. <div class="markdown level1 summary"><p>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>.</p>
  528. </div>
  529. <div class="markdown level1 conceptual"></div>
  530. <h5 class="decalaration">Declaration</h5>
  531. <div class="codewrapper">
  532. <pre><code class="lang-csharp hljs">public static Terminal.Gui.Pos op_Addition (Terminal.Gui.Pos left, Terminal.Gui.Pos right);</code></pre>
  533. </div>
  534. <h5 class="parameters">Parameters</h5>
  535. <table class="table table-bordered table-striped table-condensed">
  536. <thead>
  537. <tr>
  538. <th>Type</th>
  539. <th>Name</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><span class="parametername">left</span></td>
  547. <td><p>The first <a class="xref" href="Terminal.Gui.Pos.html">Pos</a> to add.</p>
  548. </td>
  549. </tr>
  550. <tr>
  551. <td><a class="xref" href="Terminal.Gui.Pos.html">Pos</a></td>
  552. <td><span class="parametername">right</span></td>
  553. <td><p>The second <a class="xref" href="Terminal.Gui.Pos.html">Pos</a> to add.</p>
  554. </td>
  555. </tr>
  556. </tbody>
  557. </table>
  558. <h5 class="returns">Returns</h5>
  559. <table class="table table-bordered table-striped table-condensed">
  560. <thead>
  561. <tr>
  562. <th>Type</th>
  563. <th>Description</th>
  564. </tr>
  565. </thead>
  566. <tbody>
  567. <tr>
  568. <td><a class="xref" href="Terminal.Gui.Pos.html">Pos</a></td>
  569. <td><p>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>.</p>
  570. </td>
  571. </tr>
  572. </tbody>
  573. </table>
  574. <a id="Terminal_Gui_Pos_op_Implicit_" data-uid="Terminal.Gui.Pos.op_Implicit*"></a>
  575. <h4 id="Terminal_Gui_Pos_op_Implicit_System_Int32_to_Terminal_Gui_Pos_" data-uid="Terminal.Gui.Pos.op_Implicit(System.Int32 to Terminal.Gui.Pos)">op_Implicit(Int32 to Pos)</h4>
  576. <div class="markdown level1 summary"><p>Creates an Absolute Pos from the specified integer value.</p>
  577. </div>
  578. <div class="markdown level1 conceptual"></div>
  579. <h5 class="decalaration">Declaration</h5>
  580. <div class="codewrapper">
  581. <pre><code class="lang-csharp hljs">public static Terminal.Gui.Pos op_Implicit (int n);</code></pre>
  582. </div>
  583. <h5 class="parameters">Parameters</h5>
  584. <table class="table table-bordered table-striped table-condensed">
  585. <thead>
  586. <tr>
  587. <th>Type</th>
  588. <th>Name</th>
  589. <th>Description</th>
  590. </tr>
  591. </thead>
  592. <tbody>
  593. <tr>
  594. <td><span class="xref">System.Int32</span></td>
  595. <td><span class="parametername">n</span></td>
  596. <td><p>The value to convert to the pos.</p>
  597. </td>
  598. </tr>
  599. </tbody>
  600. </table>
  601. <h5 class="returns">Returns</h5>
  602. <table class="table table-bordered table-striped table-condensed">
  603. <thead>
  604. <tr>
  605. <th>Type</th>
  606. <th>Description</th>
  607. </tr>
  608. </thead>
  609. <tbody>
  610. <tr>
  611. <td><a class="xref" href="Terminal.Gui.Pos.html">Pos</a></td>
  612. <td><p>The Absolute Pos.</p>
  613. </td>
  614. </tr>
  615. </tbody>
  616. </table>
  617. <a id="Terminal_Gui_Pos_op_Subtraction_" data-uid="Terminal.Gui.Pos.op_Subtraction*"></a>
  618. <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)">op_Subtraction(Pos, Pos)</h4>
  619. <div class="markdown level1 summary"><p>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>.</p>
  620. </div>
  621. <div class="markdown level1 conceptual"></div>
  622. <h5 class="decalaration">Declaration</h5>
  623. <div class="codewrapper">
  624. <pre><code class="lang-csharp hljs">public static Terminal.Gui.Pos op_Subtraction (Terminal.Gui.Pos left, Terminal.Gui.Pos right);</code></pre>
  625. </div>
  626. <h5 class="parameters">Parameters</h5>
  627. <table class="table table-bordered table-striped table-condensed">
  628. <thead>
  629. <tr>
  630. <th>Type</th>
  631. <th>Name</th>
  632. <th>Description</th>
  633. </tr>
  634. </thead>
  635. <tbody>
  636. <tr>
  637. <td><a class="xref" href="Terminal.Gui.Pos.html">Pos</a></td>
  638. <td><span class="parametername">left</span></td>
  639. <td><p>The <a class="xref" href="Terminal.Gui.Pos.html">Pos</a> to subtract from (the minuend).</p>
  640. </td>
  641. </tr>
  642. <tr>
  643. <td><a class="xref" href="Terminal.Gui.Pos.html">Pos</a></td>
  644. <td><span class="parametername">right</span></td>
  645. <td><p>The <a class="xref" href="Terminal.Gui.Pos.html">Pos</a> to subtract (the subtrahend).</p>
  646. </td>
  647. </tr>
  648. </tbody>
  649. </table>
  650. <h5 class="returns">Returns</h5>
  651. <table class="table table-bordered table-striped table-condensed">
  652. <thead>
  653. <tr>
  654. <th>Type</th>
  655. <th>Description</th>
  656. </tr>
  657. </thead>
  658. <tbody>
  659. <tr>
  660. <td><a class="xref" href="Terminal.Gui.Pos.html">Pos</a></td>
  661. <td><p>The <a class="xref" href="Terminal.Gui.Pos.html">Pos</a> that is the <code>left</code> minus <code>right</code>.</p>
  662. </td>
  663. </tr>
  664. </tbody>
  665. </table>
  666. </article>
  667. </div>
  668. <div class="hidden-sm col-md-2" role="complementary">
  669. <div class="sideaffix">
  670. <div class="contribution">
  671. <ul class="nav">
  672. </ul>
  673. </div>
  674. <nav class="bs-docs-sidebar hidden-print hidden-xs hidden-sm affix" id="affix">
  675. <!-- <p><a class="back-to-top" href="#top">Back to top</a><p> -->
  676. </nav>
  677. </div>
  678. </div>
  679. </div>
  680. </div>
  681. <footer>
  682. <div class="grad-bottom"></div>
  683. <div class="footer">
  684. <div class="container">
  685. <span class="pull-right">
  686. <a href="#top">Back to top</a>
  687. </span>
  688. <span>Copyright © 2015-2017 Microsoft<br>Generated by <strong>DocFX</strong></span>
  689. </div>
  690. </div>
  691. </footer>
  692. </div>
  693. <script type="text/javascript" src="../../styles/docfx.vendor.js"></script>
  694. <script type="text/javascript" src="../../styles/docfx.js"></script>
  695. <script type="text/javascript" src="../../styles/main.js"></script>
  696. </body>
  697. </html>