Terminal.Gui.Size.html 35 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853
  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 Size
  8. </title>
  9. <meta name="viewport" content="width=device-width">
  10. <meta name="title" content="Struct Size
  11. ">
  12. <meta name="generator" content="docfx 2.59.4.0">
  13. <link rel="shortcut icon" href="../../favicon.ico">
  14. <link rel="stylesheet" href="../../styles/docfx.vendor.css">
  15. <link rel="stylesheet" href="../../styles/docfx.css">
  16. <link rel="stylesheet" href="../../styles/main.css">
  17. <link href="https://fonts.googleapis.com/css?family=Source Sans Pro" rel="stylesheet">
  18. <link href="https://fonts.googleapis.com/css?family=Source Code Pro" rel="stylesheet">
  19. <meta property="docfx:navrel" content="../../toc.html">
  20. <meta property="docfx:tocrel" content="toc.html">
  21. <meta property="docfx:rel" content="../../">
  22. </head> <body data-spy="scroll" data-target="#affix" data-offset="120">
  23. <div id="wrapper">
  24. <header>
  25. <nav id="autocollapse" class="navbar navbar-inverse ng-scope" role="navigation">
  26. <div class="container">
  27. <div class="navbar-header">
  28. <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar">
  29. <span class="sr-only">Toggle navigation</span>
  30. <span class="icon-bar"></span>
  31. <span class="icon-bar"></span>
  32. <span class="icon-bar"></span>
  33. </button>
  34. <a class="navbar-brand" href="../../index.html">
  35. <img id="logo" class="svg" src="../../images/logo48.png" alt="">
  36. </a>
  37. </div>
  38. <div class="collapse navbar-collapse" id="navbar">
  39. <form class="navbar-form navbar-right" role="search" id="search">
  40. <div class="form-group">
  41. <input type="text" class="form-control" id="search-query" placeholder="Search" autocomplete="off">
  42. </div>
  43. </form>
  44. </div>
  45. </div>
  46. </nav>
  47. <div class="subnav navbar navbar-default">
  48. <div class="container hide-when-search" id="breadcrumb">
  49. <ul class="breadcrumb">
  50. <li></li>
  51. </ul>
  52. </div>
  53. </div>
  54. </header>
  55. <div class="container body-content">
  56. <div id="search-results">
  57. <div class="search-list">Search Results for <span></span></div>
  58. <div class="sr-items">
  59. <p><i class="glyphicon glyphicon-refresh index-loading"></i></p>
  60. </div>
  61. <ul id="pagination" data-first="First" data-prev="Previous" data-next="Next" data-last="Last"></ul>
  62. </div>
  63. </div>
  64. <div role="main" class="container body-content hide-when-search">
  65. <div class="sidenav hide-when-search">
  66. <a class="btn toc-toggle collapse" data-toggle="collapse" href="#sidetoggle" aria-expanded="false" aria-controls="sidetoggle">Show / Hide Table of Contents</a>
  67. <div class="sidetoggle collapse" id="sidetoggle">
  68. <div id="sidetoc"></div>
  69. </div>
  70. </div>
  71. <div class="article row grid-right">
  72. <div class="col-md-10">
  73. <article class="content wrap" id="_content" data-uid="Terminal.Gui.Size">
  74. <h1 id="Terminal_Gui_Size" data-uid="Terminal.Gui.Size" class="text-break">Struct Size
  75. </h1>
  76. <div class="markdown level0 summary">
  77. Stores an ordered pair of integers, which specify a Height and Width.
  78. </div>
  79. <div class="markdown level0 conceptual"></div>
  80. <div class="inheritedMembers">
  81. <h5>Inherited Members</h5>
  82. <div>
  83. <span class="xref">System.Object.Equals(System.Object, System.Object)</span>
  84. </div>
  85. <div>
  86. <span class="xref">System.Object.GetType()</span>
  87. </div>
  88. <div>
  89. <span class="xref">System.Object.ReferenceEquals(System.Object, System.Object)</span>
  90. </div>
  91. </div>
  92. <h6><strong>Namespace</strong>: <a class="xref" href="Terminal.Gui.html">Terminal.Gui</a></h6>
  93. <h6><strong>Assembly</strong>: Terminal.Gui.dll</h6>
  94. <h5 id="Terminal_Gui_Size_syntax">Syntax</h5>
  95. <div class="codewrapper">
  96. <pre><code class="lang-csharp hljs">public struct Size</code></pre>
  97. </div>
  98. <h3 id="constructors">Constructors
  99. </h3>
  100. <span class="small pull-right mobile-hide">
  101. <span class="divider">|</span>
  102. <a href="https://github.com/gui-cs/Terminal.Gui/new/develop/apidoc/new?filename=Terminal_Gui_Size__ctor_System_Int32_System_Int32_.md&amp;value=---%0Auid%3A%20Terminal.Gui.Size.%23ctor(System.Int32%2CSystem.Int32)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  103. </span>
  104. <span class="small pull-right mobile-hide">
  105. <a href="tig:tig/gui.cs/blob/main/Terminal.Gui/Types/Size.cs/#L122">View Source</a>
  106. </span>
  107. <a id="Terminal_Gui_Size__ctor_" data-uid="Terminal.Gui.Size.#ctor*"></a>
  108. <h4 id="Terminal_Gui_Size__ctor_System_Int32_System_Int32_" data-uid="Terminal.Gui.Size.#ctor(System.Int32,System.Int32)">Size(Int32, Int32)</h4>
  109. <div class="markdown level1 summary">
  110. Size Constructor
  111. </div>
  112. <div class="markdown level1 conceptual"></div>
  113. <h5 class="decalaration">Declaration</h5>
  114. <div class="codewrapper">
  115. <pre><code class="lang-csharp hljs">public Size(int width, int height)</code></pre>
  116. </div>
  117. <h5 class="parameters">Parameters</h5>
  118. <table class="table table-bordered table-striped table-condensed">
  119. <thead>
  120. <tr>
  121. <th>Type</th>
  122. <th>Name</th>
  123. <th>Description</th>
  124. </tr>
  125. </thead>
  126. <tbody>
  127. <tr>
  128. <td><span class="xref">System.Int32</span></td>
  129. <td><span class="parametername">width</span></td>
  130. <td></td>
  131. </tr>
  132. <tr>
  133. <td><span class="xref">System.Int32</span></td>
  134. <td><span class="parametername">height</span></td>
  135. <td></td>
  136. </tr>
  137. </tbody>
  138. </table>
  139. <span class="small pull-right mobile-hide">
  140. <span class="divider">|</span>
  141. <a href="https://github.com/gui-cs/Terminal.Gui/new/develop/apidoc/new?filename=Terminal_Gui_Size__ctor_Terminal_Gui_Point_.md&amp;value=---%0Auid%3A%20Terminal.Gui.Size.%23ctor(Terminal.Gui.Point)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  142. </span>
  143. <span class="small pull-right mobile-hide">
  144. <a href="tig:tig/gui.cs/blob/main/Terminal.Gui/Types/Size.cs/#L108">View Source</a>
  145. </span>
  146. <a id="Terminal_Gui_Size__ctor_" data-uid="Terminal.Gui.Size.#ctor*"></a>
  147. <h4 id="Terminal_Gui_Size__ctor_Terminal_Gui_Point_" data-uid="Terminal.Gui.Size.#ctor(Terminal.Gui.Point)">Size(Point)</h4>
  148. <div class="markdown level1 summary">
  149. Size Constructor
  150. </div>
  151. <div class="markdown level1 conceptual"></div>
  152. <h5 class="decalaration">Declaration</h5>
  153. <div class="codewrapper">
  154. <pre><code class="lang-csharp hljs">public Size(Point pt)</code></pre>
  155. </div>
  156. <h5 class="parameters">Parameters</h5>
  157. <table class="table table-bordered table-striped table-condensed">
  158. <thead>
  159. <tr>
  160. <th>Type</th>
  161. <th>Name</th>
  162. <th>Description</th>
  163. </tr>
  164. </thead>
  165. <tbody>
  166. <tr>
  167. <td><a class="xref" href="Terminal.Gui.Point.html">Point</a></td>
  168. <td><span class="parametername">pt</span></td>
  169. <td></td>
  170. </tr>
  171. </tbody>
  172. </table>
  173. <h3 id="fields">Fields
  174. </h3>
  175. <span class="small pull-right mobile-hide">
  176. <span class="divider">|</span>
  177. <a href="https://github.com/gui-cs/Terminal.Gui/new/develop/apidoc/new?filename=Terminal_Gui_Size_Empty.md&amp;value=---%0Auid%3A%20Terminal.Gui.Size.Empty%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  178. </span>
  179. <span class="small pull-right mobile-hide">
  180. <a href="tig:tig/gui.cs/blob/main/Terminal.Gui/Types/Size.cs/#L24">View Source</a>
  181. </span>
  182. <h4 id="Terminal_Gui_Size_Empty" data-uid="Terminal.Gui.Size.Empty">Empty</h4>
  183. <div class="markdown level1 summary">
  184. Gets a Size structure that has a Height and Width value of 0.
  185. </div>
  186. <div class="markdown level1 conceptual"></div>
  187. <h5 class="decalaration">Declaration</h5>
  188. <div class="codewrapper">
  189. <pre><code class="lang-csharp hljs">public static readonly Size Empty</code></pre>
  190. </div>
  191. <h5 class="fieldValue">Field Value</h5>
  192. <table class="table table-bordered table-striped table-condensed">
  193. <thead>
  194. <tr>
  195. <th>Type</th>
  196. <th>Description</th>
  197. </tr>
  198. </thead>
  199. <tbody>
  200. <tr>
  201. <td><a class="xref" href="Terminal.Gui.Size.html">Size</a></td>
  202. <td></td>
  203. </tr>
  204. </tbody>
  205. </table>
  206. <h3 id="properties">Properties
  207. </h3>
  208. <span class="small pull-right mobile-hide">
  209. <span class="divider">|</span>
  210. <a href="https://github.com/gui-cs/Terminal.Gui/new/develop/apidoc/new?filename=Terminal_Gui_Size_Height.md&amp;value=---%0Auid%3A%20Terminal.Gui.Size.Height%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  211. </span>
  212. <span class="small pull-right mobile-hide">
  213. <a href="tig:tig/gui.cs/blob/main/Terminal.Gui/Types/Size.cs/#L172">View Source</a>
  214. </span>
  215. <a id="Terminal_Gui_Size_Height_" data-uid="Terminal.Gui.Size.Height*"></a>
  216. <h4 id="Terminal_Gui_Size_Height" data-uid="Terminal.Gui.Size.Height">Height</h4>
  217. <div class="markdown level1 summary">
  218. Height Property
  219. </div>
  220. <div class="markdown level1 conceptual"></div>
  221. <h5 class="decalaration">Declaration</h5>
  222. <div class="codewrapper">
  223. <pre><code class="lang-csharp hljs">public int Height { get; set; }</code></pre>
  224. </div>
  225. <h5 class="propertyValue">Property Value</h5>
  226. <table class="table table-bordered table-striped table-condensed">
  227. <thead>
  228. <tr>
  229. <th>Type</th>
  230. <th>Description</th>
  231. </tr>
  232. </thead>
  233. <tbody>
  234. <tr>
  235. <td><span class="xref">System.Int32</span></td>
  236. <td></td>
  237. </tr>
  238. </tbody>
  239. </table>
  240. <span class="small pull-right mobile-hide">
  241. <span class="divider">|</span>
  242. <a href="https://github.com/gui-cs/Terminal.Gui/new/develop/apidoc/new?filename=Terminal_Gui_Size_IsEmpty.md&amp;value=---%0Auid%3A%20Terminal.Gui.Size.IsEmpty%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  243. </span>
  244. <span class="small pull-right mobile-hide">
  245. <a href="tig:tig/gui.cs/blob/main/Terminal.Gui/Types/Size.cs/#L139">View Source</a>
  246. </span>
  247. <a id="Terminal_Gui_Size_IsEmpty_" data-uid="Terminal.Gui.Size.IsEmpty*"></a>
  248. <h4 id="Terminal_Gui_Size_IsEmpty" data-uid="Terminal.Gui.Size.IsEmpty">IsEmpty</h4>
  249. <div class="markdown level1 summary">
  250. IsEmpty Property
  251. </div>
  252. <div class="markdown level1 conceptual"></div>
  253. <h5 class="decalaration">Declaration</h5>
  254. <div class="codewrapper">
  255. <pre><code class="lang-csharp hljs">public readonly bool IsEmpty { get; }</code></pre>
  256. </div>
  257. <h5 class="propertyValue">Property Value</h5>
  258. <table class="table table-bordered table-striped table-condensed">
  259. <thead>
  260. <tr>
  261. <th>Type</th>
  262. <th>Description</th>
  263. </tr>
  264. </thead>
  265. <tbody>
  266. <tr>
  267. <td><span class="xref">System.Boolean</span></td>
  268. <td></td>
  269. </tr>
  270. </tbody>
  271. </table>
  272. <span class="small pull-right mobile-hide">
  273. <span class="divider">|</span>
  274. <a href="https://github.com/gui-cs/Terminal.Gui/new/develop/apidoc/new?filename=Terminal_Gui_Size_Width.md&amp;value=---%0Auid%3A%20Terminal.Gui.Size.Width%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  275. </span>
  276. <span class="small pull-right mobile-hide">
  277. <a href="tig:tig/gui.cs/blob/main/Terminal.Gui/Types/Size.cs/#L153">View Source</a>
  278. </span>
  279. <a id="Terminal_Gui_Size_Width_" data-uid="Terminal.Gui.Size.Width*"></a>
  280. <h4 id="Terminal_Gui_Size_Width" data-uid="Terminal.Gui.Size.Width">Width</h4>
  281. <div class="markdown level1 summary">
  282. Width Property
  283. </div>
  284. <div class="markdown level1 conceptual"></div>
  285. <h5 class="decalaration">Declaration</h5>
  286. <div class="codewrapper">
  287. <pre><code class="lang-csharp hljs">public int Width { get; set; }</code></pre>
  288. </div>
  289. <h5 class="propertyValue">Property Value</h5>
  290. <table class="table table-bordered table-striped table-condensed">
  291. <thead>
  292. <tr>
  293. <th>Type</th>
  294. <th>Description</th>
  295. </tr>
  296. </thead>
  297. <tbody>
  298. <tr>
  299. <td><span class="xref">System.Int32</span></td>
  300. <td></td>
  301. </tr>
  302. </tbody>
  303. </table>
  304. <h3 id="methods">Methods
  305. </h3>
  306. <span class="small pull-right mobile-hide">
  307. <span class="divider">|</span>
  308. <a href="https://github.com/gui-cs/Terminal.Gui/new/develop/apidoc/new?filename=Terminal_Gui_Size_Add_Terminal_Gui_Size_Terminal_Gui_Size_.md&amp;value=---%0Auid%3A%20Terminal.Gui.Size.Add(Terminal.Gui.Size%2CTerminal.Gui.Size)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  309. </span>
  310. <span class="small pull-right mobile-hide">
  311. <a href="tig:tig/gui.cs/blob/main/Terminal.Gui/Types/Size.cs/#L231">View Source</a>
  312. </span>
  313. <a id="Terminal_Gui_Size_Add_" data-uid="Terminal.Gui.Size.Add*"></a>
  314. <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>
  315. <div class="markdown level1 summary">
  316. Adds the width and height of one Size structure to the width and height of another Size structure.
  317. </div>
  318. <div class="markdown level1 conceptual"></div>
  319. <h5 class="decalaration">Declaration</h5>
  320. <div class="codewrapper">
  321. <pre><code class="lang-csharp hljs">public static Size Add(Size sz1, Size sz2)</code></pre>
  322. </div>
  323. <h5 class="parameters">Parameters</h5>
  324. <table class="table table-bordered table-striped table-condensed">
  325. <thead>
  326. <tr>
  327. <th>Type</th>
  328. <th>Name</th>
  329. <th>Description</th>
  330. </tr>
  331. </thead>
  332. <tbody>
  333. <tr>
  334. <td><a class="xref" href="Terminal.Gui.Size.html">Size</a></td>
  335. <td><span class="parametername">sz1</span></td>
  336. <td>The first Size structure to add.</td>
  337. </tr>
  338. <tr>
  339. <td><a class="xref" href="Terminal.Gui.Size.html">Size</a></td>
  340. <td><span class="parametername">sz2</span></td>
  341. <td>The second Size structure to add.</td>
  342. </tr>
  343. </tbody>
  344. </table>
  345. <h5 class="returns">Returns</h5>
  346. <table class="table table-bordered table-striped table-condensed">
  347. <thead>
  348. <tr>
  349. <th>Type</th>
  350. <th>Description</th>
  351. </tr>
  352. </thead>
  353. <tbody>
  354. <tr>
  355. <td><a class="xref" href="Terminal.Gui.Size.html">Size</a></td>
  356. <td>The add.</td>
  357. </tr>
  358. </tbody>
  359. </table>
  360. <span class="small pull-right mobile-hide">
  361. <span class="divider">|</span>
  362. <a href="https://github.com/gui-cs/Terminal.Gui/new/develop/apidoc/new?filename=Terminal_Gui_Size_Equals_System_Object_.md&amp;value=---%0Auid%3A%20Terminal.Gui.Size.Equals(System.Object)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  363. </span>
  364. <span class="small pull-right mobile-hide">
  365. <a href="tig:tig/gui.cs/blob/main/Terminal.Gui/Types/Size.cs/#L191">View Source</a>
  366. </span>
  367. <a id="Terminal_Gui_Size_Equals_" data-uid="Terminal.Gui.Size.Equals*"></a>
  368. <h4 id="Terminal_Gui_Size_Equals_System_Object_" data-uid="Terminal.Gui.Size.Equals(System.Object)">Equals(Object)</h4>
  369. <div class="markdown level1 summary">
  370. Equals Method
  371. </div>
  372. <div class="markdown level1 conceptual"></div>
  373. <h5 class="decalaration">Declaration</h5>
  374. <div class="codewrapper">
  375. <pre><code class="lang-csharp hljs">public override bool Equals(object obj)</code></pre>
  376. </div>
  377. <h5 class="parameters">Parameters</h5>
  378. <table class="table table-bordered table-striped table-condensed">
  379. <thead>
  380. <tr>
  381. <th>Type</th>
  382. <th>Name</th>
  383. <th>Description</th>
  384. </tr>
  385. </thead>
  386. <tbody>
  387. <tr>
  388. <td><span class="xref">System.Object</span></td>
  389. <td><span class="parametername">obj</span></td>
  390. <td></td>
  391. </tr>
  392. </tbody>
  393. </table>
  394. <h5 class="returns">Returns</h5>
  395. <table class="table table-bordered table-striped table-condensed">
  396. <thead>
  397. <tr>
  398. <th>Type</th>
  399. <th>Description</th>
  400. </tr>
  401. </thead>
  402. <tbody>
  403. <tr>
  404. <td><span class="xref">System.Boolean</span></td>
  405. <td></td>
  406. </tr>
  407. </tbody>
  408. </table>
  409. <h5 class="overrides">Overrides</h5>
  410. <div><span class="xref">System.ValueType.Equals(System.Object)</span></div>
  411. <span class="small pull-right mobile-hide">
  412. <span class="divider">|</span>
  413. <a href="https://github.com/gui-cs/Terminal.Gui/new/develop/apidoc/new?filename=Terminal_Gui_Size_GetHashCode.md&amp;value=---%0Auid%3A%20Terminal.Gui.Size.GetHashCode%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  414. </span>
  415. <span class="small pull-right mobile-hide">
  416. <a href="tig:tig/gui.cs/blob/main/Terminal.Gui/Types/Size.cs/#L207">View Source</a>
  417. </span>
  418. <a id="Terminal_Gui_Size_GetHashCode_" data-uid="Terminal.Gui.Size.GetHashCode*"></a>
  419. <h4 id="Terminal_Gui_Size_GetHashCode" data-uid="Terminal.Gui.Size.GetHashCode">GetHashCode()</h4>
  420. <div class="markdown level1 summary">
  421. GetHashCode Method
  422. </div>
  423. <div class="markdown level1 conceptual"></div>
  424. <h5 class="decalaration">Declaration</h5>
  425. <div class="codewrapper">
  426. <pre><code class="lang-csharp hljs">public override int GetHashCode()</code></pre>
  427. </div>
  428. <h5 class="returns">Returns</h5>
  429. <table class="table table-bordered table-striped table-condensed">
  430. <thead>
  431. <tr>
  432. <th>Type</th>
  433. <th>Description</th>
  434. </tr>
  435. </thead>
  436. <tbody>
  437. <tr>
  438. <td><span class="xref">System.Int32</span></td>
  439. <td></td>
  440. </tr>
  441. </tbody>
  442. </table>
  443. <h5 class="overrides">Overrides</h5>
  444. <div><span class="xref">System.ValueType.GetHashCode()</span></div>
  445. <span class="small pull-right mobile-hide">
  446. <span class="divider">|</span>
  447. <a href="https://github.com/gui-cs/Terminal.Gui/new/develop/apidoc/new?filename=Terminal_Gui_Size_Subtract_Terminal_Gui_Size_Terminal_Gui_Size_.md&amp;value=---%0Auid%3A%20Terminal.Gui.Size.Subtract(Terminal.Gui.Size%2CTerminal.Gui.Size)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  448. </span>
  449. <span class="small pull-right mobile-hide">
  450. <a href="tig:tig/gui.cs/blob/main/Terminal.Gui/Types/Size.cs/#L244">View Source</a>
  451. </span>
  452. <a id="Terminal_Gui_Size_Subtract_" data-uid="Terminal.Gui.Size.Subtract*"></a>
  453. <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>
  454. <div class="markdown level1 summary">
  455. Subtracts the width and height of one Size structure to the width and height of another Size structure.
  456. </div>
  457. <div class="markdown level1 conceptual"></div>
  458. <h5 class="decalaration">Declaration</h5>
  459. <div class="codewrapper">
  460. <pre><code class="lang-csharp hljs">public static Size Subtract(Size sz1, Size sz2)</code></pre>
  461. </div>
  462. <h5 class="parameters">Parameters</h5>
  463. <table class="table table-bordered table-striped table-condensed">
  464. <thead>
  465. <tr>
  466. <th>Type</th>
  467. <th>Name</th>
  468. <th>Description</th>
  469. </tr>
  470. </thead>
  471. <tbody>
  472. <tr>
  473. <td><a class="xref" href="Terminal.Gui.Size.html">Size</a></td>
  474. <td><span class="parametername">sz1</span></td>
  475. <td>The first Size structure to subtract.</td>
  476. </tr>
  477. <tr>
  478. <td><a class="xref" href="Terminal.Gui.Size.html">Size</a></td>
  479. <td><span class="parametername">sz2</span></td>
  480. <td>The second Size structure to subtract.</td>
  481. </tr>
  482. </tbody>
  483. </table>
  484. <h5 class="returns">Returns</h5>
  485. <table class="table table-bordered table-striped table-condensed">
  486. <thead>
  487. <tr>
  488. <th>Type</th>
  489. <th>Description</th>
  490. </tr>
  491. </thead>
  492. <tbody>
  493. <tr>
  494. <td><a class="xref" href="Terminal.Gui.Size.html">Size</a></td>
  495. <td>The subtract.</td>
  496. </tr>
  497. </tbody>
  498. </table>
  499. <span class="small pull-right mobile-hide">
  500. <span class="divider">|</span>
  501. <a href="https://github.com/gui-cs/Terminal.Gui/new/develop/apidoc/new?filename=Terminal_Gui_Size_ToString.md&amp;value=---%0Auid%3A%20Terminal.Gui.Size.ToString%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  502. </span>
  503. <span class="small pull-right mobile-hide">
  504. <a href="tig:tig/gui.cs/blob/main/Terminal.Gui/Types/Size.cs/#L220">View Source</a>
  505. </span>
  506. <a id="Terminal_Gui_Size_ToString_" data-uid="Terminal.Gui.Size.ToString*"></a>
  507. <h4 id="Terminal_Gui_Size_ToString" data-uid="Terminal.Gui.Size.ToString">ToString()</h4>
  508. <div class="markdown level1 summary">
  509. ToString Method
  510. </div>
  511. <div class="markdown level1 conceptual"></div>
  512. <h5 class="decalaration">Declaration</h5>
  513. <div class="codewrapper">
  514. <pre><code class="lang-csharp hljs">public override string ToString()</code></pre>
  515. </div>
  516. <h5 class="returns">Returns</h5>
  517. <table class="table table-bordered table-striped table-condensed">
  518. <thead>
  519. <tr>
  520. <th>Type</th>
  521. <th>Description</th>
  522. </tr>
  523. </thead>
  524. <tbody>
  525. <tr>
  526. <td><span class="xref">System.String</span></td>
  527. <td></td>
  528. </tr>
  529. </tbody>
  530. </table>
  531. <h5 class="overrides">Overrides</h5>
  532. <div><span class="xref">System.ValueType.ToString()</span></div>
  533. <h3 id="operators">Operators
  534. </h3>
  535. <span class="small pull-right mobile-hide">
  536. <span class="divider">|</span>
  537. <a href="https://github.com/gui-cs/Terminal.Gui/new/develop/apidoc/new?filename=Terminal_Gui_Size_op_Addition_Terminal_Gui_Size_Terminal_Gui_Size_.md&amp;value=---%0Auid%3A%20Terminal.Gui.Size.op_Addition(Terminal.Gui.Size%2CTerminal.Gui.Size)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  538. </span>
  539. <span class="small pull-right mobile-hide">
  540. <a href="tig:tig/gui.cs/blob/main/Terminal.Gui/Types/Size.cs/#L34">View Source</a>
  541. </span>
  542. <a id="Terminal_Gui_Size_op_Addition_" data-uid="Terminal.Gui.Size.op_Addition*"></a>
  543. <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>
  544. <div class="markdown level1 summary">
  545. Addition Operator
  546. </div>
  547. <div class="markdown level1 conceptual"></div>
  548. <h5 class="decalaration">Declaration</h5>
  549. <div class="codewrapper">
  550. <pre><code class="lang-csharp hljs">public static Size operator +(Size sz1, Size sz2)</code></pre>
  551. </div>
  552. <h5 class="parameters">Parameters</h5>
  553. <table class="table table-bordered table-striped table-condensed">
  554. <thead>
  555. <tr>
  556. <th>Type</th>
  557. <th>Name</th>
  558. <th>Description</th>
  559. </tr>
  560. </thead>
  561. <tbody>
  562. <tr>
  563. <td><a class="xref" href="Terminal.Gui.Size.html">Size</a></td>
  564. <td><span class="parametername">sz1</span></td>
  565. <td></td>
  566. </tr>
  567. <tr>
  568. <td><a class="xref" href="Terminal.Gui.Size.html">Size</a></td>
  569. <td><span class="parametername">sz2</span></td>
  570. <td></td>
  571. </tr>
  572. </tbody>
  573. </table>
  574. <h5 class="returns">Returns</h5>
  575. <table class="table table-bordered table-striped table-condensed">
  576. <thead>
  577. <tr>
  578. <th>Type</th>
  579. <th>Description</th>
  580. </tr>
  581. </thead>
  582. <tbody>
  583. <tr>
  584. <td><a class="xref" href="Terminal.Gui.Size.html">Size</a></td>
  585. <td></td>
  586. </tr>
  587. </tbody>
  588. </table>
  589. <span class="small pull-right mobile-hide">
  590. <span class="divider">|</span>
  591. <a href="https://github.com/gui-cs/Terminal.Gui/new/develop/apidoc/new?filename=Terminal_Gui_Size_op_Equality_Terminal_Gui_Size_Terminal_Gui_Size_.md&amp;value=---%0Auid%3A%20Terminal.Gui.Size.op_Equality(Terminal.Gui.Size%2CTerminal.Gui.Size)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  592. </span>
  593. <span class="small pull-right mobile-hide">
  594. <a href="tig:tig/gui.cs/blob/main/Terminal.Gui/Types/Size.cs/#L50">View Source</a>
  595. </span>
  596. <a id="Terminal_Gui_Size_op_Equality_" data-uid="Terminal.Gui.Size.op_Equality*"></a>
  597. <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>
  598. <div class="markdown level1 summary">
  599. Equality Operator
  600. </div>
  601. <div class="markdown level1 conceptual"></div>
  602. <h5 class="decalaration">Declaration</h5>
  603. <div class="codewrapper">
  604. <pre><code class="lang-csharp hljs">public static bool operator ==(Size sz1, Size sz2)</code></pre>
  605. </div>
  606. <h5 class="parameters">Parameters</h5>
  607. <table class="table table-bordered table-striped table-condensed">
  608. <thead>
  609. <tr>
  610. <th>Type</th>
  611. <th>Name</th>
  612. <th>Description</th>
  613. </tr>
  614. </thead>
  615. <tbody>
  616. <tr>
  617. <td><a class="xref" href="Terminal.Gui.Size.html">Size</a></td>
  618. <td><span class="parametername">sz1</span></td>
  619. <td></td>
  620. </tr>
  621. <tr>
  622. <td><a class="xref" href="Terminal.Gui.Size.html">Size</a></td>
  623. <td><span class="parametername">sz2</span></td>
  624. <td></td>
  625. </tr>
  626. </tbody>
  627. </table>
  628. <h5 class="returns">Returns</h5>
  629. <table class="table table-bordered table-striped table-condensed">
  630. <thead>
  631. <tr>
  632. <th>Type</th>
  633. <th>Description</th>
  634. </tr>
  635. </thead>
  636. <tbody>
  637. <tr>
  638. <td><span class="xref">System.Boolean</span></td>
  639. <td></td>
  640. </tr>
  641. </tbody>
  642. </table>
  643. <span class="small pull-right mobile-hide">
  644. <span class="divider">|</span>
  645. <a href="https://github.com/gui-cs/Terminal.Gui/new/develop/apidoc/new?filename=Terminal_Gui_Size_op_Explicit_Terminal_Gui_Size__Terminal_Gui_Point.md&amp;value=---%0Auid%3A%20Terminal.Gui.Size.op_Explicit(Terminal.Gui.Size)~Terminal.Gui.Point%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  646. </span>
  647. <span class="small pull-right mobile-hide">
  648. <a href="tig:tig/gui.cs/blob/main/Terminal.Gui/Types/Size.cs/#L95">View Source</a>
  649. </span>
  650. <a id="Terminal_Gui_Size_op_Explicit_" data-uid="Terminal.Gui.Size.op_Explicit*"></a>
  651. <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>
  652. <div class="markdown level1 summary">
  653. Size to Point Conversion
  654. </div>
  655. <div class="markdown level1 conceptual"></div>
  656. <h5 class="decalaration">Declaration</h5>
  657. <div class="codewrapper">
  658. <pre><code class="lang-csharp hljs">public static explicit operator Point(Size size)</code></pre>
  659. </div>
  660. <h5 class="parameters">Parameters</h5>
  661. <table class="table table-bordered table-striped table-condensed">
  662. <thead>
  663. <tr>
  664. <th>Type</th>
  665. <th>Name</th>
  666. <th>Description</th>
  667. </tr>
  668. </thead>
  669. <tbody>
  670. <tr>
  671. <td><a class="xref" href="Terminal.Gui.Size.html">Size</a></td>
  672. <td><span class="parametername">size</span></td>
  673. <td></td>
  674. </tr>
  675. </tbody>
  676. </table>
  677. <h5 class="returns">Returns</h5>
  678. <table class="table table-bordered table-striped table-condensed">
  679. <thead>
  680. <tr>
  681. <th>Type</th>
  682. <th>Description</th>
  683. </tr>
  684. </thead>
  685. <tbody>
  686. <tr>
  687. <td><a class="xref" href="Terminal.Gui.Point.html">Point</a></td>
  688. <td></td>
  689. </tr>
  690. </tbody>
  691. </table>
  692. <span class="small pull-right mobile-hide">
  693. <span class="divider">|</span>
  694. <a href="https://github.com/gui-cs/Terminal.Gui/new/develop/apidoc/new?filename=Terminal_Gui_Size_op_Inequality_Terminal_Gui_Size_Terminal_Gui_Size_.md&amp;value=---%0Auid%3A%20Terminal.Gui.Size.op_Inequality(Terminal.Gui.Size%2CTerminal.Gui.Size)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  695. </span>
  696. <span class="small pull-right mobile-hide">
  697. <a href="tig:tig/gui.cs/blob/main/Terminal.Gui/Types/Size.cs/#L66">View Source</a>
  698. </span>
  699. <a id="Terminal_Gui_Size_op_Inequality_" data-uid="Terminal.Gui.Size.op_Inequality*"></a>
  700. <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>
  701. <div class="markdown level1 summary">
  702. Inequality Operator
  703. </div>
  704. <div class="markdown level1 conceptual"></div>
  705. <h5 class="decalaration">Declaration</h5>
  706. <div class="codewrapper">
  707. <pre><code class="lang-csharp hljs">public static bool operator !=(Size sz1, Size sz2)</code></pre>
  708. </div>
  709. <h5 class="parameters">Parameters</h5>
  710. <table class="table table-bordered table-striped table-condensed">
  711. <thead>
  712. <tr>
  713. <th>Type</th>
  714. <th>Name</th>
  715. <th>Description</th>
  716. </tr>
  717. </thead>
  718. <tbody>
  719. <tr>
  720. <td><a class="xref" href="Terminal.Gui.Size.html">Size</a></td>
  721. <td><span class="parametername">sz1</span></td>
  722. <td></td>
  723. </tr>
  724. <tr>
  725. <td><a class="xref" href="Terminal.Gui.Size.html">Size</a></td>
  726. <td><span class="parametername">sz2</span></td>
  727. <td></td>
  728. </tr>
  729. </tbody>
  730. </table>
  731. <h5 class="returns">Returns</h5>
  732. <table class="table table-bordered table-striped table-condensed">
  733. <thead>
  734. <tr>
  735. <th>Type</th>
  736. <th>Description</th>
  737. </tr>
  738. </thead>
  739. <tbody>
  740. <tr>
  741. <td><span class="xref">System.Boolean</span></td>
  742. <td></td>
  743. </tr>
  744. </tbody>
  745. </table>
  746. <span class="small pull-right mobile-hide">
  747. <span class="divider">|</span>
  748. <a href="https://github.com/gui-cs/Terminal.Gui/new/develop/apidoc/new?filename=Terminal_Gui_Size_op_Subtraction_Terminal_Gui_Size_Terminal_Gui_Size_.md&amp;value=---%0Auid%3A%20Terminal.Gui.Size.op_Subtraction(Terminal.Gui.Size%2CTerminal.Gui.Size)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  749. </span>
  750. <span class="small pull-right mobile-hide">
  751. <a href="tig:tig/gui.cs/blob/main/Terminal.Gui/Types/Size.cs/#L80">View Source</a>
  752. </span>
  753. <a id="Terminal_Gui_Size_op_Subtraction_" data-uid="Terminal.Gui.Size.op_Subtraction*"></a>
  754. <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>
  755. <div class="markdown level1 summary">
  756. Subtraction Operator
  757. </div>
  758. <div class="markdown level1 conceptual"></div>
  759. <h5 class="decalaration">Declaration</h5>
  760. <div class="codewrapper">
  761. <pre><code class="lang-csharp hljs">public static Size operator -(Size sz1, Size sz2)</code></pre>
  762. </div>
  763. <h5 class="parameters">Parameters</h5>
  764. <table class="table table-bordered table-striped table-condensed">
  765. <thead>
  766. <tr>
  767. <th>Type</th>
  768. <th>Name</th>
  769. <th>Description</th>
  770. </tr>
  771. </thead>
  772. <tbody>
  773. <tr>
  774. <td><a class="xref" href="Terminal.Gui.Size.html">Size</a></td>
  775. <td><span class="parametername">sz1</span></td>
  776. <td></td>
  777. </tr>
  778. <tr>
  779. <td><a class="xref" href="Terminal.Gui.Size.html">Size</a></td>
  780. <td><span class="parametername">sz2</span></td>
  781. <td></td>
  782. </tr>
  783. </tbody>
  784. </table>
  785. <h5 class="returns">Returns</h5>
  786. <table class="table table-bordered table-striped table-condensed">
  787. <thead>
  788. <tr>
  789. <th>Type</th>
  790. <th>Description</th>
  791. </tr>
  792. </thead>
  793. <tbody>
  794. <tr>
  795. <td><a class="xref" href="Terminal.Gui.Size.html">Size</a></td>
  796. <td></td>
  797. </tr>
  798. </tbody>
  799. </table>
  800. </article>
  801. </div>
  802. <div class="hidden-sm col-md-2" role="complementary">
  803. <div class="sideaffix">
  804. <div class="contribution">
  805. <ul class="nav">
  806. <li>
  807. <a href="https://github.com/gui-cs/Terminal.Gui/new/develop/apidoc/new?filename=Terminal_Gui_Size.md&amp;value=---%0Auid%3A%20Terminal.Gui.Size%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A" class="contribution-link">Improve this Doc</a>
  808. </li>
  809. <li>
  810. <a href="tig:tig/gui.cs/blob/main/Terminal.Gui/Types/Size.cs/#L17" class="contribution-link">View Source</a>
  811. </li>
  812. </ul>
  813. </div>
  814. <nav class="bs-docs-sidebar hidden-print hidden-xs hidden-sm affix" id="affix">
  815. <h5>In This Article</h5>
  816. <div></div>
  817. </nav>
  818. </div>
  819. </div>
  820. </div>
  821. </div>
  822. <footer>
  823. <div class="grad-bottom"></div>
  824. <div class="footer">
  825. <div class="container">
  826. <span class="pull-right">
  827. <a href="#top">Back to top</a>
  828. </span>
  829. <span>Generated by <strong>DocFX</strong></span>
  830. </div>
  831. </div>
  832. </footer>
  833. </div>
  834. <script type="text/javascript" src="../../styles/docfx.vendor.js"></script>
  835. <script type="text/javascript" src="../../styles/docfx.js"></script>
  836. <script type="text/javascript" src="../../styles/main.js"></script>
  837. </body>
  838. </html>