Terminal.Gui.Size.html 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774
  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 Size
  8. </title>
  9. <meta name="viewport" content="width=device-width">
  10. <meta name="title" content="Class Size
  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.Size">
  73. <h1 id="Terminal_Gui_Size" data-uid="Terminal.Gui.Size" class="text-break">Class Size
  74. </h1>
  75. <div class="markdown level0 summary">
  76. Stores an ordered pair of integers, which specify a Height and Width.
  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">Size</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_Size_syntax">Syntax</h5>
  87. <div class="codewrapper">
  88. <pre><code class="lang-csharp hljs">public sealed class Size : ValueType</code></pre>
  89. </div>
  90. <h3 id="constructors">Constructors
  91. </h3>
  92. <a id="Terminal_Gui_Size__ctor_" data-uid="Terminal.Gui.Size.#ctor*"></a>
  93. <h4 id="Terminal_Gui_Size__ctor_System_Int32_System_Int32_" data-uid="Terminal.Gui.Size.#ctor(System.Int32,System.Int32)">Size(Int32, Int32)</h4>
  94. <div class="markdown level1 summary">
  95. Size 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 Size(int width, int height)</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">width</span></td>
  115. <td></td>
  116. </tr>
  117. <tr>
  118. <td><span class="xref">System.Int32</span></td>
  119. <td><span class="parametername">height</span></td>
  120. <td></td>
  121. </tr>
  122. </tbody>
  123. </table>
  124. <h5 id="Terminal_Gui_Size__ctor_System_Int32_System_Int32__remarks">Remarks</h5>
  125. <div class="markdown level1 remarks">
  126. Creates a Size from specified dimensions.
  127. </div>
  128. <a id="Terminal_Gui_Size__ctor_" data-uid="Terminal.Gui.Size.#ctor*"></a>
  129. <h4 id="Terminal_Gui_Size__ctor_Terminal_Gui_Point_" data-uid="Terminal.Gui.Size.#ctor(Terminal.Gui.Point)">Size(Point)</h4>
  130. <div class="markdown level1 summary">
  131. Size 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 Size(Point pt)</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.Point.html">Point</a></td>
  150. <td><span class="parametername">pt</span></td>
  151. <td></td>
  152. </tr>
  153. </tbody>
  154. </table>
  155. <h5 id="Terminal_Gui_Size__ctor_Terminal_Gui_Point__remarks">Remarks</h5>
  156. <div class="markdown level1 remarks">
  157. Creates a Size from a Point value.
  158. </div>
  159. <h3 id="fields">Fields
  160. </h3>
  161. <h4 id="Terminal_Gui_Size_Empty" data-uid="Terminal.Gui.Size.Empty">Empty</h4>
  162. <div class="markdown level1 summary">
  163. Gets a Size structure that has a Height and Width value of 0.
  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 Size 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.Size.html">Size</a></td>
  181. <td></td>
  182. </tr>
  183. </tbody>
  184. </table>
  185. <h3 id="properties">Properties
  186. </h3>
  187. <a id="Terminal_Gui_Size_Height_" data-uid="Terminal.Gui.Size.Height*"></a>
  188. <h4 id="Terminal_Gui_Size_Height" data-uid="Terminal.Gui.Size.Height">Height</h4>
  189. <div class="markdown level1 summary">
  190. Height Property
  191. </div>
  192. <div class="markdown level1 conceptual"></div>
  193. <h5 class="decalaration">Declaration</h5>
  194. <div class="codewrapper">
  195. <pre><code class="lang-csharp hljs">public int Height { get; set; }</code></pre>
  196. </div>
  197. <h5 class="propertyValue">Property Value</h5>
  198. <table class="table table-bordered table-striped table-condensed">
  199. <thead>
  200. <tr>
  201. <th>Type</th>
  202. <th>Description</th>
  203. </tr>
  204. </thead>
  205. <tbody>
  206. <tr>
  207. <td><span class="xref">System.Int32</span></td>
  208. <td></td>
  209. </tr>
  210. </tbody>
  211. </table>
  212. <h5 id="Terminal_Gui_Size_Height_remarks">Remarks</h5>
  213. <div class="markdown level1 remarks">
  214. The Height coordinate of the Size.
  215. </div>
  216. <a id="Terminal_Gui_Size_IsEmpty_" data-uid="Terminal.Gui.Size.IsEmpty*"></a>
  217. <h4 id="Terminal_Gui_Size_IsEmpty" data-uid="Terminal.Gui.Size.IsEmpty">IsEmpty</h4>
  218. <div class="markdown level1 summary">
  219. IsEmpty Property
  220. </div>
  221. <div class="markdown level1 conceptual"></div>
  222. <h5 class="decalaration">Declaration</h5>
  223. <div class="codewrapper">
  224. <pre><code class="lang-csharp hljs">public bool IsEmpty { get; }</code></pre>
  225. </div>
  226. <h5 class="propertyValue">Property Value</h5>
  227. <table class="table table-bordered table-striped table-condensed">
  228. <thead>
  229. <tr>
  230. <th>Type</th>
  231. <th>Description</th>
  232. </tr>
  233. </thead>
  234. <tbody>
  235. <tr>
  236. <td><span class="xref">System.Boolean</span></td>
  237. <td></td>
  238. </tr>
  239. </tbody>
  240. </table>
  241. <h5 id="Terminal_Gui_Size_IsEmpty_remarks">Remarks</h5>
  242. <div class="markdown level1 remarks">
  243. Indicates if both Width and Height are zero.
  244. </div>
  245. <a id="Terminal_Gui_Size_Width_" data-uid="Terminal.Gui.Size.Width*"></a>
  246. <h4 id="Terminal_Gui_Size_Width" data-uid="Terminal.Gui.Size.Width">Width</h4>
  247. <div class="markdown level1 summary">
  248. Width Property
  249. </div>
  250. <div class="markdown level1 conceptual"></div>
  251. <h5 class="decalaration">Declaration</h5>
  252. <div class="codewrapper">
  253. <pre><code class="lang-csharp hljs">public int Width { get; set; }</code></pre>
  254. </div>
  255. <h5 class="propertyValue">Property Value</h5>
  256. <table class="table table-bordered table-striped table-condensed">
  257. <thead>
  258. <tr>
  259. <th>Type</th>
  260. <th>Description</th>
  261. </tr>
  262. </thead>
  263. <tbody>
  264. <tr>
  265. <td><span class="xref">System.Int32</span></td>
  266. <td></td>
  267. </tr>
  268. </tbody>
  269. </table>
  270. <h5 id="Terminal_Gui_Size_Width_remarks">Remarks</h5>
  271. <div class="markdown level1 remarks">
  272. The Width coordinate of the Size.
  273. </div>
  274. <h3 id="methods">Methods
  275. </h3>
  276. <a id="Terminal_Gui_Size_Add_" data-uid="Terminal.Gui.Size.Add*"></a>
  277. <h4 id="Terminal_Gui_Size_Add_Terminal_Gui_Size_Terminal_Gui_Size_" data-uid="Terminal.Gui.Size.Add(Terminal.Gui.Size,Terminal.Gui.Size)">Add(Size, Size)</h4>
  278. <div class="markdown level1 summary">
  279. Adds the width and height of one Size structure to the width and height of another Size structure.
  280. </div>
  281. <div class="markdown level1 conceptual"></div>
  282. <h5 class="decalaration">Declaration</h5>
  283. <div class="codewrapper">
  284. <pre><code class="lang-csharp hljs">public static Size Add(Size sz1, Size sz2)</code></pre>
  285. </div>
  286. <h5 class="parameters">Parameters</h5>
  287. <table class="table table-bordered table-striped table-condensed">
  288. <thead>
  289. <tr>
  290. <th>Type</th>
  291. <th>Name</th>
  292. <th>Description</th>
  293. </tr>
  294. </thead>
  295. <tbody>
  296. <tr>
  297. <td><a class="xref" href="Terminal.Gui.Size.html">Size</a></td>
  298. <td><span class="parametername">sz1</span></td>
  299. <td>The first Size structure to add.</td>
  300. </tr>
  301. <tr>
  302. <td><a class="xref" href="Terminal.Gui.Size.html">Size</a></td>
  303. <td><span class="parametername">sz2</span></td>
  304. <td>The second Size structure to add.</td>
  305. </tr>
  306. </tbody>
  307. </table>
  308. <h5 class="returns">Returns</h5>
  309. <table class="table table-bordered table-striped table-condensed">
  310. <thead>
  311. <tr>
  312. <th>Type</th>
  313. <th>Description</th>
  314. </tr>
  315. </thead>
  316. <tbody>
  317. <tr>
  318. <td><a class="xref" href="Terminal.Gui.Size.html">Size</a></td>
  319. <td>The add.</td>
  320. </tr>
  321. </tbody>
  322. </table>
  323. <a id="Terminal_Gui_Size_Equals_" data-uid="Terminal.Gui.Size.Equals*"></a>
  324. <h4 id="Terminal_Gui_Size_Equals_System_Object_" data-uid="Terminal.Gui.Size.Equals(System.Object)">Equals(Object)</h4>
  325. <div class="markdown level1 summary">
  326. Equals Method
  327. </div>
  328. <div class="markdown level1 conceptual"></div>
  329. <h5 class="decalaration">Declaration</h5>
  330. <div class="codewrapper">
  331. <pre><code class="lang-csharp hljs">public override bool Equals(object obj)</code></pre>
  332. </div>
  333. <h5 class="parameters">Parameters</h5>
  334. <table class="table table-bordered table-striped table-condensed">
  335. <thead>
  336. <tr>
  337. <th>Type</th>
  338. <th>Name</th>
  339. <th>Description</th>
  340. </tr>
  341. </thead>
  342. <tbody>
  343. <tr>
  344. <td><span class="xref">System.Object</span></td>
  345. <td><span class="parametername">obj</span></td>
  346. <td></td>
  347. </tr>
  348. </tbody>
  349. </table>
  350. <h5 class="returns">Returns</h5>
  351. <table class="table table-bordered table-striped table-condensed">
  352. <thead>
  353. <tr>
  354. <th>Type</th>
  355. <th>Description</th>
  356. </tr>
  357. </thead>
  358. <tbody>
  359. <tr>
  360. <td><span class="xref">System.Boolean</span></td>
  361. <td></td>
  362. </tr>
  363. </tbody>
  364. </table>
  365. <h5 id="Terminal_Gui_Size_Equals_System_Object__remarks">Remarks</h5>
  366. <div class="markdown level1 remarks">
  367. Checks equivalence of this Size and another object.
  368. </div>
  369. <a id="Terminal_Gui_Size_GetHashCode_" data-uid="Terminal.Gui.Size.GetHashCode*"></a>
  370. <h4 id="Terminal_Gui_Size_GetHashCode" data-uid="Terminal.Gui.Size.GetHashCode">GetHashCode()</h4>
  371. <div class="markdown level1 summary">
  372. GetHashCode Method
  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 override int GetHashCode()</code></pre>
  378. </div>
  379. <h5 class="returns">Returns</h5>
  380. <table class="table table-bordered table-striped table-condensed">
  381. <thead>
  382. <tr>
  383. <th>Type</th>
  384. <th>Description</th>
  385. </tr>
  386. </thead>
  387. <tbody>
  388. <tr>
  389. <td><span class="xref">System.Int32</span></td>
  390. <td></td>
  391. </tr>
  392. </tbody>
  393. </table>
  394. <h5 id="Terminal_Gui_Size_GetHashCode_remarks">Remarks</h5>
  395. <div class="markdown level1 remarks">
  396. Calculates a hashing value.
  397. </div>
  398. <a id="Terminal_Gui_Size_Subtract_" data-uid="Terminal.Gui.Size.Subtract*"></a>
  399. <h4 id="Terminal_Gui_Size_Subtract_Terminal_Gui_Size_Terminal_Gui_Size_" data-uid="Terminal.Gui.Size.Subtract(Terminal.Gui.Size,Terminal.Gui.Size)">Subtract(Size, Size)</h4>
  400. <div class="markdown level1 summary">
  401. Subtracts the width and height of one Size structure to the width and height of another Size structure.
  402. </div>
  403. <div class="markdown level1 conceptual"></div>
  404. <h5 class="decalaration">Declaration</h5>
  405. <div class="codewrapper">
  406. <pre><code class="lang-csharp hljs">public static Size Subtract(Size sz1, Size sz2)</code></pre>
  407. </div>
  408. <h5 class="parameters">Parameters</h5>
  409. <table class="table table-bordered table-striped table-condensed">
  410. <thead>
  411. <tr>
  412. <th>Type</th>
  413. <th>Name</th>
  414. <th>Description</th>
  415. </tr>
  416. </thead>
  417. <tbody>
  418. <tr>
  419. <td><a class="xref" href="Terminal.Gui.Size.html">Size</a></td>
  420. <td><span class="parametername">sz1</span></td>
  421. <td>The first Size structure to subtract.</td>
  422. </tr>
  423. <tr>
  424. <td><a class="xref" href="Terminal.Gui.Size.html">Size</a></td>
  425. <td><span class="parametername">sz2</span></td>
  426. <td>The second Size structure to subtract.</td>
  427. </tr>
  428. </tbody>
  429. </table>
  430. <h5 class="returns">Returns</h5>
  431. <table class="table table-bordered table-striped table-condensed">
  432. <thead>
  433. <tr>
  434. <th>Type</th>
  435. <th>Description</th>
  436. </tr>
  437. </thead>
  438. <tbody>
  439. <tr>
  440. <td><a class="xref" href="Terminal.Gui.Size.html">Size</a></td>
  441. <td>The subtract.</td>
  442. </tr>
  443. </tbody>
  444. </table>
  445. <a id="Terminal_Gui_Size_ToString_" data-uid="Terminal.Gui.Size.ToString*"></a>
  446. <h4 id="Terminal_Gui_Size_ToString" data-uid="Terminal.Gui.Size.ToString">ToString()</h4>
  447. <div class="markdown level1 summary">
  448. ToString Method
  449. </div>
  450. <div class="markdown level1 conceptual"></div>
  451. <h5 class="decalaration">Declaration</h5>
  452. <div class="codewrapper">
  453. <pre><code class="lang-csharp hljs">public override string ToString()</code></pre>
  454. </div>
  455. <h5 class="returns">Returns</h5>
  456. <table class="table table-bordered table-striped table-condensed">
  457. <thead>
  458. <tr>
  459. <th>Type</th>
  460. <th>Description</th>
  461. </tr>
  462. </thead>
  463. <tbody>
  464. <tr>
  465. <td><span class="xref">System.String</span></td>
  466. <td></td>
  467. </tr>
  468. </tbody>
  469. </table>
  470. <h5 id="Terminal_Gui_Size_ToString_remarks">Remarks</h5>
  471. <div class="markdown level1 remarks">
  472. Formats the Size as a string in coordinate notation.
  473. </div>
  474. <h3 id="operators">Operators
  475. </h3>
  476. <a id="Terminal_Gui_Size_op_Addition_" data-uid="Terminal.Gui.Size.op_Addition*"></a>
  477. <h4 id="Terminal_Gui_Size_op_Addition_Terminal_Gui_Size_Terminal_Gui_Size_" data-uid="Terminal.Gui.Size.op_Addition(Terminal.Gui.Size,Terminal.Gui.Size)">Addition(Size, Size)</h4>
  478. <div class="markdown level1 summary">
  479. Addition Operator
  480. </div>
  481. <div class="markdown level1 conceptual"></div>
  482. <h5 class="decalaration">Declaration</h5>
  483. <div class="codewrapper">
  484. <pre><code class="lang-csharp hljs">public static Size operator +(Size sz1, Size sz2)</code></pre>
  485. </div>
  486. <h5 class="parameters">Parameters</h5>
  487. <table class="table table-bordered table-striped table-condensed">
  488. <thead>
  489. <tr>
  490. <th>Type</th>
  491. <th>Name</th>
  492. <th>Description</th>
  493. </tr>
  494. </thead>
  495. <tbody>
  496. <tr>
  497. <td><a class="xref" href="Terminal.Gui.Size.html">Size</a></td>
  498. <td><span class="parametername">sz1</span></td>
  499. <td></td>
  500. </tr>
  501. <tr>
  502. <td><a class="xref" href="Terminal.Gui.Size.html">Size</a></td>
  503. <td><span class="parametername">sz2</span></td>
  504. <td></td>
  505. </tr>
  506. </tbody>
  507. </table>
  508. <h5 class="returns">Returns</h5>
  509. <table class="table table-bordered table-striped table-condensed">
  510. <thead>
  511. <tr>
  512. <th>Type</th>
  513. <th>Description</th>
  514. </tr>
  515. </thead>
  516. <tbody>
  517. <tr>
  518. <td><a class="xref" href="Terminal.Gui.Size.html">Size</a></td>
  519. <td></td>
  520. </tr>
  521. </tbody>
  522. </table>
  523. <h5 id="Terminal_Gui_Size_op_Addition_Terminal_Gui_Size_Terminal_Gui_Size__remarks">Remarks</h5>
  524. <div class="markdown level1 remarks">
  525. Addition of two Size structures.
  526. </div>
  527. <a id="Terminal_Gui_Size_op_Equality_" data-uid="Terminal.Gui.Size.op_Equality*"></a>
  528. <h4 id="Terminal_Gui_Size_op_Equality_Terminal_Gui_Size_Terminal_Gui_Size_" data-uid="Terminal.Gui.Size.op_Equality(Terminal.Gui.Size,Terminal.Gui.Size)">Equality(Size, Size)</h4>
  529. <div class="markdown level1 summary">
  530. Equality Operator
  531. </div>
  532. <div class="markdown level1 conceptual"></div>
  533. <h5 class="decalaration">Declaration</h5>
  534. <div class="codewrapper">
  535. <pre><code class="lang-csharp hljs">public static bool operator ==(Size sz1, Size sz2)</code></pre>
  536. </div>
  537. <h5 class="parameters">Parameters</h5>
  538. <table class="table table-bordered table-striped table-condensed">
  539. <thead>
  540. <tr>
  541. <th>Type</th>
  542. <th>Name</th>
  543. <th>Description</th>
  544. </tr>
  545. </thead>
  546. <tbody>
  547. <tr>
  548. <td><a class="xref" href="Terminal.Gui.Size.html">Size</a></td>
  549. <td><span class="parametername">sz1</span></td>
  550. <td></td>
  551. </tr>
  552. <tr>
  553. <td><a class="xref" href="Terminal.Gui.Size.html">Size</a></td>
  554. <td><span class="parametername">sz2</span></td>
  555. <td></td>
  556. </tr>
  557. </tbody>
  558. </table>
  559. <h5 class="returns">Returns</h5>
  560. <table class="table table-bordered table-striped table-condensed">
  561. <thead>
  562. <tr>
  563. <th>Type</th>
  564. <th>Description</th>
  565. </tr>
  566. </thead>
  567. <tbody>
  568. <tr>
  569. <td><span class="xref">System.Boolean</span></td>
  570. <td></td>
  571. </tr>
  572. </tbody>
  573. </table>
  574. <h5 id="Terminal_Gui_Size_op_Equality_Terminal_Gui_Size_Terminal_Gui_Size__remarks">Remarks</h5>
  575. <div class="markdown level1 remarks">
  576. Compares two Size objects. The return value is
  577. based on the equivalence of the Width and Height
  578. properties of the two Sizes.
  579. </div>
  580. <a id="Terminal_Gui_Size_op_Explicit_" data-uid="Terminal.Gui.Size.op_Explicit*"></a>
  581. <h4 id="Terminal_Gui_Size_op_Explicit_Terminal_Gui_Size__Terminal_Gui_Point" data-uid="Terminal.Gui.Size.op_Explicit(Terminal.Gui.Size)~Terminal.Gui.Point">Explicit(Size to Point)</h4>
  582. <div class="markdown level1 summary">
  583. Size to Point Conversion
  584. </div>
  585. <div class="markdown level1 conceptual"></div>
  586. <h5 class="decalaration">Declaration</h5>
  587. <div class="codewrapper">
  588. <pre><code class="lang-csharp hljs">public static explicit operator Point(Size size)</code></pre>
  589. </div>
  590. <h5 class="parameters">Parameters</h5>
  591. <table class="table table-bordered table-striped table-condensed">
  592. <thead>
  593. <tr>
  594. <th>Type</th>
  595. <th>Name</th>
  596. <th>Description</th>
  597. </tr>
  598. </thead>
  599. <tbody>
  600. <tr>
  601. <td><a class="xref" href="Terminal.Gui.Size.html">Size</a></td>
  602. <td><span class="parametername">size</span></td>
  603. <td></td>
  604. </tr>
  605. </tbody>
  606. </table>
  607. <h5 class="returns">Returns</h5>
  608. <table class="table table-bordered table-striped table-condensed">
  609. <thead>
  610. <tr>
  611. <th>Type</th>
  612. <th>Description</th>
  613. </tr>
  614. </thead>
  615. <tbody>
  616. <tr>
  617. <td><a class="xref" href="Terminal.Gui.Point.html">Point</a></td>
  618. <td></td>
  619. </tr>
  620. </tbody>
  621. </table>
  622. <h5 id="Terminal_Gui_Size_op_Explicit_Terminal_Gui_Size__Terminal_Gui_Point_remarks">Remarks</h5>
  623. <div class="markdown level1 remarks">
  624. Returns a Point based on the dimensions of a given
  625. Size. Requires explicit cast.
  626. </div>
  627. <a id="Terminal_Gui_Size_op_Inequality_" data-uid="Terminal.Gui.Size.op_Inequality*"></a>
  628. <h4 id="Terminal_Gui_Size_op_Inequality_Terminal_Gui_Size_Terminal_Gui_Size_" data-uid="Terminal.Gui.Size.op_Inequality(Terminal.Gui.Size,Terminal.Gui.Size)">Inequality(Size, Size)</h4>
  629. <div class="markdown level1 summary">
  630. Inequality Operator
  631. </div>
  632. <div class="markdown level1 conceptual"></div>
  633. <h5 class="decalaration">Declaration</h5>
  634. <div class="codewrapper">
  635. <pre><code class="lang-csharp hljs">public static bool operator !=(Size sz1, Size sz2)</code></pre>
  636. </div>
  637. <h5 class="parameters">Parameters</h5>
  638. <table class="table table-bordered table-striped table-condensed">
  639. <thead>
  640. <tr>
  641. <th>Type</th>
  642. <th>Name</th>
  643. <th>Description</th>
  644. </tr>
  645. </thead>
  646. <tbody>
  647. <tr>
  648. <td><a class="xref" href="Terminal.Gui.Size.html">Size</a></td>
  649. <td><span class="parametername">sz1</span></td>
  650. <td></td>
  651. </tr>
  652. <tr>
  653. <td><a class="xref" href="Terminal.Gui.Size.html">Size</a></td>
  654. <td><span class="parametername">sz2</span></td>
  655. <td></td>
  656. </tr>
  657. </tbody>
  658. </table>
  659. <h5 class="returns">Returns</h5>
  660. <table class="table table-bordered table-striped table-condensed">
  661. <thead>
  662. <tr>
  663. <th>Type</th>
  664. <th>Description</th>
  665. </tr>
  666. </thead>
  667. <tbody>
  668. <tr>
  669. <td><span class="xref">System.Boolean</span></td>
  670. <td></td>
  671. </tr>
  672. </tbody>
  673. </table>
  674. <h5 id="Terminal_Gui_Size_op_Inequality_Terminal_Gui_Size_Terminal_Gui_Size__remarks">Remarks</h5>
  675. <div class="markdown level1 remarks">
  676. Compares two Size objects. The return value is
  677. based on the equivalence of the Width and Height
  678. properties of the two Sizes.
  679. </div>
  680. <a id="Terminal_Gui_Size_op_Subtraction_" data-uid="Terminal.Gui.Size.op_Subtraction*"></a>
  681. <h4 id="Terminal_Gui_Size_op_Subtraction_Terminal_Gui_Size_Terminal_Gui_Size_" data-uid="Terminal.Gui.Size.op_Subtraction(Terminal.Gui.Size,Terminal.Gui.Size)">Subtraction(Size, Size)</h4>
  682. <div class="markdown level1 summary">
  683. Subtraction Operator
  684. </div>
  685. <div class="markdown level1 conceptual"></div>
  686. <h5 class="decalaration">Declaration</h5>
  687. <div class="codewrapper">
  688. <pre><code class="lang-csharp hljs">public static Size operator -(Size sz1, Size sz2)</code></pre>
  689. </div>
  690. <h5 class="parameters">Parameters</h5>
  691. <table class="table table-bordered table-striped table-condensed">
  692. <thead>
  693. <tr>
  694. <th>Type</th>
  695. <th>Name</th>
  696. <th>Description</th>
  697. </tr>
  698. </thead>
  699. <tbody>
  700. <tr>
  701. <td><a class="xref" href="Terminal.Gui.Size.html">Size</a></td>
  702. <td><span class="parametername">sz1</span></td>
  703. <td></td>
  704. </tr>
  705. <tr>
  706. <td><a class="xref" href="Terminal.Gui.Size.html">Size</a></td>
  707. <td><span class="parametername">sz2</span></td>
  708. <td></td>
  709. </tr>
  710. </tbody>
  711. </table>
  712. <h5 class="returns">Returns</h5>
  713. <table class="table table-bordered table-striped table-condensed">
  714. <thead>
  715. <tr>
  716. <th>Type</th>
  717. <th>Description</th>
  718. </tr>
  719. </thead>
  720. <tbody>
  721. <tr>
  722. <td><a class="xref" href="Terminal.Gui.Size.html">Size</a></td>
  723. <td></td>
  724. </tr>
  725. </tbody>
  726. </table>
  727. <h5 id="Terminal_Gui_Size_op_Subtraction_Terminal_Gui_Size_Terminal_Gui_Size__remarks">Remarks</h5>
  728. <div class="markdown level1 remarks">
  729. Subtracts two Size structures.
  730. </div>
  731. </article>
  732. </div>
  733. <div class="hidden-sm col-md-2" role="complementary">
  734. <div class="sideaffix">
  735. <nav class="bs-docs-sidebar hidden-print hidden-xs hidden-sm affix" id="affix">
  736. <h5>In This Article</h5>
  737. <div></div>
  738. </nav>
  739. </div>
  740. </div>
  741. </div>
  742. </div>
  743. <footer>
  744. <div class="grad-bottom"></div>
  745. <div class="footer">
  746. <div class="container">
  747. <span class="pull-right">
  748. <a href="#top">Back to top</a>
  749. </span>
  750. <span>Generated by <strong>DocFX</strong></span>
  751. </div>
  752. </div>
  753. </footer>
  754. </div>
  755. <script type="text/javascript" src="../../styles/docfx.vendor.js"></script>
  756. <script type="text/javascript" src="../../styles/docfx.js"></script>
  757. <script type="text/javascript" src="../../styles/main.js"></script>
  758. </body>
  759. </html>