Terminal.Gui.Point.html 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833
  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 Point
  8. </title>
  9. <meta name="viewport" content="width=device-width">
  10. <meta name="title" content="Class Point
  11. ">
  12. <meta name="generator" content="docfx 2.59.3.0">
  13. <link rel="shortcut icon" href="../../favicon.ico">
  14. <link rel="stylesheet" href="../../styles/docfx.vendor.css">
  15. <link rel="stylesheet" href="../../styles/docfx.css">
  16. <link rel="stylesheet" href="../../styles/main.css">
  17. <meta property="docfx:navrel" content="../../toc.html">
  18. <meta property="docfx:tocrel" content="toc.html">
  19. <meta property="docfx:rel" content="../../">
  20. </head>
  21. <body data-spy="scroll" data-target="#affix" data-offset="120">
  22. <div id="wrapper">
  23. <header>
  24. <nav id="autocollapse" class="navbar navbar-inverse ng-scope" role="navigation">
  25. <div class="container">
  26. <div class="navbar-header">
  27. <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar">
  28. <span class="sr-only">Toggle navigation</span>
  29. <span class="icon-bar"></span>
  30. <span class="icon-bar"></span>
  31. <span class="icon-bar"></span>
  32. </button>
  33. <a class="navbar-brand" href="../../index.html">
  34. <img id="logo" class="svg" src="../../images/logo48.png" alt="">
  35. </a>
  36. </div>
  37. <div class="collapse navbar-collapse" id="navbar">
  38. <form class="navbar-form navbar-right" role="search" id="search">
  39. <div class="form-group">
  40. <input type="text" class="form-control" id="search-query" placeholder="Search" autocomplete="off">
  41. </div>
  42. </form>
  43. </div>
  44. </div>
  45. </nav>
  46. <div class="subnav navbar navbar-default">
  47. <div class="container hide-when-search" id="breadcrumb">
  48. <ul class="breadcrumb">
  49. <li></li>
  50. </ul>
  51. </div>
  52. </div>
  53. </header>
  54. <div class="container body-content">
  55. <div id="search-results">
  56. <div class="search-list">Search Results for <span></span></div>
  57. <div class="sr-items">
  58. <p><i class="glyphicon glyphicon-refresh index-loading"></i></p>
  59. </div>
  60. <ul id="pagination" data-first="First" data-prev="Previous" data-next="Next" data-last="Last"></ul>
  61. </div>
  62. </div>
  63. <div role="main" class="container body-content hide-when-search">
  64. <div class="sidenav hide-when-search">
  65. <a class="btn toc-toggle collapse" data-toggle="collapse" href="#sidetoggle" aria-expanded="false" aria-controls="sidetoggle">Show / Hide Table of Contents</a>
  66. <div class="sidetoggle collapse" id="sidetoggle">
  67. <div id="sidetoc"></div>
  68. </div>
  69. </div>
  70. <div class="article row grid-right">
  71. <div class="col-md-10">
  72. <article class="content wrap" id="_content" data-uid="Terminal.Gui.Point">
  73. <h1 id="Terminal_Gui_Point" data-uid="Terminal.Gui.Point" class="text-break">Class Point
  74. </h1>
  75. <div class="markdown level0 summary">
  76. Represents an ordered pair of integer x- and y-coordinates that defines a point in a two-dimensional plane.
  77. </div>
  78. <div class="markdown level0 conceptual"></div>
  79. <div class="inheritance">
  80. <h5>Inheritance</h5>
  81. <div class="level0"><span class="xref">System.Object</span></div>
  82. <div class="level1"><span class="xref">Point</span></div>
  83. </div>
  84. <h6><strong>Namespace</strong>: <a class="xref" href="Terminal.Gui.html">Terminal.Gui</a></h6>
  85. <h6><strong>Assembly</strong>: Terminal.Gui.dll</h6>
  86. <h5 id="Terminal_Gui_Point_syntax">Syntax</h5>
  87. <div class="codewrapper">
  88. <pre><code class="lang-csharp hljs">public sealed class Point : ValueType</code></pre>
  89. </div>
  90. <h3 id="constructors">Constructors
  91. </h3>
  92. <a id="Terminal_Gui_Point__ctor_" data-uid="Terminal.Gui.Point.#ctor*"></a>
  93. <h4 id="Terminal_Gui_Point__ctor_System_Int32_System_Int32_" data-uid="Terminal.Gui.Point.#ctor(System.Int32,System.Int32)">Point(Int32, Int32)</h4>
  94. <div class="markdown level1 summary">
  95. Point Constructor
  96. </div>
  97. <div class="markdown level1 conceptual"></div>
  98. <h5 class="decalaration">Declaration</h5>
  99. <div class="codewrapper">
  100. <pre><code class="lang-csharp hljs">public Point(int x, int y)</code></pre>
  101. </div>
  102. <h5 class="parameters">Parameters</h5>
  103. <table class="table table-bordered table-striped table-condensed">
  104. <thead>
  105. <tr>
  106. <th>Type</th>
  107. <th>Name</th>
  108. <th>Description</th>
  109. </tr>
  110. </thead>
  111. <tbody>
  112. <tr>
  113. <td><span class="xref">System.Int32</span></td>
  114. <td><span class="parametername">x</span></td>
  115. <td></td>
  116. </tr>
  117. <tr>
  118. <td><span class="xref">System.Int32</span></td>
  119. <td><span class="parametername">y</span></td>
  120. <td></td>
  121. </tr>
  122. </tbody>
  123. </table>
  124. <h5 id="Terminal_Gui_Point__ctor_System_Int32_System_Int32__remarks">Remarks</h5>
  125. <div class="markdown level1 remarks">
  126. Creates a Point from a specified x,y coordinate pair.
  127. </div>
  128. <a id="Terminal_Gui_Point__ctor_" data-uid="Terminal.Gui.Point.#ctor*"></a>
  129. <h4 id="Terminal_Gui_Point__ctor_Terminal_Gui_Size_" data-uid="Terminal.Gui.Point.#ctor(Terminal.Gui.Size)">Point(Size)</h4>
  130. <div class="markdown level1 summary">
  131. Point Constructor
  132. </div>
  133. <div class="markdown level1 conceptual"></div>
  134. <h5 class="decalaration">Declaration</h5>
  135. <div class="codewrapper">
  136. <pre><code class="lang-csharp hljs">public Point(Size sz)</code></pre>
  137. </div>
  138. <h5 class="parameters">Parameters</h5>
  139. <table class="table table-bordered table-striped table-condensed">
  140. <thead>
  141. <tr>
  142. <th>Type</th>
  143. <th>Name</th>
  144. <th>Description</th>
  145. </tr>
  146. </thead>
  147. <tbody>
  148. <tr>
  149. <td><a class="xref" href="Terminal.Gui.Size.html">Size</a></td>
  150. <td><span class="parametername">sz</span></td>
  151. <td></td>
  152. </tr>
  153. </tbody>
  154. </table>
  155. <h5 id="Terminal_Gui_Point__ctor_Terminal_Gui_Size__remarks">Remarks</h5>
  156. <div class="markdown level1 remarks">
  157. Creates a Point from a Size value.
  158. </div>
  159. <h3 id="fields">Fields
  160. </h3>
  161. <h4 id="Terminal_Gui_Point_Empty" data-uid="Terminal.Gui.Point.Empty">Empty</h4>
  162. <div class="markdown level1 summary">
  163. Empty Shared Field
  164. </div>
  165. <div class="markdown level1 conceptual"></div>
  166. <h5 class="decalaration">Declaration</h5>
  167. <div class="codewrapper">
  168. <pre><code class="lang-csharp hljs">public static readonly Point Empty</code></pre>
  169. </div>
  170. <h5 class="fieldValue">Field Value</h5>
  171. <table class="table table-bordered table-striped table-condensed">
  172. <thead>
  173. <tr>
  174. <th>Type</th>
  175. <th>Description</th>
  176. </tr>
  177. </thead>
  178. <tbody>
  179. <tr>
  180. <td><a class="xref" href="Terminal.Gui.Point.html">Point</a></td>
  181. <td></td>
  182. </tr>
  183. </tbody>
  184. </table>
  185. <h5 id="Terminal_Gui_Point_Empty_remarks">Remarks</h5>
  186. <div class="markdown level1 remarks">
  187. An uninitialized Point Structure.
  188. </div>
  189. <h4 id="Terminal_Gui_Point_X" data-uid="Terminal.Gui.Point.X">X</h4>
  190. <div class="markdown level1 summary">
  191. Gets or sets the x-coordinate of this Point.
  192. </div>
  193. <div class="markdown level1 conceptual"></div>
  194. <h5 class="decalaration">Declaration</h5>
  195. <div class="codewrapper">
  196. <pre><code class="lang-csharp hljs">public int X</code></pre>
  197. </div>
  198. <h5 class="fieldValue">Field Value</h5>
  199. <table class="table table-bordered table-striped table-condensed">
  200. <thead>
  201. <tr>
  202. <th>Type</th>
  203. <th>Description</th>
  204. </tr>
  205. </thead>
  206. <tbody>
  207. <tr>
  208. <td><span class="xref">System.Int32</span></td>
  209. <td></td>
  210. </tr>
  211. </tbody>
  212. </table>
  213. <h4 id="Terminal_Gui_Point_Y" data-uid="Terminal.Gui.Point.Y">Y</h4>
  214. <div class="markdown level1 summary">
  215. Gets or sets the y-coordinate of this Point.
  216. </div>
  217. <div class="markdown level1 conceptual"></div>
  218. <h5 class="decalaration">Declaration</h5>
  219. <div class="codewrapper">
  220. <pre><code class="lang-csharp hljs">public int Y</code></pre>
  221. </div>
  222. <h5 class="fieldValue">Field Value</h5>
  223. <table class="table table-bordered table-striped table-condensed">
  224. <thead>
  225. <tr>
  226. <th>Type</th>
  227. <th>Description</th>
  228. </tr>
  229. </thead>
  230. <tbody>
  231. <tr>
  232. <td><span class="xref">System.Int32</span></td>
  233. <td></td>
  234. </tr>
  235. </tbody>
  236. </table>
  237. <h3 id="properties">Properties
  238. </h3>
  239. <a id="Terminal_Gui_Point_IsEmpty_" data-uid="Terminal.Gui.Point.IsEmpty*"></a>
  240. <h4 id="Terminal_Gui_Point_IsEmpty" data-uid="Terminal.Gui.Point.IsEmpty">IsEmpty</h4>
  241. <div class="markdown level1 summary">
  242. IsEmpty Property
  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 bool IsEmpty { get; }</code></pre>
  248. </div>
  249. <h5 class="propertyValue">Property Value</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><span class="xref">System.Boolean</span></td>
  260. <td></td>
  261. </tr>
  262. </tbody>
  263. </table>
  264. <h5 id="Terminal_Gui_Point_IsEmpty_remarks">Remarks</h5>
  265. <div class="markdown level1 remarks">
  266. Indicates if both X and Y are zero.
  267. </div>
  268. <h3 id="methods">Methods
  269. </h3>
  270. <a id="Terminal_Gui_Point_Add_" data-uid="Terminal.Gui.Point.Add*"></a>
  271. <h4 id="Terminal_Gui_Point_Add_Terminal_Gui_Point_Terminal_Gui_Size_" data-uid="Terminal.Gui.Point.Add(Terminal.Gui.Point,Terminal.Gui.Size)">Add(Point, Size)</h4>
  272. <div class="markdown level1 summary">
  273. Adds the specified Size to the specified Point.
  274. </div>
  275. <div class="markdown level1 conceptual"></div>
  276. <h5 class="decalaration">Declaration</h5>
  277. <div class="codewrapper">
  278. <pre><code class="lang-csharp hljs">public static Point Add(Point pt, Size sz)</code></pre>
  279. </div>
  280. <h5 class="parameters">Parameters</h5>
  281. <table class="table table-bordered table-striped table-condensed">
  282. <thead>
  283. <tr>
  284. <th>Type</th>
  285. <th>Name</th>
  286. <th>Description</th>
  287. </tr>
  288. </thead>
  289. <tbody>
  290. <tr>
  291. <td><a class="xref" href="Terminal.Gui.Point.html">Point</a></td>
  292. <td><span class="parametername">pt</span></td>
  293. <td>The Point to add.</td>
  294. </tr>
  295. <tr>
  296. <td><a class="xref" href="Terminal.Gui.Size.html">Size</a></td>
  297. <td><span class="parametername">sz</span></td>
  298. <td>The Size to add.</td>
  299. </tr>
  300. </tbody>
  301. </table>
  302. <h5 class="returns">Returns</h5>
  303. <table class="table table-bordered table-striped table-condensed">
  304. <thead>
  305. <tr>
  306. <th>Type</th>
  307. <th>Description</th>
  308. </tr>
  309. </thead>
  310. <tbody>
  311. <tr>
  312. <td><a class="xref" href="Terminal.Gui.Point.html">Point</a></td>
  313. <td>The Point that is the result of the addition operation.</td>
  314. </tr>
  315. </tbody>
  316. </table>
  317. <a id="Terminal_Gui_Point_Equals_" data-uid="Terminal.Gui.Point.Equals*"></a>
  318. <h4 id="Terminal_Gui_Point_Equals_System_Object_" data-uid="Terminal.Gui.Point.Equals(System.Object)">Equals(Object)</h4>
  319. <div class="markdown level1 summary">
  320. Equals Method
  321. </div>
  322. <div class="markdown level1 conceptual"></div>
  323. <h5 class="decalaration">Declaration</h5>
  324. <div class="codewrapper">
  325. <pre><code class="lang-csharp hljs">public override bool Equals(object obj)</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">obj</span></td>
  340. <td></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></td>
  356. </tr>
  357. </tbody>
  358. </table>
  359. <h5 id="Terminal_Gui_Point_Equals_System_Object__remarks">Remarks</h5>
  360. <div class="markdown level1 remarks">
  361. Checks equivalence of this Point and another object.
  362. </div>
  363. <a id="Terminal_Gui_Point_GetHashCode_" data-uid="Terminal.Gui.Point.GetHashCode*"></a>
  364. <h4 id="Terminal_Gui_Point_GetHashCode" data-uid="Terminal.Gui.Point.GetHashCode">GetHashCode()</h4>
  365. <div class="markdown level1 summary">
  366. GetHashCode Method
  367. </div>
  368. <div class="markdown level1 conceptual"></div>
  369. <h5 class="decalaration">Declaration</h5>
  370. <div class="codewrapper">
  371. <pre><code class="lang-csharp hljs">public override int GetHashCode()</code></pre>
  372. </div>
  373. <h5 class="returns">Returns</h5>
  374. <table class="table table-bordered table-striped table-condensed">
  375. <thead>
  376. <tr>
  377. <th>Type</th>
  378. <th>Description</th>
  379. </tr>
  380. </thead>
  381. <tbody>
  382. <tr>
  383. <td><span class="xref">System.Int32</span></td>
  384. <td></td>
  385. </tr>
  386. </tbody>
  387. </table>
  388. <h5 id="Terminal_Gui_Point_GetHashCode_remarks">Remarks</h5>
  389. <div class="markdown level1 remarks">
  390. Calculates a hashing value.
  391. </div>
  392. <a id="Terminal_Gui_Point_Offset_" data-uid="Terminal.Gui.Point.Offset*"></a>
  393. <h4 id="Terminal_Gui_Point_Offset_System_Int32_System_Int32_" data-uid="Terminal.Gui.Point.Offset(System.Int32,System.Int32)">Offset(Int32, Int32)</h4>
  394. <div class="markdown level1 summary">
  395. Offset Method
  396. </div>
  397. <div class="markdown level1 conceptual"></div>
  398. <h5 class="decalaration">Declaration</h5>
  399. <div class="codewrapper">
  400. <pre><code class="lang-csharp hljs">public void Offset(int dx, int dy)</code></pre>
  401. </div>
  402. <h5 class="parameters">Parameters</h5>
  403. <table class="table table-bordered table-striped table-condensed">
  404. <thead>
  405. <tr>
  406. <th>Type</th>
  407. <th>Name</th>
  408. <th>Description</th>
  409. </tr>
  410. </thead>
  411. <tbody>
  412. <tr>
  413. <td><span class="xref">System.Int32</span></td>
  414. <td><span class="parametername">dx</span></td>
  415. <td></td>
  416. </tr>
  417. <tr>
  418. <td><span class="xref">System.Int32</span></td>
  419. <td><span class="parametername">dy</span></td>
  420. <td></td>
  421. </tr>
  422. </tbody>
  423. </table>
  424. <h5 id="Terminal_Gui_Point_Offset_System_Int32_System_Int32__remarks">Remarks</h5>
  425. <div class="markdown level1 remarks">
  426. Moves the Point a specified distance.
  427. </div>
  428. <a id="Terminal_Gui_Point_Offset_" data-uid="Terminal.Gui.Point.Offset*"></a>
  429. <h4 id="Terminal_Gui_Point_Offset_Terminal_Gui_Point_" data-uid="Terminal.Gui.Point.Offset(Terminal.Gui.Point)">Offset(Point)</h4>
  430. <div class="markdown level1 summary">
  431. Translates this Point by the specified Point.
  432. </div>
  433. <div class="markdown level1 conceptual"></div>
  434. <h5 class="decalaration">Declaration</h5>
  435. <div class="codewrapper">
  436. <pre><code class="lang-csharp hljs">public void Offset(Point p)</code></pre>
  437. </div>
  438. <h5 class="parameters">Parameters</h5>
  439. <table class="table table-bordered table-striped table-condensed">
  440. <thead>
  441. <tr>
  442. <th>Type</th>
  443. <th>Name</th>
  444. <th>Description</th>
  445. </tr>
  446. </thead>
  447. <tbody>
  448. <tr>
  449. <td><a class="xref" href="Terminal.Gui.Point.html">Point</a></td>
  450. <td><span class="parametername">p</span></td>
  451. <td>The Point used offset this Point.</td>
  452. </tr>
  453. </tbody>
  454. </table>
  455. <a id="Terminal_Gui_Point_Subtract_" data-uid="Terminal.Gui.Point.Subtract*"></a>
  456. <h4 id="Terminal_Gui_Point_Subtract_Terminal_Gui_Point_Terminal_Gui_Size_" data-uid="Terminal.Gui.Point.Subtract(Terminal.Gui.Point,Terminal.Gui.Size)">Subtract(Point, Size)</h4>
  457. <div class="markdown level1 summary">
  458. Returns the result of subtracting specified Size from the specified Point.
  459. </div>
  460. <div class="markdown level1 conceptual"></div>
  461. <h5 class="decalaration">Declaration</h5>
  462. <div class="codewrapper">
  463. <pre><code class="lang-csharp hljs">public static Point Subtract(Point pt, Size sz)</code></pre>
  464. </div>
  465. <h5 class="parameters">Parameters</h5>
  466. <table class="table table-bordered table-striped table-condensed">
  467. <thead>
  468. <tr>
  469. <th>Type</th>
  470. <th>Name</th>
  471. <th>Description</th>
  472. </tr>
  473. </thead>
  474. <tbody>
  475. <tr>
  476. <td><a class="xref" href="Terminal.Gui.Point.html">Point</a></td>
  477. <td><span class="parametername">pt</span></td>
  478. <td>The Point to be subtracted from.</td>
  479. </tr>
  480. <tr>
  481. <td><a class="xref" href="Terminal.Gui.Size.html">Size</a></td>
  482. <td><span class="parametername">sz</span></td>
  483. <td>The Size to subtract from the Point.</td>
  484. </tr>
  485. </tbody>
  486. </table>
  487. <h5 class="returns">Returns</h5>
  488. <table class="table table-bordered table-striped table-condensed">
  489. <thead>
  490. <tr>
  491. <th>Type</th>
  492. <th>Description</th>
  493. </tr>
  494. </thead>
  495. <tbody>
  496. <tr>
  497. <td><a class="xref" href="Terminal.Gui.Point.html">Point</a></td>
  498. <td>The Point that is the result of the subtraction operation.</td>
  499. </tr>
  500. </tbody>
  501. </table>
  502. <a id="Terminal_Gui_Point_ToString_" data-uid="Terminal.Gui.Point.ToString*"></a>
  503. <h4 id="Terminal_Gui_Point_ToString" data-uid="Terminal.Gui.Point.ToString">ToString()</h4>
  504. <div class="markdown level1 summary">
  505. ToString Method
  506. </div>
  507. <div class="markdown level1 conceptual"></div>
  508. <h5 class="decalaration">Declaration</h5>
  509. <div class="codewrapper">
  510. <pre><code class="lang-csharp hljs">public override string ToString()</code></pre>
  511. </div>
  512. <h5 class="returns">Returns</h5>
  513. <table class="table table-bordered table-striped table-condensed">
  514. <thead>
  515. <tr>
  516. <th>Type</th>
  517. <th>Description</th>
  518. </tr>
  519. </thead>
  520. <tbody>
  521. <tr>
  522. <td><span class="xref">System.String</span></td>
  523. <td></td>
  524. </tr>
  525. </tbody>
  526. </table>
  527. <h5 id="Terminal_Gui_Point_ToString_remarks">Remarks</h5>
  528. <div class="markdown level1 remarks">
  529. Formats the Point as a string in coordinate notation.
  530. </div>
  531. <h3 id="operators">Operators
  532. </h3>
  533. <a id="Terminal_Gui_Point_op_Addition_" data-uid="Terminal.Gui.Point.op_Addition*"></a>
  534. <h4 id="Terminal_Gui_Point_op_Addition_Terminal_Gui_Point_Terminal_Gui_Size_" data-uid="Terminal.Gui.Point.op_Addition(Terminal.Gui.Point,Terminal.Gui.Size)">Addition(Point, Size)</h4>
  535. <div class="markdown level1 summary">
  536. Addition Operator
  537. </div>
  538. <div class="markdown level1 conceptual"></div>
  539. <h5 class="decalaration">Declaration</h5>
  540. <div class="codewrapper">
  541. <pre><code class="lang-csharp hljs">public static Point operator +(Point pt, Size sz)</code></pre>
  542. </div>
  543. <h5 class="parameters">Parameters</h5>
  544. <table class="table table-bordered table-striped table-condensed">
  545. <thead>
  546. <tr>
  547. <th>Type</th>
  548. <th>Name</th>
  549. <th>Description</th>
  550. </tr>
  551. </thead>
  552. <tbody>
  553. <tr>
  554. <td><a class="xref" href="Terminal.Gui.Point.html">Point</a></td>
  555. <td><span class="parametername">pt</span></td>
  556. <td></td>
  557. </tr>
  558. <tr>
  559. <td><a class="xref" href="Terminal.Gui.Size.html">Size</a></td>
  560. <td><span class="parametername">sz</span></td>
  561. <td></td>
  562. </tr>
  563. </tbody>
  564. </table>
  565. <h5 class="returns">Returns</h5>
  566. <table class="table table-bordered table-striped table-condensed">
  567. <thead>
  568. <tr>
  569. <th>Type</th>
  570. <th>Description</th>
  571. </tr>
  572. </thead>
  573. <tbody>
  574. <tr>
  575. <td><a class="xref" href="Terminal.Gui.Point.html">Point</a></td>
  576. <td></td>
  577. </tr>
  578. </tbody>
  579. </table>
  580. <h5 id="Terminal_Gui_Point_op_Addition_Terminal_Gui_Point_Terminal_Gui_Size__remarks">Remarks</h5>
  581. <div class="markdown level1 remarks">
  582. Translates a Point using the Width and Height
  583. properties of the given <typeref>Size</typeref>.
  584. </div>
  585. <a id="Terminal_Gui_Point_op_Equality_" data-uid="Terminal.Gui.Point.op_Equality*"></a>
  586. <h4 id="Terminal_Gui_Point_op_Equality_Terminal_Gui_Point_Terminal_Gui_Point_" data-uid="Terminal.Gui.Point.op_Equality(Terminal.Gui.Point,Terminal.Gui.Point)">Equality(Point, Point)</h4>
  587. <div class="markdown level1 summary">
  588. Equality Operator
  589. </div>
  590. <div class="markdown level1 conceptual"></div>
  591. <h5 class="decalaration">Declaration</h5>
  592. <div class="codewrapper">
  593. <pre><code class="lang-csharp hljs">public static bool operator ==(Point left, Point right)</code></pre>
  594. </div>
  595. <h5 class="parameters">Parameters</h5>
  596. <table class="table table-bordered table-striped table-condensed">
  597. <thead>
  598. <tr>
  599. <th>Type</th>
  600. <th>Name</th>
  601. <th>Description</th>
  602. </tr>
  603. </thead>
  604. <tbody>
  605. <tr>
  606. <td><a class="xref" href="Terminal.Gui.Point.html">Point</a></td>
  607. <td><span class="parametername">left</span></td>
  608. <td></td>
  609. </tr>
  610. <tr>
  611. <td><a class="xref" href="Terminal.Gui.Point.html">Point</a></td>
  612. <td><span class="parametername">right</span></td>
  613. <td></td>
  614. </tr>
  615. </tbody>
  616. </table>
  617. <h5 class="returns">Returns</h5>
  618. <table class="table table-bordered table-striped table-condensed">
  619. <thead>
  620. <tr>
  621. <th>Type</th>
  622. <th>Description</th>
  623. </tr>
  624. </thead>
  625. <tbody>
  626. <tr>
  627. <td><span class="xref">System.Boolean</span></td>
  628. <td></td>
  629. </tr>
  630. </tbody>
  631. </table>
  632. <h5 id="Terminal_Gui_Point_op_Equality_Terminal_Gui_Point_Terminal_Gui_Point__remarks">Remarks</h5>
  633. <div class="markdown level1 remarks">
  634. Compares two Point objects. The return value is
  635. based on the equivalence of the X and Y properties
  636. of the two points.
  637. </div>
  638. <a id="Terminal_Gui_Point_op_Explicit_" data-uid="Terminal.Gui.Point.op_Explicit*"></a>
  639. <h4 id="Terminal_Gui_Point_op_Explicit_Terminal_Gui_Point__Terminal_Gui_Size" data-uid="Terminal.Gui.Point.op_Explicit(Terminal.Gui.Point)~Terminal.Gui.Size">Explicit(Point to Size)</h4>
  640. <div class="markdown level1 summary">
  641. Point to Size Conversion
  642. </div>
  643. <div class="markdown level1 conceptual"></div>
  644. <h5 class="decalaration">Declaration</h5>
  645. <div class="codewrapper">
  646. <pre><code class="lang-csharp hljs">public static explicit operator Size(Point p)</code></pre>
  647. </div>
  648. <h5 class="parameters">Parameters</h5>
  649. <table class="table table-bordered table-striped table-condensed">
  650. <thead>
  651. <tr>
  652. <th>Type</th>
  653. <th>Name</th>
  654. <th>Description</th>
  655. </tr>
  656. </thead>
  657. <tbody>
  658. <tr>
  659. <td><a class="xref" href="Terminal.Gui.Point.html">Point</a></td>
  660. <td><span class="parametername">p</span></td>
  661. <td></td>
  662. </tr>
  663. </tbody>
  664. </table>
  665. <h5 class="returns">Returns</h5>
  666. <table class="table table-bordered table-striped table-condensed">
  667. <thead>
  668. <tr>
  669. <th>Type</th>
  670. <th>Description</th>
  671. </tr>
  672. </thead>
  673. <tbody>
  674. <tr>
  675. <td><a class="xref" href="Terminal.Gui.Size.html">Size</a></td>
  676. <td></td>
  677. </tr>
  678. </tbody>
  679. </table>
  680. <h5 id="Terminal_Gui_Point_op_Explicit_Terminal_Gui_Point__Terminal_Gui_Size_remarks">Remarks</h5>
  681. <div class="markdown level1 remarks">
  682. Returns a Size based on the Coordinates of a given
  683. Point. Requires explicit cast.
  684. </div>
  685. <a id="Terminal_Gui_Point_op_Inequality_" data-uid="Terminal.Gui.Point.op_Inequality*"></a>
  686. <h4 id="Terminal_Gui_Point_op_Inequality_Terminal_Gui_Point_Terminal_Gui_Point_" data-uid="Terminal.Gui.Point.op_Inequality(Terminal.Gui.Point,Terminal.Gui.Point)">Inequality(Point, Point)</h4>
  687. <div class="markdown level1 summary">
  688. Inequality Operator
  689. </div>
  690. <div class="markdown level1 conceptual"></div>
  691. <h5 class="decalaration">Declaration</h5>
  692. <div class="codewrapper">
  693. <pre><code class="lang-csharp hljs">public static bool operator !=(Point left, Point right)</code></pre>
  694. </div>
  695. <h5 class="parameters">Parameters</h5>
  696. <table class="table table-bordered table-striped table-condensed">
  697. <thead>
  698. <tr>
  699. <th>Type</th>
  700. <th>Name</th>
  701. <th>Description</th>
  702. </tr>
  703. </thead>
  704. <tbody>
  705. <tr>
  706. <td><a class="xref" href="Terminal.Gui.Point.html">Point</a></td>
  707. <td><span class="parametername">left</span></td>
  708. <td></td>
  709. </tr>
  710. <tr>
  711. <td><a class="xref" href="Terminal.Gui.Point.html">Point</a></td>
  712. <td><span class="parametername">right</span></td>
  713. <td></td>
  714. </tr>
  715. </tbody>
  716. </table>
  717. <h5 class="returns">Returns</h5>
  718. <table class="table table-bordered table-striped table-condensed">
  719. <thead>
  720. <tr>
  721. <th>Type</th>
  722. <th>Description</th>
  723. </tr>
  724. </thead>
  725. <tbody>
  726. <tr>
  727. <td><span class="xref">System.Boolean</span></td>
  728. <td></td>
  729. </tr>
  730. </tbody>
  731. </table>
  732. <h5 id="Terminal_Gui_Point_op_Inequality_Terminal_Gui_Point_Terminal_Gui_Point__remarks">Remarks</h5>
  733. <div class="markdown level1 remarks">
  734. Compares two Point objects. The return value is
  735. based on the equivalence of the X and Y properties
  736. of the two points.
  737. </div>
  738. <a id="Terminal_Gui_Point_op_Subtraction_" data-uid="Terminal.Gui.Point.op_Subtraction*"></a>
  739. <h4 id="Terminal_Gui_Point_op_Subtraction_Terminal_Gui_Point_Terminal_Gui_Size_" data-uid="Terminal.Gui.Point.op_Subtraction(Terminal.Gui.Point,Terminal.Gui.Size)">Subtraction(Point, Size)</h4>
  740. <div class="markdown level1 summary">
  741. Subtraction Operator
  742. </div>
  743. <div class="markdown level1 conceptual"></div>
  744. <h5 class="decalaration">Declaration</h5>
  745. <div class="codewrapper">
  746. <pre><code class="lang-csharp hljs">public static Point operator -(Point pt, Size sz)</code></pre>
  747. </div>
  748. <h5 class="parameters">Parameters</h5>
  749. <table class="table table-bordered table-striped table-condensed">
  750. <thead>
  751. <tr>
  752. <th>Type</th>
  753. <th>Name</th>
  754. <th>Description</th>
  755. </tr>
  756. </thead>
  757. <tbody>
  758. <tr>
  759. <td><a class="xref" href="Terminal.Gui.Point.html">Point</a></td>
  760. <td><span class="parametername">pt</span></td>
  761. <td></td>
  762. </tr>
  763. <tr>
  764. <td><a class="xref" href="Terminal.Gui.Size.html">Size</a></td>
  765. <td><span class="parametername">sz</span></td>
  766. <td></td>
  767. </tr>
  768. </tbody>
  769. </table>
  770. <h5 class="returns">Returns</h5>
  771. <table class="table table-bordered table-striped table-condensed">
  772. <thead>
  773. <tr>
  774. <th>Type</th>
  775. <th>Description</th>
  776. </tr>
  777. </thead>
  778. <tbody>
  779. <tr>
  780. <td><a class="xref" href="Terminal.Gui.Point.html">Point</a></td>
  781. <td></td>
  782. </tr>
  783. </tbody>
  784. </table>
  785. <h5 id="Terminal_Gui_Point_op_Subtraction_Terminal_Gui_Point_Terminal_Gui_Size__remarks">Remarks</h5>
  786. <div class="markdown level1 remarks">
  787. Translates a Point using the negation of the Width
  788. and Height properties of the given Size.
  789. </div>
  790. </article>
  791. </div>
  792. <div class="hidden-sm col-md-2" role="complementary">
  793. <div class="sideaffix">
  794. <nav class="bs-docs-sidebar hidden-print hidden-xs hidden-sm affix" id="affix">
  795. <h5>In This Article</h5>
  796. <div></div>
  797. </nav>
  798. </div>
  799. </div>
  800. </div>
  801. </div>
  802. <footer>
  803. <div class="grad-bottom"></div>
  804. <div class="footer">
  805. <div class="container">
  806. <span class="pull-right">
  807. <a href="#top">Back to top</a>
  808. </span>
  809. <span>Generated by <strong>DocFX</strong></span>
  810. </div>
  811. </div>
  812. </footer>
  813. </div>
  814. <script type="text/javascript" src="../../styles/docfx.vendor.js"></script>
  815. <script type="text/javascript" src="../../styles/docfx.js"></script>
  816. <script type="text/javascript" src="../../styles/main.js"></script>
  817. </body>
  818. </html>