Terminal.Gui.Point.html 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846
  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>Struct Point
  8. </title>
  9. <meta name="viewport" content="width=device-width">
  10. <meta name="title" content="Struct Point
  11. ">
  12. <meta name="generator" content="docfx 2.59.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="../../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">Struct 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="inheritedMembers">
  80. <h5>Inherited Members</h5>
  81. <div>
  82. <span class="xref">System.Object.Equals(System.Object, System.Object)</span>
  83. </div>
  84. <div>
  85. <span class="xref">System.Object.GetType()</span>
  86. </div>
  87. <div>
  88. <span class="xref">System.Object.ReferenceEquals(System.Object, System.Object)</span>
  89. </div>
  90. </div>
  91. <h6><strong>Namespace</strong>: <a class="xref" href="Terminal.Gui.html">Terminal.Gui</a></h6>
  92. <h6><strong>Assembly</strong>: Terminal.Gui.dll</h6>
  93. <h5 id="Terminal_Gui_Point_syntax">Syntax</h5>
  94. <div class="codewrapper">
  95. <pre><code class="lang-csharp hljs">public struct Point</code></pre>
  96. </div>
  97. <h3 id="constructors">Constructors
  98. </h3>
  99. <a id="Terminal_Gui_Point__ctor_" data-uid="Terminal.Gui.Point.#ctor*"></a>
  100. <h4 id="Terminal_Gui_Point__ctor_System_Int32_System_Int32_" data-uid="Terminal.Gui.Point.#ctor(System.Int32,System.Int32)">Point(Int32, Int32)</h4>
  101. <div class="markdown level1 summary">
  102. Point Constructor
  103. </div>
  104. <div class="markdown level1 conceptual"></div>
  105. <h5 class="decalaration">Declaration</h5>
  106. <div class="codewrapper">
  107. <pre><code class="lang-csharp hljs">public Point(int x, int y)</code></pre>
  108. </div>
  109. <h5 class="parameters">Parameters</h5>
  110. <table class="table table-bordered table-striped table-condensed">
  111. <thead>
  112. <tr>
  113. <th>Type</th>
  114. <th>Name</th>
  115. <th>Description</th>
  116. </tr>
  117. </thead>
  118. <tbody>
  119. <tr>
  120. <td><span class="xref">System.Int32</span></td>
  121. <td><span class="parametername">x</span></td>
  122. <td></td>
  123. </tr>
  124. <tr>
  125. <td><span class="xref">System.Int32</span></td>
  126. <td><span class="parametername">y</span></td>
  127. <td></td>
  128. </tr>
  129. </tbody>
  130. </table>
  131. <h5 id="Terminal_Gui_Point__ctor_System_Int32_System_Int32__remarks">Remarks</h5>
  132. <div class="markdown level1 remarks">
  133. Creates a Point from a specified x,y coordinate pair.
  134. </div>
  135. <a id="Terminal_Gui_Point__ctor_" data-uid="Terminal.Gui.Point.#ctor*"></a>
  136. <h4 id="Terminal_Gui_Point__ctor_Terminal_Gui_Size_" data-uid="Terminal.Gui.Point.#ctor(Terminal.Gui.Size)">Point(Size)</h4>
  137. <div class="markdown level1 summary">
  138. Point Constructor
  139. </div>
  140. <div class="markdown level1 conceptual"></div>
  141. <h5 class="decalaration">Declaration</h5>
  142. <div class="codewrapper">
  143. <pre><code class="lang-csharp hljs">public Point(Size sz)</code></pre>
  144. </div>
  145. <h5 class="parameters">Parameters</h5>
  146. <table class="table table-bordered table-striped table-condensed">
  147. <thead>
  148. <tr>
  149. <th>Type</th>
  150. <th>Name</th>
  151. <th>Description</th>
  152. </tr>
  153. </thead>
  154. <tbody>
  155. <tr>
  156. <td><a class="xref" href="Terminal.Gui.Size.html">Size</a></td>
  157. <td><span class="parametername">sz</span></td>
  158. <td></td>
  159. </tr>
  160. </tbody>
  161. </table>
  162. <h5 id="Terminal_Gui_Point__ctor_Terminal_Gui_Size__remarks">Remarks</h5>
  163. <div class="markdown level1 remarks">
  164. Creates a Point from a Size value.
  165. </div>
  166. <h3 id="fields">Fields
  167. </h3>
  168. <h4 id="Terminal_Gui_Point_Empty" data-uid="Terminal.Gui.Point.Empty">Empty</h4>
  169. <div class="markdown level1 summary">
  170. Empty Shared Field
  171. </div>
  172. <div class="markdown level1 conceptual"></div>
  173. <h5 class="decalaration">Declaration</h5>
  174. <div class="codewrapper">
  175. <pre><code class="lang-csharp hljs">public static readonly Point Empty</code></pre>
  176. </div>
  177. <h5 class="fieldValue">Field Value</h5>
  178. <table class="table table-bordered table-striped table-condensed">
  179. <thead>
  180. <tr>
  181. <th>Type</th>
  182. <th>Description</th>
  183. </tr>
  184. </thead>
  185. <tbody>
  186. <tr>
  187. <td><a class="xref" href="Terminal.Gui.Point.html">Point</a></td>
  188. <td></td>
  189. </tr>
  190. </tbody>
  191. </table>
  192. <h5 id="Terminal_Gui_Point_Empty_remarks">Remarks</h5>
  193. <div class="markdown level1 remarks">
  194. An uninitialized Point Structure.
  195. </div>
  196. <h4 id="Terminal_Gui_Point_X" data-uid="Terminal.Gui.Point.X">X</h4>
  197. <div class="markdown level1 summary">
  198. Gets or sets the x-coordinate of this Point.
  199. </div>
  200. <div class="markdown level1 conceptual"></div>
  201. <h5 class="decalaration">Declaration</h5>
  202. <div class="codewrapper">
  203. <pre><code class="lang-csharp hljs">public int X</code></pre>
  204. </div>
  205. <h5 class="fieldValue">Field Value</h5>
  206. <table class="table table-bordered table-striped table-condensed">
  207. <thead>
  208. <tr>
  209. <th>Type</th>
  210. <th>Description</th>
  211. </tr>
  212. </thead>
  213. <tbody>
  214. <tr>
  215. <td><span class="xref">System.Int32</span></td>
  216. <td></td>
  217. </tr>
  218. </tbody>
  219. </table>
  220. <h4 id="Terminal_Gui_Point_Y" data-uid="Terminal.Gui.Point.Y">Y</h4>
  221. <div class="markdown level1 summary">
  222. Gets or sets the y-coordinate of this Point.
  223. </div>
  224. <div class="markdown level1 conceptual"></div>
  225. <h5 class="decalaration">Declaration</h5>
  226. <div class="codewrapper">
  227. <pre><code class="lang-csharp hljs">public int Y</code></pre>
  228. </div>
  229. <h5 class="fieldValue">Field Value</h5>
  230. <table class="table table-bordered table-striped table-condensed">
  231. <thead>
  232. <tr>
  233. <th>Type</th>
  234. <th>Description</th>
  235. </tr>
  236. </thead>
  237. <tbody>
  238. <tr>
  239. <td><span class="xref">System.Int32</span></td>
  240. <td></td>
  241. </tr>
  242. </tbody>
  243. </table>
  244. <h3 id="properties">Properties
  245. </h3>
  246. <a id="Terminal_Gui_Point_IsEmpty_" data-uid="Terminal.Gui.Point.IsEmpty*"></a>
  247. <h4 id="Terminal_Gui_Point_IsEmpty" data-uid="Terminal.Gui.Point.IsEmpty">IsEmpty</h4>
  248. <div class="markdown level1 summary">
  249. IsEmpty Property
  250. </div>
  251. <div class="markdown level1 conceptual"></div>
  252. <h5 class="decalaration">Declaration</h5>
  253. <div class="codewrapper">
  254. <pre><code class="lang-csharp hljs">public readonly bool IsEmpty { get; }</code></pre>
  255. </div>
  256. <h5 class="propertyValue">Property Value</h5>
  257. <table class="table table-bordered table-striped table-condensed">
  258. <thead>
  259. <tr>
  260. <th>Type</th>
  261. <th>Description</th>
  262. </tr>
  263. </thead>
  264. <tbody>
  265. <tr>
  266. <td><span class="xref">System.Boolean</span></td>
  267. <td></td>
  268. </tr>
  269. </tbody>
  270. </table>
  271. <h5 id="Terminal_Gui_Point_IsEmpty_remarks">Remarks</h5>
  272. <div class="markdown level1 remarks">
  273. Indicates if both X and Y are zero.
  274. </div>
  275. <h3 id="methods">Methods
  276. </h3>
  277. <a id="Terminal_Gui_Point_Add_" data-uid="Terminal.Gui.Point.Add*"></a>
  278. <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>
  279. <div class="markdown level1 summary">
  280. Adds the specified Size to the specified Point.
  281. </div>
  282. <div class="markdown level1 conceptual"></div>
  283. <h5 class="decalaration">Declaration</h5>
  284. <div class="codewrapper">
  285. <pre><code class="lang-csharp hljs">public static Point Add(Point pt, Size sz)</code></pre>
  286. </div>
  287. <h5 class="parameters">Parameters</h5>
  288. <table class="table table-bordered table-striped table-condensed">
  289. <thead>
  290. <tr>
  291. <th>Type</th>
  292. <th>Name</th>
  293. <th>Description</th>
  294. </tr>
  295. </thead>
  296. <tbody>
  297. <tr>
  298. <td><a class="xref" href="Terminal.Gui.Point.html">Point</a></td>
  299. <td><span class="parametername">pt</span></td>
  300. <td>The Point to add.</td>
  301. </tr>
  302. <tr>
  303. <td><a class="xref" href="Terminal.Gui.Size.html">Size</a></td>
  304. <td><span class="parametername">sz</span></td>
  305. <td>The Size to add.</td>
  306. </tr>
  307. </tbody>
  308. </table>
  309. <h5 class="returns">Returns</h5>
  310. <table class="table table-bordered table-striped table-condensed">
  311. <thead>
  312. <tr>
  313. <th>Type</th>
  314. <th>Description</th>
  315. </tr>
  316. </thead>
  317. <tbody>
  318. <tr>
  319. <td><a class="xref" href="Terminal.Gui.Point.html">Point</a></td>
  320. <td>The Point that is the result of the addition operation.</td>
  321. </tr>
  322. </tbody>
  323. </table>
  324. <a id="Terminal_Gui_Point_Equals_" data-uid="Terminal.Gui.Point.Equals*"></a>
  325. <h4 id="Terminal_Gui_Point_Equals_System_Object_" data-uid="Terminal.Gui.Point.Equals(System.Object)">Equals(Object)</h4>
  326. <div class="markdown level1 summary">
  327. Equals Method
  328. </div>
  329. <div class="markdown level1 conceptual"></div>
  330. <h5 class="decalaration">Declaration</h5>
  331. <div class="codewrapper">
  332. <pre><code class="lang-csharp hljs">public override bool Equals(object obj)</code></pre>
  333. </div>
  334. <h5 class="parameters">Parameters</h5>
  335. <table class="table table-bordered table-striped table-condensed">
  336. <thead>
  337. <tr>
  338. <th>Type</th>
  339. <th>Name</th>
  340. <th>Description</th>
  341. </tr>
  342. </thead>
  343. <tbody>
  344. <tr>
  345. <td><span class="xref">System.Object</span></td>
  346. <td><span class="parametername">obj</span></td>
  347. <td></td>
  348. </tr>
  349. </tbody>
  350. </table>
  351. <h5 class="returns">Returns</h5>
  352. <table class="table table-bordered table-striped table-condensed">
  353. <thead>
  354. <tr>
  355. <th>Type</th>
  356. <th>Description</th>
  357. </tr>
  358. </thead>
  359. <tbody>
  360. <tr>
  361. <td><span class="xref">System.Boolean</span></td>
  362. <td></td>
  363. </tr>
  364. </tbody>
  365. </table>
  366. <h5 class="overrides">Overrides</h5>
  367. <div><span class="xref">System.ValueType.Equals(System.Object)</span></div>
  368. <h5 id="Terminal_Gui_Point_Equals_System_Object__remarks">Remarks</h5>
  369. <div class="markdown level1 remarks">
  370. Checks equivalence of this Point and another object.
  371. </div>
  372. <a id="Terminal_Gui_Point_GetHashCode_" data-uid="Terminal.Gui.Point.GetHashCode*"></a>
  373. <h4 id="Terminal_Gui_Point_GetHashCode" data-uid="Terminal.Gui.Point.GetHashCode">GetHashCode()</h4>
  374. <div class="markdown level1 summary">
  375. GetHashCode Method
  376. </div>
  377. <div class="markdown level1 conceptual"></div>
  378. <h5 class="decalaration">Declaration</h5>
  379. <div class="codewrapper">
  380. <pre><code class="lang-csharp hljs">public override int GetHashCode()</code></pre>
  381. </div>
  382. <h5 class="returns">Returns</h5>
  383. <table class="table table-bordered table-striped table-condensed">
  384. <thead>
  385. <tr>
  386. <th>Type</th>
  387. <th>Description</th>
  388. </tr>
  389. </thead>
  390. <tbody>
  391. <tr>
  392. <td><span class="xref">System.Int32</span></td>
  393. <td></td>
  394. </tr>
  395. </tbody>
  396. </table>
  397. <h5 class="overrides">Overrides</h5>
  398. <div><span class="xref">System.ValueType.GetHashCode()</span></div>
  399. <h5 id="Terminal_Gui_Point_GetHashCode_remarks">Remarks</h5>
  400. <div class="markdown level1 remarks">
  401. Calculates a hashing value.
  402. </div>
  403. <a id="Terminal_Gui_Point_Offset_" data-uid="Terminal.Gui.Point.Offset*"></a>
  404. <h4 id="Terminal_Gui_Point_Offset_System_Int32_System_Int32_" data-uid="Terminal.Gui.Point.Offset(System.Int32,System.Int32)">Offset(Int32, Int32)</h4>
  405. <div class="markdown level1 summary">
  406. Offset Method
  407. </div>
  408. <div class="markdown level1 conceptual"></div>
  409. <h5 class="decalaration">Declaration</h5>
  410. <div class="codewrapper">
  411. <pre><code class="lang-csharp hljs">public void Offset(int dx, int dy)</code></pre>
  412. </div>
  413. <h5 class="parameters">Parameters</h5>
  414. <table class="table table-bordered table-striped table-condensed">
  415. <thead>
  416. <tr>
  417. <th>Type</th>
  418. <th>Name</th>
  419. <th>Description</th>
  420. </tr>
  421. </thead>
  422. <tbody>
  423. <tr>
  424. <td><span class="xref">System.Int32</span></td>
  425. <td><span class="parametername">dx</span></td>
  426. <td></td>
  427. </tr>
  428. <tr>
  429. <td><span class="xref">System.Int32</span></td>
  430. <td><span class="parametername">dy</span></td>
  431. <td></td>
  432. </tr>
  433. </tbody>
  434. </table>
  435. <h5 id="Terminal_Gui_Point_Offset_System_Int32_System_Int32__remarks">Remarks</h5>
  436. <div class="markdown level1 remarks">
  437. Moves the Point a specified distance.
  438. </div>
  439. <a id="Terminal_Gui_Point_Offset_" data-uid="Terminal.Gui.Point.Offset*"></a>
  440. <h4 id="Terminal_Gui_Point_Offset_Terminal_Gui_Point_" data-uid="Terminal.Gui.Point.Offset(Terminal.Gui.Point)">Offset(Point)</h4>
  441. <div class="markdown level1 summary">
  442. Translates this Point by the specified Point.
  443. </div>
  444. <div class="markdown level1 conceptual"></div>
  445. <h5 class="decalaration">Declaration</h5>
  446. <div class="codewrapper">
  447. <pre><code class="lang-csharp hljs">public void Offset(Point p)</code></pre>
  448. </div>
  449. <h5 class="parameters">Parameters</h5>
  450. <table class="table table-bordered table-striped table-condensed">
  451. <thead>
  452. <tr>
  453. <th>Type</th>
  454. <th>Name</th>
  455. <th>Description</th>
  456. </tr>
  457. </thead>
  458. <tbody>
  459. <tr>
  460. <td><a class="xref" href="Terminal.Gui.Point.html">Point</a></td>
  461. <td><span class="parametername">p</span></td>
  462. <td>The Point used offset this Point.</td>
  463. </tr>
  464. </tbody>
  465. </table>
  466. <a id="Terminal_Gui_Point_Subtract_" data-uid="Terminal.Gui.Point.Subtract*"></a>
  467. <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>
  468. <div class="markdown level1 summary">
  469. Returns the result of subtracting specified Size from the specified Point.
  470. </div>
  471. <div class="markdown level1 conceptual"></div>
  472. <h5 class="decalaration">Declaration</h5>
  473. <div class="codewrapper">
  474. <pre><code class="lang-csharp hljs">public static Point Subtract(Point pt, Size sz)</code></pre>
  475. </div>
  476. <h5 class="parameters">Parameters</h5>
  477. <table class="table table-bordered table-striped table-condensed">
  478. <thead>
  479. <tr>
  480. <th>Type</th>
  481. <th>Name</th>
  482. <th>Description</th>
  483. </tr>
  484. </thead>
  485. <tbody>
  486. <tr>
  487. <td><a class="xref" href="Terminal.Gui.Point.html">Point</a></td>
  488. <td><span class="parametername">pt</span></td>
  489. <td>The Point to be subtracted from.</td>
  490. </tr>
  491. <tr>
  492. <td><a class="xref" href="Terminal.Gui.Size.html">Size</a></td>
  493. <td><span class="parametername">sz</span></td>
  494. <td>The Size to subtract from the Point.</td>
  495. </tr>
  496. </tbody>
  497. </table>
  498. <h5 class="returns">Returns</h5>
  499. <table class="table table-bordered table-striped table-condensed">
  500. <thead>
  501. <tr>
  502. <th>Type</th>
  503. <th>Description</th>
  504. </tr>
  505. </thead>
  506. <tbody>
  507. <tr>
  508. <td><a class="xref" href="Terminal.Gui.Point.html">Point</a></td>
  509. <td>The Point that is the result of the subtraction operation.</td>
  510. </tr>
  511. </tbody>
  512. </table>
  513. <a id="Terminal_Gui_Point_ToString_" data-uid="Terminal.Gui.Point.ToString*"></a>
  514. <h4 id="Terminal_Gui_Point_ToString" data-uid="Terminal.Gui.Point.ToString">ToString()</h4>
  515. <div class="markdown level1 summary">
  516. ToString Method
  517. </div>
  518. <div class="markdown level1 conceptual"></div>
  519. <h5 class="decalaration">Declaration</h5>
  520. <div class="codewrapper">
  521. <pre><code class="lang-csharp hljs">public override string ToString()</code></pre>
  522. </div>
  523. <h5 class="returns">Returns</h5>
  524. <table class="table table-bordered table-striped table-condensed">
  525. <thead>
  526. <tr>
  527. <th>Type</th>
  528. <th>Description</th>
  529. </tr>
  530. </thead>
  531. <tbody>
  532. <tr>
  533. <td><span class="xref">System.String</span></td>
  534. <td></td>
  535. </tr>
  536. </tbody>
  537. </table>
  538. <h5 class="overrides">Overrides</h5>
  539. <div><span class="xref">System.ValueType.ToString()</span></div>
  540. <h5 id="Terminal_Gui_Point_ToString_remarks">Remarks</h5>
  541. <div class="markdown level1 remarks">
  542. Formats the Point as a string in coordinate notation.
  543. </div>
  544. <h3 id="operators">Operators
  545. </h3>
  546. <a id="Terminal_Gui_Point_op_Addition_" data-uid="Terminal.Gui.Point.op_Addition*"></a>
  547. <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>
  548. <div class="markdown level1 summary">
  549. Addition Operator
  550. </div>
  551. <div class="markdown level1 conceptual"></div>
  552. <h5 class="decalaration">Declaration</h5>
  553. <div class="codewrapper">
  554. <pre><code class="lang-csharp hljs">public static Point operator +(Point pt, Size sz)</code></pre>
  555. </div>
  556. <h5 class="parameters">Parameters</h5>
  557. <table class="table table-bordered table-striped table-condensed">
  558. <thead>
  559. <tr>
  560. <th>Type</th>
  561. <th>Name</th>
  562. <th>Description</th>
  563. </tr>
  564. </thead>
  565. <tbody>
  566. <tr>
  567. <td><a class="xref" href="Terminal.Gui.Point.html">Point</a></td>
  568. <td><span class="parametername">pt</span></td>
  569. <td></td>
  570. </tr>
  571. <tr>
  572. <td><a class="xref" href="Terminal.Gui.Size.html">Size</a></td>
  573. <td><span class="parametername">sz</span></td>
  574. <td></td>
  575. </tr>
  576. </tbody>
  577. </table>
  578. <h5 class="returns">Returns</h5>
  579. <table class="table table-bordered table-striped table-condensed">
  580. <thead>
  581. <tr>
  582. <th>Type</th>
  583. <th>Description</th>
  584. </tr>
  585. </thead>
  586. <tbody>
  587. <tr>
  588. <td><a class="xref" href="Terminal.Gui.Point.html">Point</a></td>
  589. <td></td>
  590. </tr>
  591. </tbody>
  592. </table>
  593. <h5 id="Terminal_Gui_Point_op_Addition_Terminal_Gui_Point_Terminal_Gui_Size__remarks">Remarks</h5>
  594. <div class="markdown level1 remarks">
  595. Translates a Point using the Width and Height
  596. properties of the given <typeref>Size</typeref>.
  597. </div>
  598. <a id="Terminal_Gui_Point_op_Equality_" data-uid="Terminal.Gui.Point.op_Equality*"></a>
  599. <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>
  600. <div class="markdown level1 summary">
  601. Equality Operator
  602. </div>
  603. <div class="markdown level1 conceptual"></div>
  604. <h5 class="decalaration">Declaration</h5>
  605. <div class="codewrapper">
  606. <pre><code class="lang-csharp hljs">public static bool operator ==(Point left, Point right)</code></pre>
  607. </div>
  608. <h5 class="parameters">Parameters</h5>
  609. <table class="table table-bordered table-striped table-condensed">
  610. <thead>
  611. <tr>
  612. <th>Type</th>
  613. <th>Name</th>
  614. <th>Description</th>
  615. </tr>
  616. </thead>
  617. <tbody>
  618. <tr>
  619. <td><a class="xref" href="Terminal.Gui.Point.html">Point</a></td>
  620. <td><span class="parametername">left</span></td>
  621. <td></td>
  622. </tr>
  623. <tr>
  624. <td><a class="xref" href="Terminal.Gui.Point.html">Point</a></td>
  625. <td><span class="parametername">right</span></td>
  626. <td></td>
  627. </tr>
  628. </tbody>
  629. </table>
  630. <h5 class="returns">Returns</h5>
  631. <table class="table table-bordered table-striped table-condensed">
  632. <thead>
  633. <tr>
  634. <th>Type</th>
  635. <th>Description</th>
  636. </tr>
  637. </thead>
  638. <tbody>
  639. <tr>
  640. <td><span class="xref">System.Boolean</span></td>
  641. <td></td>
  642. </tr>
  643. </tbody>
  644. </table>
  645. <h5 id="Terminal_Gui_Point_op_Equality_Terminal_Gui_Point_Terminal_Gui_Point__remarks">Remarks</h5>
  646. <div class="markdown level1 remarks">
  647. Compares two Point objects. The return value is
  648. based on the equivalence of the X and Y properties
  649. of the two points.
  650. </div>
  651. <a id="Terminal_Gui_Point_op_Explicit_" data-uid="Terminal.Gui.Point.op_Explicit*"></a>
  652. <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>
  653. <div class="markdown level1 summary">
  654. Point to Size Conversion
  655. </div>
  656. <div class="markdown level1 conceptual"></div>
  657. <h5 class="decalaration">Declaration</h5>
  658. <div class="codewrapper">
  659. <pre><code class="lang-csharp hljs">public static explicit operator Size(Point p)</code></pre>
  660. </div>
  661. <h5 class="parameters">Parameters</h5>
  662. <table class="table table-bordered table-striped table-condensed">
  663. <thead>
  664. <tr>
  665. <th>Type</th>
  666. <th>Name</th>
  667. <th>Description</th>
  668. </tr>
  669. </thead>
  670. <tbody>
  671. <tr>
  672. <td><a class="xref" href="Terminal.Gui.Point.html">Point</a></td>
  673. <td><span class="parametername">p</span></td>
  674. <td></td>
  675. </tr>
  676. </tbody>
  677. </table>
  678. <h5 class="returns">Returns</h5>
  679. <table class="table table-bordered table-striped table-condensed">
  680. <thead>
  681. <tr>
  682. <th>Type</th>
  683. <th>Description</th>
  684. </tr>
  685. </thead>
  686. <tbody>
  687. <tr>
  688. <td><a class="xref" href="Terminal.Gui.Size.html">Size</a></td>
  689. <td></td>
  690. </tr>
  691. </tbody>
  692. </table>
  693. <h5 id="Terminal_Gui_Point_op_Explicit_Terminal_Gui_Point__Terminal_Gui_Size_remarks">Remarks</h5>
  694. <div class="markdown level1 remarks">
  695. Returns a Size based on the Coordinates of a given
  696. Point. Requires explicit cast.
  697. </div>
  698. <a id="Terminal_Gui_Point_op_Inequality_" data-uid="Terminal.Gui.Point.op_Inequality*"></a>
  699. <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>
  700. <div class="markdown level1 summary">
  701. Inequality Operator
  702. </div>
  703. <div class="markdown level1 conceptual"></div>
  704. <h5 class="decalaration">Declaration</h5>
  705. <div class="codewrapper">
  706. <pre><code class="lang-csharp hljs">public static bool operator !=(Point left, Point right)</code></pre>
  707. </div>
  708. <h5 class="parameters">Parameters</h5>
  709. <table class="table table-bordered table-striped table-condensed">
  710. <thead>
  711. <tr>
  712. <th>Type</th>
  713. <th>Name</th>
  714. <th>Description</th>
  715. </tr>
  716. </thead>
  717. <tbody>
  718. <tr>
  719. <td><a class="xref" href="Terminal.Gui.Point.html">Point</a></td>
  720. <td><span class="parametername">left</span></td>
  721. <td></td>
  722. </tr>
  723. <tr>
  724. <td><a class="xref" href="Terminal.Gui.Point.html">Point</a></td>
  725. <td><span class="parametername">right</span></td>
  726. <td></td>
  727. </tr>
  728. </tbody>
  729. </table>
  730. <h5 class="returns">Returns</h5>
  731. <table class="table table-bordered table-striped table-condensed">
  732. <thead>
  733. <tr>
  734. <th>Type</th>
  735. <th>Description</th>
  736. </tr>
  737. </thead>
  738. <tbody>
  739. <tr>
  740. <td><span class="xref">System.Boolean</span></td>
  741. <td></td>
  742. </tr>
  743. </tbody>
  744. </table>
  745. <h5 id="Terminal_Gui_Point_op_Inequality_Terminal_Gui_Point_Terminal_Gui_Point__remarks">Remarks</h5>
  746. <div class="markdown level1 remarks">
  747. Compares two Point objects. The return value is
  748. based on the equivalence of the X and Y properties
  749. of the two points.
  750. </div>
  751. <a id="Terminal_Gui_Point_op_Subtraction_" data-uid="Terminal.Gui.Point.op_Subtraction*"></a>
  752. <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>
  753. <div class="markdown level1 summary">
  754. Subtraction Operator
  755. </div>
  756. <div class="markdown level1 conceptual"></div>
  757. <h5 class="decalaration">Declaration</h5>
  758. <div class="codewrapper">
  759. <pre><code class="lang-csharp hljs">public static Point operator -(Point pt, Size sz)</code></pre>
  760. </div>
  761. <h5 class="parameters">Parameters</h5>
  762. <table class="table table-bordered table-striped table-condensed">
  763. <thead>
  764. <tr>
  765. <th>Type</th>
  766. <th>Name</th>
  767. <th>Description</th>
  768. </tr>
  769. </thead>
  770. <tbody>
  771. <tr>
  772. <td><a class="xref" href="Terminal.Gui.Point.html">Point</a></td>
  773. <td><span class="parametername">pt</span></td>
  774. <td></td>
  775. </tr>
  776. <tr>
  777. <td><a class="xref" href="Terminal.Gui.Size.html">Size</a></td>
  778. <td><span class="parametername">sz</span></td>
  779. <td></td>
  780. </tr>
  781. </tbody>
  782. </table>
  783. <h5 class="returns">Returns</h5>
  784. <table class="table table-bordered table-striped table-condensed">
  785. <thead>
  786. <tr>
  787. <th>Type</th>
  788. <th>Description</th>
  789. </tr>
  790. </thead>
  791. <tbody>
  792. <tr>
  793. <td><a class="xref" href="Terminal.Gui.Point.html">Point</a></td>
  794. <td></td>
  795. </tr>
  796. </tbody>
  797. </table>
  798. <h5 id="Terminal_Gui_Point_op_Subtraction_Terminal_Gui_Point_Terminal_Gui_Size__remarks">Remarks</h5>
  799. <div class="markdown level1 remarks">
  800. Translates a Point using the negation of the Width
  801. and Height properties of the given Size.
  802. </div>
  803. </article>
  804. </div>
  805. <div class="hidden-sm col-md-2" role="complementary">
  806. <div class="sideaffix">
  807. <nav class="bs-docs-sidebar hidden-print hidden-xs hidden-sm affix" id="affix">
  808. <h5>In This Article</h5>
  809. <div></div>
  810. </nav>
  811. </div>
  812. </div>
  813. </div>
  814. </div>
  815. <footer>
  816. <div class="grad-bottom"></div>
  817. <div class="footer">
  818. <div class="container">
  819. <span class="pull-right">
  820. <a href="#top">Back to top</a>
  821. </span>
  822. <span>Generated by <strong>DocFX</strong></span>
  823. </div>
  824. </div>
  825. </footer>
  826. </div>
  827. <script type="text/javascript" src="../../styles/docfx.vendor.js"></script>
  828. <script type="text/javascript" src="../../styles/docfx.js"></script>
  829. <script type="text/javascript" src="../../styles/main.js"></script>
  830. </body>
  831. </html>