Terminal.Gui.Rect.html 45 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429
  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 Rect
  8. </title>
  9. <meta name="viewport" content="width=device-width">
  10. <meta name="title" content="Struct Rect
  11. ">
  12. <meta name="generator" content="docfx 2.56.6.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.Rect">
  73. <h1 id="Terminal_Gui_Rect" data-uid="Terminal.Gui.Rect" class="text-break">Struct Rect
  74. </h1>
  75. <div class="markdown level0 summary">
  76. Stores a set of four integers that represent the location and size of a rectangle
  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_Rect_syntax">Syntax</h5>
  94. <div class="codewrapper">
  95. <pre><code class="lang-csharp hljs">public struct Rect</code></pre>
  96. </div>
  97. <h3 id="constructors">Constructors
  98. </h3>
  99. <a id="Terminal_Gui_Rect__ctor_" data-uid="Terminal.Gui.Rect.#ctor*"></a>
  100. <h4 id="Terminal_Gui_Rect__ctor_System_Int32_System_Int32_System_Int32_System_Int32_" data-uid="Terminal.Gui.Rect.#ctor(System.Int32,System.Int32,System.Int32,System.Int32)">Rect(Int32, Int32, Int32, Int32)</h4>
  101. <div class="markdown level1 summary">
  102. Rectangle 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 Rect(int x, int y, int width, int height)</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. <tr>
  130. <td><span class="xref">System.Int32</span></td>
  131. <td><span class="parametername">width</span></td>
  132. <td></td>
  133. </tr>
  134. <tr>
  135. <td><span class="xref">System.Int32</span></td>
  136. <td><span class="parametername">height</span></td>
  137. <td></td>
  138. </tr>
  139. </tbody>
  140. </table>
  141. <h5 id="Terminal_Gui_Rect__ctor_System_Int32_System_Int32_System_Int32_System_Int32__remarks">Remarks</h5>
  142. <div class="markdown level1 remarks">
  143. Creates a Rectangle from a specified x,y location and
  144. width and height values.
  145. </div>
  146. <a id="Terminal_Gui_Rect__ctor_" data-uid="Terminal.Gui.Rect.#ctor*"></a>
  147. <h4 id="Terminal_Gui_Rect__ctor_Terminal_Gui_Point_Terminal_Gui_Size_" data-uid="Terminal.Gui.Rect.#ctor(Terminal.Gui.Point,Terminal.Gui.Size)">Rect(Point, Size)</h4>
  148. <div class="markdown level1 summary">
  149. Rectangle 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 Rect(Point location, Size size)</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">location</span></td>
  169. <td></td>
  170. </tr>
  171. <tr>
  172. <td><a class="xref" href="Terminal.Gui.Size.html">Size</a></td>
  173. <td><span class="parametername">size</span></td>
  174. <td></td>
  175. </tr>
  176. </tbody>
  177. </table>
  178. <h5 id="Terminal_Gui_Rect__ctor_Terminal_Gui_Point_Terminal_Gui_Size__remarks">Remarks</h5>
  179. <div class="markdown level1 remarks">
  180. Creates a Rectangle from Point and Size values.
  181. </div>
  182. <h3 id="fields">Fields
  183. </h3>
  184. <h4 id="Terminal_Gui_Rect_Empty" data-uid="Terminal.Gui.Rect.Empty">Empty</h4>
  185. <div class="markdown level1 summary">
  186. Empty Shared Field
  187. </div>
  188. <div class="markdown level1 conceptual"></div>
  189. <h5 class="decalaration">Declaration</h5>
  190. <div class="codewrapper">
  191. <pre><code class="lang-csharp hljs">public static readonly Rect Empty</code></pre>
  192. </div>
  193. <h5 class="fieldValue">Field Value</h5>
  194. <table class="table table-bordered table-striped table-condensed">
  195. <thead>
  196. <tr>
  197. <th>Type</th>
  198. <th>Description</th>
  199. </tr>
  200. </thead>
  201. <tbody>
  202. <tr>
  203. <td><a class="xref" href="Terminal.Gui.Rect.html">Rect</a></td>
  204. <td></td>
  205. </tr>
  206. </tbody>
  207. </table>
  208. <h5 id="Terminal_Gui_Rect_Empty_remarks">Remarks</h5>
  209. <div class="markdown level1 remarks">
  210. An uninitialized Rectangle Structure.
  211. </div>
  212. <h4 id="Terminal_Gui_Rect_X" data-uid="Terminal.Gui.Rect.X">X</h4>
  213. <div class="markdown level1 summary">
  214. Gets or sets the x-coordinate of the upper-left corner of this Rectangle structure.
  215. </div>
  216. <div class="markdown level1 conceptual"></div>
  217. <h5 class="decalaration">Declaration</h5>
  218. <div class="codewrapper">
  219. <pre><code class="lang-csharp hljs">public int X</code></pre>
  220. </div>
  221. <h5 class="fieldValue">Field Value</h5>
  222. <table class="table table-bordered table-striped table-condensed">
  223. <thead>
  224. <tr>
  225. <th>Type</th>
  226. <th>Description</th>
  227. </tr>
  228. </thead>
  229. <tbody>
  230. <tr>
  231. <td><span class="xref">System.Int32</span></td>
  232. <td></td>
  233. </tr>
  234. </tbody>
  235. </table>
  236. <h4 id="Terminal_Gui_Rect_Y" data-uid="Terminal.Gui.Rect.Y">Y</h4>
  237. <div class="markdown level1 summary">
  238. Gets or sets the y-coordinate of the upper-left corner of this Rectangle structure.
  239. </div>
  240. <div class="markdown level1 conceptual"></div>
  241. <h5 class="decalaration">Declaration</h5>
  242. <div class="codewrapper">
  243. <pre><code class="lang-csharp hljs">public int Y</code></pre>
  244. </div>
  245. <h5 class="fieldValue">Field Value</h5>
  246. <table class="table table-bordered table-striped table-condensed">
  247. <thead>
  248. <tr>
  249. <th>Type</th>
  250. <th>Description</th>
  251. </tr>
  252. </thead>
  253. <tbody>
  254. <tr>
  255. <td><span class="xref">System.Int32</span></td>
  256. <td></td>
  257. </tr>
  258. </tbody>
  259. </table>
  260. <h3 id="properties">Properties
  261. </h3>
  262. <a id="Terminal_Gui_Rect_Bottom_" data-uid="Terminal.Gui.Rect.Bottom*"></a>
  263. <h4 id="Terminal_Gui_Rect_Bottom" data-uid="Terminal.Gui.Rect.Bottom">Bottom</h4>
  264. <div class="markdown level1 summary">
  265. Bottom Property
  266. </div>
  267. <div class="markdown level1 conceptual"></div>
  268. <h5 class="decalaration">Declaration</h5>
  269. <div class="codewrapper">
  270. <pre><code class="lang-csharp hljs">public int Bottom { get; }</code></pre>
  271. </div>
  272. <h5 class="propertyValue">Property Value</h5>
  273. <table class="table table-bordered table-striped table-condensed">
  274. <thead>
  275. <tr>
  276. <th>Type</th>
  277. <th>Description</th>
  278. </tr>
  279. </thead>
  280. <tbody>
  281. <tr>
  282. <td><span class="xref">System.Int32</span></td>
  283. <td></td>
  284. </tr>
  285. </tbody>
  286. </table>
  287. <h5 id="Terminal_Gui_Rect_Bottom_remarks">Remarks</h5>
  288. <div class="markdown level1 remarks">
  289. The Y coordinate of the bottom edge of the Rectangle.
  290. Read only.
  291. </div>
  292. <a id="Terminal_Gui_Rect_Height_" data-uid="Terminal.Gui.Rect.Height*"></a>
  293. <h4 id="Terminal_Gui_Rect_Height" data-uid="Terminal.Gui.Rect.Height">Height</h4>
  294. <div class="markdown level1 summary">
  295. Gets or sets the height of this Rectangle structure.
  296. </div>
  297. <div class="markdown level1 conceptual"></div>
  298. <h5 class="decalaration">Declaration</h5>
  299. <div class="codewrapper">
  300. <pre><code class="lang-csharp hljs">public int Height { get; set; }</code></pre>
  301. </div>
  302. <h5 class="propertyValue">Property Value</h5>
  303. <table class="table table-bordered table-striped table-condensed">
  304. <thead>
  305. <tr>
  306. <th>Type</th>
  307. <th>Description</th>
  308. </tr>
  309. </thead>
  310. <tbody>
  311. <tr>
  312. <td><span class="xref">System.Int32</span></td>
  313. <td></td>
  314. </tr>
  315. </tbody>
  316. </table>
  317. <a id="Terminal_Gui_Rect_IsEmpty_" data-uid="Terminal.Gui.Rect.IsEmpty*"></a>
  318. <h4 id="Terminal_Gui_Rect_IsEmpty" data-uid="Terminal.Gui.Rect.IsEmpty">IsEmpty</h4>
  319. <div class="markdown level1 summary">
  320. IsEmpty Property
  321. </div>
  322. <div class="markdown level1 conceptual"></div>
  323. <h5 class="decalaration">Declaration</h5>
  324. <div class="codewrapper">
  325. <pre><code class="lang-csharp hljs">public bool IsEmpty { get; }</code></pre>
  326. </div>
  327. <h5 class="propertyValue">Property Value</h5>
  328. <table class="table table-bordered table-striped table-condensed">
  329. <thead>
  330. <tr>
  331. <th>Type</th>
  332. <th>Description</th>
  333. </tr>
  334. </thead>
  335. <tbody>
  336. <tr>
  337. <td><span class="xref">System.Boolean</span></td>
  338. <td></td>
  339. </tr>
  340. </tbody>
  341. </table>
  342. <h5 id="Terminal_Gui_Rect_IsEmpty_remarks">Remarks</h5>
  343. <div class="markdown level1 remarks">
  344. Indicates if the width or height are zero. Read only.
  345. </div>
  346. <a id="Terminal_Gui_Rect_Left_" data-uid="Terminal.Gui.Rect.Left*"></a>
  347. <h4 id="Terminal_Gui_Rect_Left" data-uid="Terminal.Gui.Rect.Left">Left</h4>
  348. <div class="markdown level1 summary">
  349. Left Property
  350. </div>
  351. <div class="markdown level1 conceptual"></div>
  352. <h5 class="decalaration">Declaration</h5>
  353. <div class="codewrapper">
  354. <pre><code class="lang-csharp hljs">public int Left { get; }</code></pre>
  355. </div>
  356. <h5 class="propertyValue">Property Value</h5>
  357. <table class="table table-bordered table-striped table-condensed">
  358. <thead>
  359. <tr>
  360. <th>Type</th>
  361. <th>Description</th>
  362. </tr>
  363. </thead>
  364. <tbody>
  365. <tr>
  366. <td><span class="xref">System.Int32</span></td>
  367. <td></td>
  368. </tr>
  369. </tbody>
  370. </table>
  371. <h5 id="Terminal_Gui_Rect_Left_remarks">Remarks</h5>
  372. <div class="markdown level1 remarks">
  373. The X coordinate of the left edge of the Rectangle.
  374. Read only.
  375. </div>
  376. <a id="Terminal_Gui_Rect_Location_" data-uid="Terminal.Gui.Rect.Location*"></a>
  377. <h4 id="Terminal_Gui_Rect_Location" data-uid="Terminal.Gui.Rect.Location">Location</h4>
  378. <div class="markdown level1 summary">
  379. Location Property
  380. </div>
  381. <div class="markdown level1 conceptual"></div>
  382. <h5 class="decalaration">Declaration</h5>
  383. <div class="codewrapper">
  384. <pre><code class="lang-csharp hljs">public Point Location { get; set; }</code></pre>
  385. </div>
  386. <h5 class="propertyValue">Property Value</h5>
  387. <table class="table table-bordered table-striped table-condensed">
  388. <thead>
  389. <tr>
  390. <th>Type</th>
  391. <th>Description</th>
  392. </tr>
  393. </thead>
  394. <tbody>
  395. <tr>
  396. <td><a class="xref" href="Terminal.Gui.Point.html">Point</a></td>
  397. <td></td>
  398. </tr>
  399. </tbody>
  400. </table>
  401. <h5 id="Terminal_Gui_Rect_Location_remarks">Remarks</h5>
  402. <div class="markdown level1 remarks">
  403. The Location of the top-left corner of the Rectangle.
  404. </div>
  405. <a id="Terminal_Gui_Rect_Right_" data-uid="Terminal.Gui.Rect.Right*"></a>
  406. <h4 id="Terminal_Gui_Rect_Right" data-uid="Terminal.Gui.Rect.Right">Right</h4>
  407. <div class="markdown level1 summary">
  408. Right Property
  409. </div>
  410. <div class="markdown level1 conceptual"></div>
  411. <h5 class="decalaration">Declaration</h5>
  412. <div class="codewrapper">
  413. <pre><code class="lang-csharp hljs">public int Right { get; }</code></pre>
  414. </div>
  415. <h5 class="propertyValue">Property Value</h5>
  416. <table class="table table-bordered table-striped table-condensed">
  417. <thead>
  418. <tr>
  419. <th>Type</th>
  420. <th>Description</th>
  421. </tr>
  422. </thead>
  423. <tbody>
  424. <tr>
  425. <td><span class="xref">System.Int32</span></td>
  426. <td></td>
  427. </tr>
  428. </tbody>
  429. </table>
  430. <h5 id="Terminal_Gui_Rect_Right_remarks">Remarks</h5>
  431. <div class="markdown level1 remarks">
  432. The X coordinate of the right edge of the Rectangle.
  433. Read only.
  434. </div>
  435. <a id="Terminal_Gui_Rect_Size_" data-uid="Terminal.Gui.Rect.Size*"></a>
  436. <h4 id="Terminal_Gui_Rect_Size" data-uid="Terminal.Gui.Rect.Size">Size</h4>
  437. <div class="markdown level1 summary">
  438. Size Property
  439. </div>
  440. <div class="markdown level1 conceptual"></div>
  441. <h5 class="decalaration">Declaration</h5>
  442. <div class="codewrapper">
  443. <pre><code class="lang-csharp hljs">public Size Size { get; set; }</code></pre>
  444. </div>
  445. <h5 class="propertyValue">Property Value</h5>
  446. <table class="table table-bordered table-striped table-condensed">
  447. <thead>
  448. <tr>
  449. <th>Type</th>
  450. <th>Description</th>
  451. </tr>
  452. </thead>
  453. <tbody>
  454. <tr>
  455. <td><a class="xref" href="Terminal.Gui.Size.html">Size</a></td>
  456. <td></td>
  457. </tr>
  458. </tbody>
  459. </table>
  460. <h5 id="Terminal_Gui_Rect_Size_remarks">Remarks</h5>
  461. <div class="markdown level1 remarks">
  462. The Size of the Rectangle.
  463. </div>
  464. <a id="Terminal_Gui_Rect_Top_" data-uid="Terminal.Gui.Rect.Top*"></a>
  465. <h4 id="Terminal_Gui_Rect_Top" data-uid="Terminal.Gui.Rect.Top">Top</h4>
  466. <div class="markdown level1 summary">
  467. Top Property
  468. </div>
  469. <div class="markdown level1 conceptual"></div>
  470. <h5 class="decalaration">Declaration</h5>
  471. <div class="codewrapper">
  472. <pre><code class="lang-csharp hljs">public int Top { get; }</code></pre>
  473. </div>
  474. <h5 class="propertyValue">Property Value</h5>
  475. <table class="table table-bordered table-striped table-condensed">
  476. <thead>
  477. <tr>
  478. <th>Type</th>
  479. <th>Description</th>
  480. </tr>
  481. </thead>
  482. <tbody>
  483. <tr>
  484. <td><span class="xref">System.Int32</span></td>
  485. <td></td>
  486. </tr>
  487. </tbody>
  488. </table>
  489. <h5 id="Terminal_Gui_Rect_Top_remarks">Remarks</h5>
  490. <div class="markdown level1 remarks">
  491. The Y coordinate of the top edge of the Rectangle.
  492. Read only.
  493. </div>
  494. <a id="Terminal_Gui_Rect_Width_" data-uid="Terminal.Gui.Rect.Width*"></a>
  495. <h4 id="Terminal_Gui_Rect_Width" data-uid="Terminal.Gui.Rect.Width">Width</h4>
  496. <div class="markdown level1 summary">
  497. Gets or sets the width of this Rect structure.
  498. </div>
  499. <div class="markdown level1 conceptual"></div>
  500. <h5 class="decalaration">Declaration</h5>
  501. <div class="codewrapper">
  502. <pre><code class="lang-csharp hljs">public int Width { get; set; }</code></pre>
  503. </div>
  504. <h5 class="propertyValue">Property Value</h5>
  505. <table class="table table-bordered table-striped table-condensed">
  506. <thead>
  507. <tr>
  508. <th>Type</th>
  509. <th>Description</th>
  510. </tr>
  511. </thead>
  512. <tbody>
  513. <tr>
  514. <td><span class="xref">System.Int32</span></td>
  515. <td></td>
  516. </tr>
  517. </tbody>
  518. </table>
  519. <h3 id="methods">Methods
  520. </h3>
  521. <a id="Terminal_Gui_Rect_Contains_" data-uid="Terminal.Gui.Rect.Contains*"></a>
  522. <h4 id="Terminal_Gui_Rect_Contains_System_Int32_System_Int32_" data-uid="Terminal.Gui.Rect.Contains(System.Int32,System.Int32)">Contains(Int32, Int32)</h4>
  523. <div class="markdown level1 summary">
  524. Contains Method
  525. </div>
  526. <div class="markdown level1 conceptual"></div>
  527. <h5 class="decalaration">Declaration</h5>
  528. <div class="codewrapper">
  529. <pre><code class="lang-csharp hljs">public bool Contains(int x, int y)</code></pre>
  530. </div>
  531. <h5 class="parameters">Parameters</h5>
  532. <table class="table table-bordered table-striped table-condensed">
  533. <thead>
  534. <tr>
  535. <th>Type</th>
  536. <th>Name</th>
  537. <th>Description</th>
  538. </tr>
  539. </thead>
  540. <tbody>
  541. <tr>
  542. <td><span class="xref">System.Int32</span></td>
  543. <td><span class="parametername">x</span></td>
  544. <td></td>
  545. </tr>
  546. <tr>
  547. <td><span class="xref">System.Int32</span></td>
  548. <td><span class="parametername">y</span></td>
  549. <td></td>
  550. </tr>
  551. </tbody>
  552. </table>
  553. <h5 class="returns">Returns</h5>
  554. <table class="table table-bordered table-striped table-condensed">
  555. <thead>
  556. <tr>
  557. <th>Type</th>
  558. <th>Description</th>
  559. </tr>
  560. </thead>
  561. <tbody>
  562. <tr>
  563. <td><span class="xref">System.Boolean</span></td>
  564. <td></td>
  565. </tr>
  566. </tbody>
  567. </table>
  568. <h5 id="Terminal_Gui_Rect_Contains_System_Int32_System_Int32__remarks">Remarks</h5>
  569. <div class="markdown level1 remarks">
  570. Checks if an x,y coordinate lies within this Rectangle.
  571. </div>
  572. <a id="Terminal_Gui_Rect_Contains_" data-uid="Terminal.Gui.Rect.Contains*"></a>
  573. <h4 id="Terminal_Gui_Rect_Contains_Terminal_Gui_Point_" data-uid="Terminal.Gui.Rect.Contains(Terminal.Gui.Point)">Contains(Point)</h4>
  574. <div class="markdown level1 summary">
  575. Contains Method
  576. </div>
  577. <div class="markdown level1 conceptual"></div>
  578. <h5 class="decalaration">Declaration</h5>
  579. <div class="codewrapper">
  580. <pre><code class="lang-csharp hljs">public bool Contains(Point pt)</code></pre>
  581. </div>
  582. <h5 class="parameters">Parameters</h5>
  583. <table class="table table-bordered table-striped table-condensed">
  584. <thead>
  585. <tr>
  586. <th>Type</th>
  587. <th>Name</th>
  588. <th>Description</th>
  589. </tr>
  590. </thead>
  591. <tbody>
  592. <tr>
  593. <td><a class="xref" href="Terminal.Gui.Point.html">Point</a></td>
  594. <td><span class="parametername">pt</span></td>
  595. <td></td>
  596. </tr>
  597. </tbody>
  598. </table>
  599. <h5 class="returns">Returns</h5>
  600. <table class="table table-bordered table-striped table-condensed">
  601. <thead>
  602. <tr>
  603. <th>Type</th>
  604. <th>Description</th>
  605. </tr>
  606. </thead>
  607. <tbody>
  608. <tr>
  609. <td><span class="xref">System.Boolean</span></td>
  610. <td></td>
  611. </tr>
  612. </tbody>
  613. </table>
  614. <h5 id="Terminal_Gui_Rect_Contains_Terminal_Gui_Point__remarks">Remarks</h5>
  615. <div class="markdown level1 remarks">
  616. Checks if a Point lies within this Rectangle.
  617. </div>
  618. <a id="Terminal_Gui_Rect_Contains_" data-uid="Terminal.Gui.Rect.Contains*"></a>
  619. <h4 id="Terminal_Gui_Rect_Contains_Terminal_Gui_Rect_" data-uid="Terminal.Gui.Rect.Contains(Terminal.Gui.Rect)">Contains(Rect)</h4>
  620. <div class="markdown level1 summary">
  621. Contains Method
  622. </div>
  623. <div class="markdown level1 conceptual"></div>
  624. <h5 class="decalaration">Declaration</h5>
  625. <div class="codewrapper">
  626. <pre><code class="lang-csharp hljs">public bool Contains(Rect rect)</code></pre>
  627. </div>
  628. <h5 class="parameters">Parameters</h5>
  629. <table class="table table-bordered table-striped table-condensed">
  630. <thead>
  631. <tr>
  632. <th>Type</th>
  633. <th>Name</th>
  634. <th>Description</th>
  635. </tr>
  636. </thead>
  637. <tbody>
  638. <tr>
  639. <td><a class="xref" href="Terminal.Gui.Rect.html">Rect</a></td>
  640. <td><span class="parametername">rect</span></td>
  641. <td></td>
  642. </tr>
  643. </tbody>
  644. </table>
  645. <h5 class="returns">Returns</h5>
  646. <table class="table table-bordered table-striped table-condensed">
  647. <thead>
  648. <tr>
  649. <th>Type</th>
  650. <th>Description</th>
  651. </tr>
  652. </thead>
  653. <tbody>
  654. <tr>
  655. <td><span class="xref">System.Boolean</span></td>
  656. <td></td>
  657. </tr>
  658. </tbody>
  659. </table>
  660. <h5 id="Terminal_Gui_Rect_Contains_Terminal_Gui_Rect__remarks">Remarks</h5>
  661. <div class="markdown level1 remarks">
  662. Checks if a Rectangle lies entirely within this
  663. Rectangle.
  664. </div>
  665. <a id="Terminal_Gui_Rect_Equals_" data-uid="Terminal.Gui.Rect.Equals*"></a>
  666. <h4 id="Terminal_Gui_Rect_Equals_System_Object_" data-uid="Terminal.Gui.Rect.Equals(System.Object)">Equals(Object)</h4>
  667. <div class="markdown level1 summary">
  668. Equals Method
  669. </div>
  670. <div class="markdown level1 conceptual"></div>
  671. <h5 class="decalaration">Declaration</h5>
  672. <div class="codewrapper">
  673. <pre><code class="lang-csharp hljs">public override bool Equals(object obj)</code></pre>
  674. </div>
  675. <h5 class="parameters">Parameters</h5>
  676. <table class="table table-bordered table-striped table-condensed">
  677. <thead>
  678. <tr>
  679. <th>Type</th>
  680. <th>Name</th>
  681. <th>Description</th>
  682. </tr>
  683. </thead>
  684. <tbody>
  685. <tr>
  686. <td><span class="xref">System.Object</span></td>
  687. <td><span class="parametername">obj</span></td>
  688. <td></td>
  689. </tr>
  690. </tbody>
  691. </table>
  692. <h5 class="returns">Returns</h5>
  693. <table class="table table-bordered table-striped table-condensed">
  694. <thead>
  695. <tr>
  696. <th>Type</th>
  697. <th>Description</th>
  698. </tr>
  699. </thead>
  700. <tbody>
  701. <tr>
  702. <td><span class="xref">System.Boolean</span></td>
  703. <td></td>
  704. </tr>
  705. </tbody>
  706. </table>
  707. <h5 class="overrides">Overrides</h5>
  708. <div><span class="xref">System.ValueType.Equals(System.Object)</span></div>
  709. <h5 id="Terminal_Gui_Rect_Equals_System_Object__remarks">Remarks</h5>
  710. <div class="markdown level1 remarks">
  711. Checks equivalence of this Rectangle and another object.
  712. </div>
  713. <a id="Terminal_Gui_Rect_FromLTRB_" data-uid="Terminal.Gui.Rect.FromLTRB*"></a>
  714. <h4 id="Terminal_Gui_Rect_FromLTRB_System_Int32_System_Int32_System_Int32_System_Int32_" data-uid="Terminal.Gui.Rect.FromLTRB(System.Int32,System.Int32,System.Int32,System.Int32)">FromLTRB(Int32, Int32, Int32, Int32)</h4>
  715. <div class="markdown level1 summary">
  716. FromLTRB Shared Method
  717. </div>
  718. <div class="markdown level1 conceptual"></div>
  719. <h5 class="decalaration">Declaration</h5>
  720. <div class="codewrapper">
  721. <pre><code class="lang-csharp hljs">public static Rect FromLTRB(int left, int top, int right, int bottom)</code></pre>
  722. </div>
  723. <h5 class="parameters">Parameters</h5>
  724. <table class="table table-bordered table-striped table-condensed">
  725. <thead>
  726. <tr>
  727. <th>Type</th>
  728. <th>Name</th>
  729. <th>Description</th>
  730. </tr>
  731. </thead>
  732. <tbody>
  733. <tr>
  734. <td><span class="xref">System.Int32</span></td>
  735. <td><span class="parametername">left</span></td>
  736. <td></td>
  737. </tr>
  738. <tr>
  739. <td><span class="xref">System.Int32</span></td>
  740. <td><span class="parametername">top</span></td>
  741. <td></td>
  742. </tr>
  743. <tr>
  744. <td><span class="xref">System.Int32</span></td>
  745. <td><span class="parametername">right</span></td>
  746. <td></td>
  747. </tr>
  748. <tr>
  749. <td><span class="xref">System.Int32</span></td>
  750. <td><span class="parametername">bottom</span></td>
  751. <td></td>
  752. </tr>
  753. </tbody>
  754. </table>
  755. <h5 class="returns">Returns</h5>
  756. <table class="table table-bordered table-striped table-condensed">
  757. <thead>
  758. <tr>
  759. <th>Type</th>
  760. <th>Description</th>
  761. </tr>
  762. </thead>
  763. <tbody>
  764. <tr>
  765. <td><a class="xref" href="Terminal.Gui.Rect.html">Rect</a></td>
  766. <td></td>
  767. </tr>
  768. </tbody>
  769. </table>
  770. <h5 id="Terminal_Gui_Rect_FromLTRB_System_Int32_System_Int32_System_Int32_System_Int32__remarks">Remarks</h5>
  771. <div class="markdown level1 remarks">
  772. Produces a Rectangle structure from left, top, right
  773. and bottom coordinates.
  774. </div>
  775. <a id="Terminal_Gui_Rect_GetHashCode_" data-uid="Terminal.Gui.Rect.GetHashCode*"></a>
  776. <h4 id="Terminal_Gui_Rect_GetHashCode" data-uid="Terminal.Gui.Rect.GetHashCode">GetHashCode()</h4>
  777. <div class="markdown level1 summary">
  778. GetHashCode Method
  779. </div>
  780. <div class="markdown level1 conceptual"></div>
  781. <h5 class="decalaration">Declaration</h5>
  782. <div class="codewrapper">
  783. <pre><code class="lang-csharp hljs">public override int GetHashCode()</code></pre>
  784. </div>
  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><span class="xref">System.Int32</span></td>
  796. <td></td>
  797. </tr>
  798. </tbody>
  799. </table>
  800. <h5 class="overrides">Overrides</h5>
  801. <div><span class="xref">System.ValueType.GetHashCode()</span></div>
  802. <h5 id="Terminal_Gui_Rect_GetHashCode_remarks">Remarks</h5>
  803. <div class="markdown level1 remarks">
  804. Calculates a hashing value.
  805. </div>
  806. <a id="Terminal_Gui_Rect_Inflate_" data-uid="Terminal.Gui.Rect.Inflate*"></a>
  807. <h4 id="Terminal_Gui_Rect_Inflate_System_Int32_System_Int32_" data-uid="Terminal.Gui.Rect.Inflate(System.Int32,System.Int32)">Inflate(Int32, Int32)</h4>
  808. <div class="markdown level1 summary">
  809. Inflate Method
  810. </div>
  811. <div class="markdown level1 conceptual"></div>
  812. <h5 class="decalaration">Declaration</h5>
  813. <div class="codewrapper">
  814. <pre><code class="lang-csharp hljs">public void Inflate(int width, int height)</code></pre>
  815. </div>
  816. <h5 class="parameters">Parameters</h5>
  817. <table class="table table-bordered table-striped table-condensed">
  818. <thead>
  819. <tr>
  820. <th>Type</th>
  821. <th>Name</th>
  822. <th>Description</th>
  823. </tr>
  824. </thead>
  825. <tbody>
  826. <tr>
  827. <td><span class="xref">System.Int32</span></td>
  828. <td><span class="parametername">width</span></td>
  829. <td></td>
  830. </tr>
  831. <tr>
  832. <td><span class="xref">System.Int32</span></td>
  833. <td><span class="parametername">height</span></td>
  834. <td></td>
  835. </tr>
  836. </tbody>
  837. </table>
  838. <h5 id="Terminal_Gui_Rect_Inflate_System_Int32_System_Int32__remarks">Remarks</h5>
  839. <div class="markdown level1 remarks">
  840. Inflates the Rectangle by a specified width and height.
  841. </div>
  842. <a id="Terminal_Gui_Rect_Inflate_" data-uid="Terminal.Gui.Rect.Inflate*"></a>
  843. <h4 id="Terminal_Gui_Rect_Inflate_Terminal_Gui_Rect_System_Int32_System_Int32_" data-uid="Terminal.Gui.Rect.Inflate(Terminal.Gui.Rect,System.Int32,System.Int32)">Inflate(Rect, Int32, Int32)</h4>
  844. <div class="markdown level1 summary">
  845. Inflate Shared Method
  846. </div>
  847. <div class="markdown level1 conceptual"></div>
  848. <h5 class="decalaration">Declaration</h5>
  849. <div class="codewrapper">
  850. <pre><code class="lang-csharp hljs">public static Rect Inflate(Rect rect, int x, int y)</code></pre>
  851. </div>
  852. <h5 class="parameters">Parameters</h5>
  853. <table class="table table-bordered table-striped table-condensed">
  854. <thead>
  855. <tr>
  856. <th>Type</th>
  857. <th>Name</th>
  858. <th>Description</th>
  859. </tr>
  860. </thead>
  861. <tbody>
  862. <tr>
  863. <td><a class="xref" href="Terminal.Gui.Rect.html">Rect</a></td>
  864. <td><span class="parametername">rect</span></td>
  865. <td></td>
  866. </tr>
  867. <tr>
  868. <td><span class="xref">System.Int32</span></td>
  869. <td><span class="parametername">x</span></td>
  870. <td></td>
  871. </tr>
  872. <tr>
  873. <td><span class="xref">System.Int32</span></td>
  874. <td><span class="parametername">y</span></td>
  875. <td></td>
  876. </tr>
  877. </tbody>
  878. </table>
  879. <h5 class="returns">Returns</h5>
  880. <table class="table table-bordered table-striped table-condensed">
  881. <thead>
  882. <tr>
  883. <th>Type</th>
  884. <th>Description</th>
  885. </tr>
  886. </thead>
  887. <tbody>
  888. <tr>
  889. <td><a class="xref" href="Terminal.Gui.Rect.html">Rect</a></td>
  890. <td></td>
  891. </tr>
  892. </tbody>
  893. </table>
  894. <h5 id="Terminal_Gui_Rect_Inflate_Terminal_Gui_Rect_System_Int32_System_Int32__remarks">Remarks</h5>
  895. <div class="markdown level1 remarks">
  896. Produces a new Rectangle by inflating an existing
  897. Rectangle by the specified coordinate values.
  898. </div>
  899. <a id="Terminal_Gui_Rect_Inflate_" data-uid="Terminal.Gui.Rect.Inflate*"></a>
  900. <h4 id="Terminal_Gui_Rect_Inflate_Terminal_Gui_Size_" data-uid="Terminal.Gui.Rect.Inflate(Terminal.Gui.Size)">Inflate(Size)</h4>
  901. <div class="markdown level1 summary">
  902. Inflate Method
  903. </div>
  904. <div class="markdown level1 conceptual"></div>
  905. <h5 class="decalaration">Declaration</h5>
  906. <div class="codewrapper">
  907. <pre><code class="lang-csharp hljs">public void Inflate(Size size)</code></pre>
  908. </div>
  909. <h5 class="parameters">Parameters</h5>
  910. <table class="table table-bordered table-striped table-condensed">
  911. <thead>
  912. <tr>
  913. <th>Type</th>
  914. <th>Name</th>
  915. <th>Description</th>
  916. </tr>
  917. </thead>
  918. <tbody>
  919. <tr>
  920. <td><a class="xref" href="Terminal.Gui.Size.html">Size</a></td>
  921. <td><span class="parametername">size</span></td>
  922. <td></td>
  923. </tr>
  924. </tbody>
  925. </table>
  926. <h5 id="Terminal_Gui_Rect_Inflate_Terminal_Gui_Size__remarks">Remarks</h5>
  927. <div class="markdown level1 remarks">
  928. Inflates the Rectangle by a specified Size.
  929. </div>
  930. <a id="Terminal_Gui_Rect_Intersect_" data-uid="Terminal.Gui.Rect.Intersect*"></a>
  931. <h4 id="Terminal_Gui_Rect_Intersect_Terminal_Gui_Rect_" data-uid="Terminal.Gui.Rect.Intersect(Terminal.Gui.Rect)">Intersect(Rect)</h4>
  932. <div class="markdown level1 summary">
  933. Intersect Method
  934. </div>
  935. <div class="markdown level1 conceptual"></div>
  936. <h5 class="decalaration">Declaration</h5>
  937. <div class="codewrapper">
  938. <pre><code class="lang-csharp hljs">public void Intersect(Rect rect)</code></pre>
  939. </div>
  940. <h5 class="parameters">Parameters</h5>
  941. <table class="table table-bordered table-striped table-condensed">
  942. <thead>
  943. <tr>
  944. <th>Type</th>
  945. <th>Name</th>
  946. <th>Description</th>
  947. </tr>
  948. </thead>
  949. <tbody>
  950. <tr>
  951. <td><a class="xref" href="Terminal.Gui.Rect.html">Rect</a></td>
  952. <td><span class="parametername">rect</span></td>
  953. <td></td>
  954. </tr>
  955. </tbody>
  956. </table>
  957. <h5 id="Terminal_Gui_Rect_Intersect_Terminal_Gui_Rect__remarks">Remarks</h5>
  958. <div class="markdown level1 remarks">
  959. Replaces the Rectangle with the intersection of itself
  960. and another Rectangle.
  961. </div>
  962. <a id="Terminal_Gui_Rect_Intersect_" data-uid="Terminal.Gui.Rect.Intersect*"></a>
  963. <h4 id="Terminal_Gui_Rect_Intersect_Terminal_Gui_Rect_Terminal_Gui_Rect_" data-uid="Terminal.Gui.Rect.Intersect(Terminal.Gui.Rect,Terminal.Gui.Rect)">Intersect(Rect, Rect)</h4>
  964. <div class="markdown level1 summary">
  965. Intersect Shared Method
  966. </div>
  967. <div class="markdown level1 conceptual"></div>
  968. <h5 class="decalaration">Declaration</h5>
  969. <div class="codewrapper">
  970. <pre><code class="lang-csharp hljs">public static Rect Intersect(Rect a, Rect b)</code></pre>
  971. </div>
  972. <h5 class="parameters">Parameters</h5>
  973. <table class="table table-bordered table-striped table-condensed">
  974. <thead>
  975. <tr>
  976. <th>Type</th>
  977. <th>Name</th>
  978. <th>Description</th>
  979. </tr>
  980. </thead>
  981. <tbody>
  982. <tr>
  983. <td><a class="xref" href="Terminal.Gui.Rect.html">Rect</a></td>
  984. <td><span class="parametername">a</span></td>
  985. <td></td>
  986. </tr>
  987. <tr>
  988. <td><a class="xref" href="Terminal.Gui.Rect.html">Rect</a></td>
  989. <td><span class="parametername">b</span></td>
  990. <td></td>
  991. </tr>
  992. </tbody>
  993. </table>
  994. <h5 class="returns">Returns</h5>
  995. <table class="table table-bordered table-striped table-condensed">
  996. <thead>
  997. <tr>
  998. <th>Type</th>
  999. <th>Description</th>
  1000. </tr>
  1001. </thead>
  1002. <tbody>
  1003. <tr>
  1004. <td><a class="xref" href="Terminal.Gui.Rect.html">Rect</a></td>
  1005. <td></td>
  1006. </tr>
  1007. </tbody>
  1008. </table>
  1009. <h5 id="Terminal_Gui_Rect_Intersect_Terminal_Gui_Rect_Terminal_Gui_Rect__remarks">Remarks</h5>
  1010. <div class="markdown level1 remarks">
  1011. Produces a new Rectangle by intersecting 2 existing
  1012. Rectangles. Returns null if there is no intersection.
  1013. </div>
  1014. <a id="Terminal_Gui_Rect_IntersectsWith_" data-uid="Terminal.Gui.Rect.IntersectsWith*"></a>
  1015. <h4 id="Terminal_Gui_Rect_IntersectsWith_Terminal_Gui_Rect_" data-uid="Terminal.Gui.Rect.IntersectsWith(Terminal.Gui.Rect)">IntersectsWith(Rect)</h4>
  1016. <div class="markdown level1 summary">
  1017. IntersectsWith Method
  1018. </div>
  1019. <div class="markdown level1 conceptual"></div>
  1020. <h5 class="decalaration">Declaration</h5>
  1021. <div class="codewrapper">
  1022. <pre><code class="lang-csharp hljs">public bool IntersectsWith(Rect rect)</code></pre>
  1023. </div>
  1024. <h5 class="parameters">Parameters</h5>
  1025. <table class="table table-bordered table-striped table-condensed">
  1026. <thead>
  1027. <tr>
  1028. <th>Type</th>
  1029. <th>Name</th>
  1030. <th>Description</th>
  1031. </tr>
  1032. </thead>
  1033. <tbody>
  1034. <tr>
  1035. <td><a class="xref" href="Terminal.Gui.Rect.html">Rect</a></td>
  1036. <td><span class="parametername">rect</span></td>
  1037. <td></td>
  1038. </tr>
  1039. </tbody>
  1040. </table>
  1041. <h5 class="returns">Returns</h5>
  1042. <table class="table table-bordered table-striped table-condensed">
  1043. <thead>
  1044. <tr>
  1045. <th>Type</th>
  1046. <th>Description</th>
  1047. </tr>
  1048. </thead>
  1049. <tbody>
  1050. <tr>
  1051. <td><span class="xref">System.Boolean</span></td>
  1052. <td></td>
  1053. </tr>
  1054. </tbody>
  1055. </table>
  1056. <h5 id="Terminal_Gui_Rect_IntersectsWith_Terminal_Gui_Rect__remarks">Remarks</h5>
  1057. <div class="markdown level1 remarks">
  1058. Checks if a Rectangle intersects with this one.
  1059. </div>
  1060. <a id="Terminal_Gui_Rect_Offset_" data-uid="Terminal.Gui.Rect.Offset*"></a>
  1061. <h4 id="Terminal_Gui_Rect_Offset_System_Int32_System_Int32_" data-uid="Terminal.Gui.Rect.Offset(System.Int32,System.Int32)">Offset(Int32, Int32)</h4>
  1062. <div class="markdown level1 summary">
  1063. Offset Method
  1064. </div>
  1065. <div class="markdown level1 conceptual"></div>
  1066. <h5 class="decalaration">Declaration</h5>
  1067. <div class="codewrapper">
  1068. <pre><code class="lang-csharp hljs">public void Offset(int x, int y)</code></pre>
  1069. </div>
  1070. <h5 class="parameters">Parameters</h5>
  1071. <table class="table table-bordered table-striped table-condensed">
  1072. <thead>
  1073. <tr>
  1074. <th>Type</th>
  1075. <th>Name</th>
  1076. <th>Description</th>
  1077. </tr>
  1078. </thead>
  1079. <tbody>
  1080. <tr>
  1081. <td><span class="xref">System.Int32</span></td>
  1082. <td><span class="parametername">x</span></td>
  1083. <td></td>
  1084. </tr>
  1085. <tr>
  1086. <td><span class="xref">System.Int32</span></td>
  1087. <td><span class="parametername">y</span></td>
  1088. <td></td>
  1089. </tr>
  1090. </tbody>
  1091. </table>
  1092. <h5 id="Terminal_Gui_Rect_Offset_System_Int32_System_Int32__remarks">Remarks</h5>
  1093. <div class="markdown level1 remarks">
  1094. Moves the Rectangle a specified distance.
  1095. </div>
  1096. <a id="Terminal_Gui_Rect_Offset_" data-uid="Terminal.Gui.Rect.Offset*"></a>
  1097. <h4 id="Terminal_Gui_Rect_Offset_Terminal_Gui_Point_" data-uid="Terminal.Gui.Rect.Offset(Terminal.Gui.Point)">Offset(Point)</h4>
  1098. <div class="markdown level1 summary">
  1099. Offset Method
  1100. </div>
  1101. <div class="markdown level1 conceptual"></div>
  1102. <h5 class="decalaration">Declaration</h5>
  1103. <div class="codewrapper">
  1104. <pre><code class="lang-csharp hljs">public void Offset(Point pos)</code></pre>
  1105. </div>
  1106. <h5 class="parameters">Parameters</h5>
  1107. <table class="table table-bordered table-striped table-condensed">
  1108. <thead>
  1109. <tr>
  1110. <th>Type</th>
  1111. <th>Name</th>
  1112. <th>Description</th>
  1113. </tr>
  1114. </thead>
  1115. <tbody>
  1116. <tr>
  1117. <td><a class="xref" href="Terminal.Gui.Point.html">Point</a></td>
  1118. <td><span class="parametername">pos</span></td>
  1119. <td></td>
  1120. </tr>
  1121. </tbody>
  1122. </table>
  1123. <h5 id="Terminal_Gui_Rect_Offset_Terminal_Gui_Point__remarks">Remarks</h5>
  1124. <div class="markdown level1 remarks">
  1125. Moves the Rectangle a specified distance.
  1126. </div>
  1127. <a id="Terminal_Gui_Rect_ToString_" data-uid="Terminal.Gui.Rect.ToString*"></a>
  1128. <h4 id="Terminal_Gui_Rect_ToString" data-uid="Terminal.Gui.Rect.ToString">ToString()</h4>
  1129. <div class="markdown level1 summary">
  1130. ToString Method
  1131. </div>
  1132. <div class="markdown level1 conceptual"></div>
  1133. <h5 class="decalaration">Declaration</h5>
  1134. <div class="codewrapper">
  1135. <pre><code class="lang-csharp hljs">public override string ToString()</code></pre>
  1136. </div>
  1137. <h5 class="returns">Returns</h5>
  1138. <table class="table table-bordered table-striped table-condensed">
  1139. <thead>
  1140. <tr>
  1141. <th>Type</th>
  1142. <th>Description</th>
  1143. </tr>
  1144. </thead>
  1145. <tbody>
  1146. <tr>
  1147. <td><span class="xref">System.String</span></td>
  1148. <td></td>
  1149. </tr>
  1150. </tbody>
  1151. </table>
  1152. <h5 class="overrides">Overrides</h5>
  1153. <div><span class="xref">System.ValueType.ToString()</span></div>
  1154. <h5 id="Terminal_Gui_Rect_ToString_remarks">Remarks</h5>
  1155. <div class="markdown level1 remarks">
  1156. Formats the Rectangle as a string in (x,y,w,h) notation.
  1157. </div>
  1158. <a id="Terminal_Gui_Rect_Union_" data-uid="Terminal.Gui.Rect.Union*"></a>
  1159. <h4 id="Terminal_Gui_Rect_Union_Terminal_Gui_Rect_Terminal_Gui_Rect_" data-uid="Terminal.Gui.Rect.Union(Terminal.Gui.Rect,Terminal.Gui.Rect)">Union(Rect, Rect)</h4>
  1160. <div class="markdown level1 summary">
  1161. Union Shared Method
  1162. </div>
  1163. <div class="markdown level1 conceptual"></div>
  1164. <h5 class="decalaration">Declaration</h5>
  1165. <div class="codewrapper">
  1166. <pre><code class="lang-csharp hljs">public static Rect Union(Rect a, Rect b)</code></pre>
  1167. </div>
  1168. <h5 class="parameters">Parameters</h5>
  1169. <table class="table table-bordered table-striped table-condensed">
  1170. <thead>
  1171. <tr>
  1172. <th>Type</th>
  1173. <th>Name</th>
  1174. <th>Description</th>
  1175. </tr>
  1176. </thead>
  1177. <tbody>
  1178. <tr>
  1179. <td><a class="xref" href="Terminal.Gui.Rect.html">Rect</a></td>
  1180. <td><span class="parametername">a</span></td>
  1181. <td></td>
  1182. </tr>
  1183. <tr>
  1184. <td><a class="xref" href="Terminal.Gui.Rect.html">Rect</a></td>
  1185. <td><span class="parametername">b</span></td>
  1186. <td></td>
  1187. </tr>
  1188. </tbody>
  1189. </table>
  1190. <h5 class="returns">Returns</h5>
  1191. <table class="table table-bordered table-striped table-condensed">
  1192. <thead>
  1193. <tr>
  1194. <th>Type</th>
  1195. <th>Description</th>
  1196. </tr>
  1197. </thead>
  1198. <tbody>
  1199. <tr>
  1200. <td><a class="xref" href="Terminal.Gui.Rect.html">Rect</a></td>
  1201. <td></td>
  1202. </tr>
  1203. </tbody>
  1204. </table>
  1205. <h5 id="Terminal_Gui_Rect_Union_Terminal_Gui_Rect_Terminal_Gui_Rect__remarks">Remarks</h5>
  1206. <div class="markdown level1 remarks">
  1207. Produces a new Rectangle from the union of 2 existing
  1208. Rectangles.
  1209. </div>
  1210. <h3 id="operators">Operators
  1211. </h3>
  1212. <a id="Terminal_Gui_Rect_op_Equality_" data-uid="Terminal.Gui.Rect.op_Equality*"></a>
  1213. <h4 id="Terminal_Gui_Rect_op_Equality_Terminal_Gui_Rect_Terminal_Gui_Rect_" data-uid="Terminal.Gui.Rect.op_Equality(Terminal.Gui.Rect,Terminal.Gui.Rect)">Equality(Rect, Rect)</h4>
  1214. <div class="markdown level1 summary">
  1215. Equality Operator
  1216. </div>
  1217. <div class="markdown level1 conceptual"></div>
  1218. <h5 class="decalaration">Declaration</h5>
  1219. <div class="codewrapper">
  1220. <pre><code class="lang-csharp hljs">public static bool operator ==(Rect left, Rect right)</code></pre>
  1221. </div>
  1222. <h5 class="parameters">Parameters</h5>
  1223. <table class="table table-bordered table-striped table-condensed">
  1224. <thead>
  1225. <tr>
  1226. <th>Type</th>
  1227. <th>Name</th>
  1228. <th>Description</th>
  1229. </tr>
  1230. </thead>
  1231. <tbody>
  1232. <tr>
  1233. <td><a class="xref" href="Terminal.Gui.Rect.html">Rect</a></td>
  1234. <td><span class="parametername">left</span></td>
  1235. <td></td>
  1236. </tr>
  1237. <tr>
  1238. <td><a class="xref" href="Terminal.Gui.Rect.html">Rect</a></td>
  1239. <td><span class="parametername">right</span></td>
  1240. <td></td>
  1241. </tr>
  1242. </tbody>
  1243. </table>
  1244. <h5 class="returns">Returns</h5>
  1245. <table class="table table-bordered table-striped table-condensed">
  1246. <thead>
  1247. <tr>
  1248. <th>Type</th>
  1249. <th>Description</th>
  1250. </tr>
  1251. </thead>
  1252. <tbody>
  1253. <tr>
  1254. <td><span class="xref">System.Boolean</span></td>
  1255. <td></td>
  1256. </tr>
  1257. </tbody>
  1258. </table>
  1259. <h5 id="Terminal_Gui_Rect_op_Equality_Terminal_Gui_Rect_Terminal_Gui_Rect__remarks">Remarks</h5>
  1260. <div class="markdown level1 remarks">
  1261. Compares two Rectangle objects. The return value is
  1262. based on the equivalence of the Location and Size
  1263. properties of the two Rectangles.
  1264. </div>
  1265. <a id="Terminal_Gui_Rect_op_Inequality_" data-uid="Terminal.Gui.Rect.op_Inequality*"></a>
  1266. <h4 id="Terminal_Gui_Rect_op_Inequality_Terminal_Gui_Rect_Terminal_Gui_Rect_" data-uid="Terminal.Gui.Rect.op_Inequality(Terminal.Gui.Rect,Terminal.Gui.Rect)">Inequality(Rect, Rect)</h4>
  1267. <div class="markdown level1 summary">
  1268. Inequality Operator
  1269. </div>
  1270. <div class="markdown level1 conceptual"></div>
  1271. <h5 class="decalaration">Declaration</h5>
  1272. <div class="codewrapper">
  1273. <pre><code class="lang-csharp hljs">public static bool operator !=(Rect left, Rect right)</code></pre>
  1274. </div>
  1275. <h5 class="parameters">Parameters</h5>
  1276. <table class="table table-bordered table-striped table-condensed">
  1277. <thead>
  1278. <tr>
  1279. <th>Type</th>
  1280. <th>Name</th>
  1281. <th>Description</th>
  1282. </tr>
  1283. </thead>
  1284. <tbody>
  1285. <tr>
  1286. <td><a class="xref" href="Terminal.Gui.Rect.html">Rect</a></td>
  1287. <td><span class="parametername">left</span></td>
  1288. <td></td>
  1289. </tr>
  1290. <tr>
  1291. <td><a class="xref" href="Terminal.Gui.Rect.html">Rect</a></td>
  1292. <td><span class="parametername">right</span></td>
  1293. <td></td>
  1294. </tr>
  1295. </tbody>
  1296. </table>
  1297. <h5 class="returns">Returns</h5>
  1298. <table class="table table-bordered table-striped table-condensed">
  1299. <thead>
  1300. <tr>
  1301. <th>Type</th>
  1302. <th>Description</th>
  1303. </tr>
  1304. </thead>
  1305. <tbody>
  1306. <tr>
  1307. <td><span class="xref">System.Boolean</span></td>
  1308. <td></td>
  1309. </tr>
  1310. </tbody>
  1311. </table>
  1312. <h5 id="Terminal_Gui_Rect_op_Inequality_Terminal_Gui_Rect_Terminal_Gui_Rect__remarks">Remarks</h5>
  1313. <div class="markdown level1 remarks">
  1314. Compares two Rectangle objects. The return value is
  1315. based on the equivalence of the Location and Size
  1316. properties of the two Rectangles.
  1317. </div>
  1318. </article>
  1319. </div>
  1320. <div class="hidden-sm col-md-2" role="complementary">
  1321. <div class="sideaffix">
  1322. <div class="contribution">
  1323. <ul class="nav">
  1324. </ul>
  1325. </div>
  1326. <nav class="bs-docs-sidebar hidden-print hidden-xs hidden-sm affix" id="affix">
  1327. <h5>In This Article</h5>
  1328. <div></div>
  1329. </nav>
  1330. </div>
  1331. </div>
  1332. </div>
  1333. </div>
  1334. <footer>
  1335. <div class="grad-bottom"></div>
  1336. <div class="footer">
  1337. <div class="container">
  1338. <span class="pull-right">
  1339. <a href="#top">Back to top</a>
  1340. </span>
  1341. <span>Generated by <strong>DocFX</strong></span>
  1342. </div>
  1343. </div>
  1344. </footer>
  1345. </div>
  1346. <script type="text/javascript" src="../../styles/docfx.vendor.js"></script>
  1347. <script type="text/javascript" src="../../styles/docfx.js"></script>
  1348. <script type="text/javascript" src="../../styles/main.js"></script>
  1349. </body>
  1350. </html>