Terminal.Gui.Pos.html 42 KB

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