Terminal.Gui.Attribute.html 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607
  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 Attribute
  8. </title>
  9. <meta name="viewport" content="width=device-width">
  10. <meta name="title" content="Struct Attribute
  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.Attribute">
  74. <h1 id="Terminal_Gui_Attribute" data-uid="Terminal.Gui.Attribute" class="text-break">Struct Attribute
  75. </h1>
  76. <div class="markdown level0 summary">
  77. Attributes are used as elements that contain both a foreground and a background or platform specific features
  78. </div>
  79. <div class="markdown level0 conceptual"></div>
  80. <h5 id="Terminal_Gui_Attribute_remarks"><strong>Remarks</strong></h5>
  81. <div class="markdown level0 remarks">
  82. <a class="xref" href="Terminal.Gui.Attribute.html">Attribute</a>s are needed to map colors to terminal capabilities that might lack colors, on color
  83. scenarios, they encode both the foreground and the background color and are used in the <a class="xref" href="Terminal.Gui.ColorScheme.html">ColorScheme</a>
  84. class to define color schemes that can be used in your application.
  85. </div>
  86. <div class="inheritedMembers">
  87. <h5>Inherited Members</h5>
  88. <div>
  89. <span class="xref">System.ValueType.Equals(System.Object)</span>
  90. </div>
  91. <div>
  92. <span class="xref">System.ValueType.GetHashCode()</span>
  93. </div>
  94. <div>
  95. <span class="xref">System.ValueType.ToString()</span>
  96. </div>
  97. <div>
  98. <span class="xref">System.Object.Equals(System.Object, System.Object)</span>
  99. </div>
  100. <div>
  101. <span class="xref">System.Object.GetType()</span>
  102. </div>
  103. <div>
  104. <span class="xref">System.Object.ReferenceEquals(System.Object, System.Object)</span>
  105. </div>
  106. </div>
  107. <h6><strong>Namespace</strong>: <a class="xref" href="Terminal.Gui.html">Terminal.Gui</a></h6>
  108. <h6><strong>Assembly</strong>: Terminal.Gui.dll</h6>
  109. <h5 id="Terminal_Gui_Attribute_syntax">Syntax</h5>
  110. <div class="codewrapper">
  111. <pre><code class="lang-csharp hljs">public struct Attribute</code></pre>
  112. </div>
  113. <h3 id="constructors">Constructors
  114. </h3>
  115. <span class="small pull-right mobile-hide">
  116. <span class="divider">|</span>
  117. <a href="https://github.com/gui-cs/Terminal.Gui/new/develop/apidoc/new?filename=Terminal_Gui_Attribute__ctor_System_Int32_.md&amp;value=---%0Auid%3A%20Terminal.Gui.Attribute.%23ctor(System.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>
  118. </span>
  119. <span class="small pull-right mobile-hide">
  120. <a href="tig:tig/gui.cs/blob/main/Terminal.Gui/Core/ConsoleDriver.cs/#L112">View Source</a>
  121. </span>
  122. <a id="Terminal_Gui_Attribute__ctor_" data-uid="Terminal.Gui.Attribute.#ctor*"></a>
  123. <h4 id="Terminal_Gui_Attribute__ctor_System_Int32_" data-uid="Terminal.Gui.Attribute.#ctor(System.Int32)">Attribute(Int32)</h4>
  124. <div class="markdown level1 summary">
  125. Initializes a new instance of the <a class="xref" href="Terminal.Gui.Attribute.html">Attribute</a> struct with only the value passed to
  126. and trying to get the colors if defined.
  127. </div>
  128. <div class="markdown level1 conceptual"></div>
  129. <h5 class="decalaration">Declaration</h5>
  130. <div class="codewrapper">
  131. <pre><code class="lang-csharp hljs">public Attribute(int value)</code></pre>
  132. </div>
  133. <h5 class="parameters">Parameters</h5>
  134. <table class="table table-bordered table-striped table-condensed">
  135. <thead>
  136. <tr>
  137. <th>Type</th>
  138. <th>Name</th>
  139. <th>Description</th>
  140. </tr>
  141. </thead>
  142. <tbody>
  143. <tr>
  144. <td><span class="xref">System.Int32</span></td>
  145. <td><span class="parametername">value</span></td>
  146. <td>Value.</td>
  147. </tr>
  148. </tbody>
  149. </table>
  150. <span class="small pull-right mobile-hide">
  151. <span class="divider">|</span>
  152. <a href="https://github.com/gui-cs/Terminal.Gui/new/develop/apidoc/new?filename=Terminal_Gui_Attribute__ctor_System_Int32_Terminal_Gui_Color_Terminal_Gui_Color_.md&amp;value=---%0Auid%3A%20Terminal.Gui.Attribute.%23ctor(System.Int32%2CTerminal.Gui.Color%2CTerminal.Gui.Color)%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>
  153. </span>
  154. <span class="small pull-right mobile-hide">
  155. <a href="tig:tig/gui.cs/blob/main/Terminal.Gui/Core/ConsoleDriver.cs/#L131">View Source</a>
  156. </span>
  157. <a id="Terminal_Gui_Attribute__ctor_" data-uid="Terminal.Gui.Attribute.#ctor*"></a>
  158. <h4 id="Terminal_Gui_Attribute__ctor_System_Int32_Terminal_Gui_Color_Terminal_Gui_Color_" data-uid="Terminal.Gui.Attribute.#ctor(System.Int32,Terminal.Gui.Color,Terminal.Gui.Color)">Attribute(Int32, Color, Color)</h4>
  159. <div class="markdown level1 summary">
  160. Initializes a new instance of the <a class="xref" href="Terminal.Gui.Attribute.html">Attribute</a> struct.
  161. </div>
  162. <div class="markdown level1 conceptual"></div>
  163. <h5 class="decalaration">Declaration</h5>
  164. <div class="codewrapper">
  165. <pre><code class="lang-csharp hljs">public Attribute(int value, Color foreground, Color background)</code></pre>
  166. </div>
  167. <h5 class="parameters">Parameters</h5>
  168. <table class="table table-bordered table-striped table-condensed">
  169. <thead>
  170. <tr>
  171. <th>Type</th>
  172. <th>Name</th>
  173. <th>Description</th>
  174. </tr>
  175. </thead>
  176. <tbody>
  177. <tr>
  178. <td><span class="xref">System.Int32</span></td>
  179. <td><span class="parametername">value</span></td>
  180. <td>Value.</td>
  181. </tr>
  182. <tr>
  183. <td><a class="xref" href="Terminal.Gui.Color.html">Color</a></td>
  184. <td><span class="parametername">foreground</span></td>
  185. <td>Foreground</td>
  186. </tr>
  187. <tr>
  188. <td><a class="xref" href="Terminal.Gui.Color.html">Color</a></td>
  189. <td><span class="parametername">background</span></td>
  190. <td>Background</td>
  191. </tr>
  192. </tbody>
  193. </table>
  194. <span class="small pull-right mobile-hide">
  195. <span class="divider">|</span>
  196. <a href="https://github.com/gui-cs/Terminal.Gui/new/develop/apidoc/new?filename=Terminal_Gui_Attribute__ctor_Terminal_Gui_Color_.md&amp;value=---%0Auid%3A%20Terminal.Gui.Attribute.%23ctor(Terminal.Gui.Color)%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>
  197. </span>
  198. <span class="small pull-right mobile-hide">
  199. <a href="tig:tig/gui.cs/blob/main/Terminal.Gui/Core/ConsoleDriver.cs/#L155">View Source</a>
  200. </span>
  201. <a id="Terminal_Gui_Attribute__ctor_" data-uid="Terminal.Gui.Attribute.#ctor*"></a>
  202. <h4 id="Terminal_Gui_Attribute__ctor_Terminal_Gui_Color_" data-uid="Terminal.Gui.Attribute.#ctor(Terminal.Gui.Color)">Attribute(Color)</h4>
  203. <div class="markdown level1 summary">
  204. Initializes a new instance of the <a class="xref" href="Terminal.Gui.Attribute.html">Attribute</a> struct
  205. with the same colors for the foreground and background.
  206. </div>
  207. <div class="markdown level1 conceptual"></div>
  208. <h5 class="decalaration">Declaration</h5>
  209. <div class="codewrapper">
  210. <pre><code class="lang-csharp hljs">public Attribute(Color color)</code></pre>
  211. </div>
  212. <h5 class="parameters">Parameters</h5>
  213. <table class="table table-bordered table-striped table-condensed">
  214. <thead>
  215. <tr>
  216. <th>Type</th>
  217. <th>Name</th>
  218. <th>Description</th>
  219. </tr>
  220. </thead>
  221. <tbody>
  222. <tr>
  223. <td><a class="xref" href="Terminal.Gui.Color.html">Color</a></td>
  224. <td><span class="parametername">color</span></td>
  225. <td>The color.</td>
  226. </tr>
  227. </tbody>
  228. </table>
  229. <span class="small pull-right mobile-hide">
  230. <span class="divider">|</span>
  231. <a href="https://github.com/gui-cs/Terminal.Gui/new/develop/apidoc/new?filename=Terminal_Gui_Attribute__ctor_Terminal_Gui_Color_Terminal_Gui_Color_.md&amp;value=---%0Auid%3A%20Terminal.Gui.Attribute.%23ctor(Terminal.Gui.Color%2CTerminal.Gui.Color)%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>
  232. </span>
  233. <span class="small pull-right mobile-hide">
  234. <a href="tig:tig/gui.cs/blob/main/Terminal.Gui/Core/ConsoleDriver.cs/#L143">View Source</a>
  235. </span>
  236. <a id="Terminal_Gui_Attribute__ctor_" data-uid="Terminal.Gui.Attribute.#ctor*"></a>
  237. <h4 id="Terminal_Gui_Attribute__ctor_Terminal_Gui_Color_Terminal_Gui_Color_" data-uid="Terminal.Gui.Attribute.#ctor(Terminal.Gui.Color,Terminal.Gui.Color)">Attribute(Color, Color)</h4>
  238. <div class="markdown level1 summary">
  239. Initializes a new instance of the <a class="xref" href="Terminal.Gui.Attribute.html">Attribute</a> struct.
  240. </div>
  241. <div class="markdown level1 conceptual"></div>
  242. <h5 class="decalaration">Declaration</h5>
  243. <div class="codewrapper">
  244. <pre><code class="lang-csharp hljs">public Attribute(Color foreground = Color.Black, Color background = Color.Black)</code></pre>
  245. </div>
  246. <h5 class="parameters">Parameters</h5>
  247. <table class="table table-bordered table-striped table-condensed">
  248. <thead>
  249. <tr>
  250. <th>Type</th>
  251. <th>Name</th>
  252. <th>Description</th>
  253. </tr>
  254. </thead>
  255. <tbody>
  256. <tr>
  257. <td><a class="xref" href="Terminal.Gui.Color.html">Color</a></td>
  258. <td><span class="parametername">foreground</span></td>
  259. <td>Foreground</td>
  260. </tr>
  261. <tr>
  262. <td><a class="xref" href="Terminal.Gui.Color.html">Color</a></td>
  263. <td><span class="parametername">background</span></td>
  264. <td>Background</td>
  265. </tr>
  266. </tbody>
  267. </table>
  268. <h3 id="properties">Properties
  269. </h3>
  270. <span class="small pull-right mobile-hide">
  271. <span class="divider">|</span>
  272. <a href="https://github.com/gui-cs/Terminal.Gui/new/develop/apidoc/new?filename=Terminal_Gui_Attribute_Background.md&amp;value=---%0Auid%3A%20Terminal.Gui.Attribute.Background%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>
  273. </span>
  274. <span class="small pull-right mobile-hide">
  275. <a href="tig:tig/gui.cs/blob/main/Terminal.Gui/Core/ConsoleDriver.cs/#L105">View Source</a>
  276. </span>
  277. <a id="Terminal_Gui_Attribute_Background_" data-uid="Terminal.Gui.Attribute.Background*"></a>
  278. <h4 id="Terminal_Gui_Attribute_Background" data-uid="Terminal.Gui.Attribute.Background">Background</h4>
  279. <div class="markdown level1 summary">
  280. The background color.
  281. </div>
  282. <div class="markdown level1 conceptual"></div>
  283. <h5 class="decalaration">Declaration</h5>
  284. <div class="codewrapper">
  285. <pre><code class="lang-csharp hljs">public readonly Color Background { get; }</code></pre>
  286. </div>
  287. <h5 class="propertyValue">Property Value</h5>
  288. <table class="table table-bordered table-striped table-condensed">
  289. <thead>
  290. <tr>
  291. <th>Type</th>
  292. <th>Description</th>
  293. </tr>
  294. </thead>
  295. <tbody>
  296. <tr>
  297. <td><a class="xref" href="Terminal.Gui.Color.html">Color</a></td>
  298. <td></td>
  299. </tr>
  300. </tbody>
  301. </table>
  302. <span class="small pull-right mobile-hide">
  303. <span class="divider">|</span>
  304. <a href="https://github.com/gui-cs/Terminal.Gui/new/develop/apidoc/new?filename=Terminal_Gui_Attribute_Foreground.md&amp;value=---%0Auid%3A%20Terminal.Gui.Attribute.Foreground%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>
  305. </span>
  306. <span class="small pull-right mobile-hide">
  307. <a href="tig:tig/gui.cs/blob/main/Terminal.Gui/Core/ConsoleDriver.cs/#L101">View Source</a>
  308. </span>
  309. <a id="Terminal_Gui_Attribute_Foreground_" data-uid="Terminal.Gui.Attribute.Foreground*"></a>
  310. <h4 id="Terminal_Gui_Attribute_Foreground" data-uid="Terminal.Gui.Attribute.Foreground">Foreground</h4>
  311. <div class="markdown level1 summary">
  312. The foreground color.
  313. </div>
  314. <div class="markdown level1 conceptual"></div>
  315. <h5 class="decalaration">Declaration</h5>
  316. <div class="codewrapper">
  317. <pre><code class="lang-csharp hljs">public readonly Color Foreground { get; }</code></pre>
  318. </div>
  319. <h5 class="propertyValue">Property Value</h5>
  320. <table class="table table-bordered table-striped table-condensed">
  321. <thead>
  322. <tr>
  323. <th>Type</th>
  324. <th>Description</th>
  325. </tr>
  326. </thead>
  327. <tbody>
  328. <tr>
  329. <td><a class="xref" href="Terminal.Gui.Color.html">Color</a></td>
  330. <td></td>
  331. </tr>
  332. </tbody>
  333. </table>
  334. <span class="small pull-right mobile-hide">
  335. <span class="divider">|</span>
  336. <a href="https://github.com/gui-cs/Terminal.Gui/new/develop/apidoc/new?filename=Terminal_Gui_Attribute_Value.md&amp;value=---%0Auid%3A%20Terminal.Gui.Attribute.Value%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>
  337. </span>
  338. <span class="small pull-right mobile-hide">
  339. <a href="tig:tig/gui.cs/blob/main/Terminal.Gui/Core/ConsoleDriver.cs/#L97">View Source</a>
  340. </span>
  341. <a id="Terminal_Gui_Attribute_Value_" data-uid="Terminal.Gui.Attribute.Value*"></a>
  342. <h4 id="Terminal_Gui_Attribute_Value" data-uid="Terminal.Gui.Attribute.Value">Value</h4>
  343. <div class="markdown level1 summary">
  344. The color attribute value.
  345. </div>
  346. <div class="markdown level1 conceptual"></div>
  347. <h5 class="decalaration">Declaration</h5>
  348. <div class="codewrapper">
  349. <pre><code class="lang-csharp hljs">public readonly int Value { get; }</code></pre>
  350. </div>
  351. <h5 class="propertyValue">Property Value</h5>
  352. <table class="table table-bordered table-striped table-condensed">
  353. <thead>
  354. <tr>
  355. <th>Type</th>
  356. <th>Description</th>
  357. </tr>
  358. </thead>
  359. <tbody>
  360. <tr>
  361. <td><span class="xref">System.Int32</span></td>
  362. <td></td>
  363. </tr>
  364. </tbody>
  365. </table>
  366. <h3 id="methods">Methods
  367. </h3>
  368. <span class="small pull-right mobile-hide">
  369. <span class="divider">|</span>
  370. <a href="https://github.com/gui-cs/Terminal.Gui/new/develop/apidoc/new?filename=Terminal_Gui_Attribute_Get.md&amp;value=---%0Auid%3A%20Terminal.Gui.Attribute.Get%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>
  371. </span>
  372. <span class="small pull-right mobile-hide">
  373. <a href="tig:tig/gui.cs/blob/main/Terminal.Gui/Core/ConsoleDriver.cs/#L188">View Source</a>
  374. </span>
  375. <a id="Terminal_Gui_Attribute_Get_" data-uid="Terminal.Gui.Attribute.Get*"></a>
  376. <h4 id="Terminal_Gui_Attribute_Get" data-uid="Terminal.Gui.Attribute.Get">Get()</h4>
  377. <div class="markdown level1 summary">
  378. Gets the current <a class="xref" href="Terminal.Gui.Attribute.html">Attribute</a> from the driver.
  379. </div>
  380. <div class="markdown level1 conceptual"></div>
  381. <h5 class="decalaration">Declaration</h5>
  382. <div class="codewrapper">
  383. <pre><code class="lang-csharp hljs">public static Attribute Get()</code></pre>
  384. </div>
  385. <h5 class="returns">Returns</h5>
  386. <table class="table table-bordered table-striped table-condensed">
  387. <thead>
  388. <tr>
  389. <th>Type</th>
  390. <th>Description</th>
  391. </tr>
  392. </thead>
  393. <tbody>
  394. <tr>
  395. <td><a class="xref" href="Terminal.Gui.Attribute.html">Attribute</a></td>
  396. <td>The current attribute.</td>
  397. </tr>
  398. </tbody>
  399. </table>
  400. <span class="small pull-right mobile-hide">
  401. <span class="divider">|</span>
  402. <a href="https://github.com/gui-cs/Terminal.Gui/new/develop/apidoc/new?filename=Terminal_Gui_Attribute_Make_Terminal_Gui_Color_Terminal_Gui_Color_.md&amp;value=---%0Auid%3A%20Terminal.Gui.Attribute.Make(Terminal.Gui.Color%2CTerminal.Gui.Color)%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>
  403. </span>
  404. <span class="small pull-right mobile-hide">
  405. <a href="tig:tig/gui.cs/blob/main/Terminal.Gui/Core/ConsoleDriver.cs/#L177">View Source</a>
  406. </span>
  407. <a id="Terminal_Gui_Attribute_Make_" data-uid="Terminal.Gui.Attribute.Make*"></a>
  408. <h4 id="Terminal_Gui_Attribute_Make_Terminal_Gui_Color_Terminal_Gui_Color_" data-uid="Terminal.Gui.Attribute.Make(Terminal.Gui.Color,Terminal.Gui.Color)">Make(Color, Color)</h4>
  409. <div class="markdown level1 summary">
  410. Creates an <a class="xref" href="Terminal.Gui.Attribute.html">Attribute</a> from the specified foreground and background.
  411. </div>
  412. <div class="markdown level1 conceptual"></div>
  413. <h5 class="decalaration">Declaration</h5>
  414. <div class="codewrapper">
  415. <pre><code class="lang-csharp hljs">public static Attribute Make(Color foreground, Color background)</code></pre>
  416. </div>
  417. <h5 class="parameters">Parameters</h5>
  418. <table class="table table-bordered table-striped table-condensed">
  419. <thead>
  420. <tr>
  421. <th>Type</th>
  422. <th>Name</th>
  423. <th>Description</th>
  424. </tr>
  425. </thead>
  426. <tbody>
  427. <tr>
  428. <td><a class="xref" href="Terminal.Gui.Color.html">Color</a></td>
  429. <td><span class="parametername">foreground</span></td>
  430. <td>Foreground color to use.</td>
  431. </tr>
  432. <tr>
  433. <td><a class="xref" href="Terminal.Gui.Color.html">Color</a></td>
  434. <td><span class="parametername">background</span></td>
  435. <td>Background color to use.</td>
  436. </tr>
  437. </tbody>
  438. </table>
  439. <h5 class="returns">Returns</h5>
  440. <table class="table table-bordered table-striped table-condensed">
  441. <thead>
  442. <tr>
  443. <th>Type</th>
  444. <th>Description</th>
  445. </tr>
  446. </thead>
  447. <tbody>
  448. <tr>
  449. <td><a class="xref" href="Terminal.Gui.Attribute.html">Attribute</a></td>
  450. <td>The make.</td>
  451. </tr>
  452. </tbody>
  453. </table>
  454. <h3 id="operators">Operators
  455. </h3>
  456. <span class="small pull-right mobile-hide">
  457. <span class="divider">|</span>
  458. <a href="https://github.com/gui-cs/Terminal.Gui/new/develop/apidoc/new?filename=Terminal_Gui_Attribute_op_Implicit_System_Int32__Terminal_Gui_Attribute.md&amp;value=---%0Auid%3A%20Terminal.Gui.Attribute.op_Implicit(System.Int32)~Terminal.Gui.Attribute%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>
  459. </span>
  460. <span class="small pull-right mobile-hide">
  461. <a href="tig:tig/gui.cs/blob/main/Terminal.Gui/Core/ConsoleDriver.cs/#L169">View Source</a>
  462. </span>
  463. <a id="Terminal_Gui_Attribute_op_Implicit_" data-uid="Terminal.Gui.Attribute.op_Implicit*"></a>
  464. <h4 id="Terminal_Gui_Attribute_op_Implicit_System_Int32__Terminal_Gui_Attribute" data-uid="Terminal.Gui.Attribute.op_Implicit(System.Int32)~Terminal.Gui.Attribute">Implicit(Int32 to Attribute)</h4>
  465. <div class="markdown level1 summary">
  466. Implicitly convert an integer value into an <a class="xref" href="Terminal.Gui.Attribute.html">Attribute</a>
  467. </div>
  468. <div class="markdown level1 conceptual"></div>
  469. <h5 class="decalaration">Declaration</h5>
  470. <div class="codewrapper">
  471. <pre><code class="lang-csharp hljs">public static implicit operator Attribute(int v)</code></pre>
  472. </div>
  473. <h5 class="parameters">Parameters</h5>
  474. <table class="table table-bordered table-striped table-condensed">
  475. <thead>
  476. <tr>
  477. <th>Type</th>
  478. <th>Name</th>
  479. <th>Description</th>
  480. </tr>
  481. </thead>
  482. <tbody>
  483. <tr>
  484. <td><span class="xref">System.Int32</span></td>
  485. <td><span class="parametername">v</span></td>
  486. <td>value</td>
  487. </tr>
  488. </tbody>
  489. </table>
  490. <h5 class="returns">Returns</h5>
  491. <table class="table table-bordered table-striped table-condensed">
  492. <thead>
  493. <tr>
  494. <th>Type</th>
  495. <th>Description</th>
  496. </tr>
  497. </thead>
  498. <tbody>
  499. <tr>
  500. <td><a class="xref" href="Terminal.Gui.Attribute.html">Attribute</a></td>
  501. <td>An attribute with the specified integer value.</td>
  502. </tr>
  503. </tbody>
  504. </table>
  505. <span class="small pull-right mobile-hide">
  506. <span class="divider">|</span>
  507. <a href="https://github.com/gui-cs/Terminal.Gui/new/develop/apidoc/new?filename=Terminal_Gui_Attribute_op_Implicit_Terminal_Gui_Attribute__System_Int32.md&amp;value=---%0Auid%3A%20Terminal.Gui.Attribute.op_Implicit(Terminal.Gui.Attribute)~System.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>
  508. </span>
  509. <span class="small pull-right mobile-hide">
  510. <a href="tig:tig/gui.cs/blob/main/Terminal.Gui/Core/ConsoleDriver.cs/#L162">View Source</a>
  511. </span>
  512. <a id="Terminal_Gui_Attribute_op_Implicit_" data-uid="Terminal.Gui.Attribute.op_Implicit*"></a>
  513. <h4 id="Terminal_Gui_Attribute_op_Implicit_Terminal_Gui_Attribute__System_Int32" data-uid="Terminal.Gui.Attribute.op_Implicit(Terminal.Gui.Attribute)~System.Int32">Implicit(Attribute to Int32)</h4>
  514. <div class="markdown level1 summary">
  515. Implicit conversion from an <a class="xref" href="Terminal.Gui.Attribute.html">Attribute</a> to the underlying Int32 representation
  516. </div>
  517. <div class="markdown level1 conceptual"></div>
  518. <h5 class="decalaration">Declaration</h5>
  519. <div class="codewrapper">
  520. <pre><code class="lang-csharp hljs">public static implicit operator int (Attribute c)</code></pre>
  521. </div>
  522. <h5 class="parameters">Parameters</h5>
  523. <table class="table table-bordered table-striped table-condensed">
  524. <thead>
  525. <tr>
  526. <th>Type</th>
  527. <th>Name</th>
  528. <th>Description</th>
  529. </tr>
  530. </thead>
  531. <tbody>
  532. <tr>
  533. <td><a class="xref" href="Terminal.Gui.Attribute.html">Attribute</a></td>
  534. <td><span class="parametername">c</span></td>
  535. <td>The attribute to convert</td>
  536. </tr>
  537. </tbody>
  538. </table>
  539. <h5 class="returns">Returns</h5>
  540. <table class="table table-bordered table-striped table-condensed">
  541. <thead>
  542. <tr>
  543. <th>Type</th>
  544. <th>Description</th>
  545. </tr>
  546. </thead>
  547. <tbody>
  548. <tr>
  549. <td><span class="xref">System.Int32</span></td>
  550. <td>The integer value stored in the attribute.</td>
  551. </tr>
  552. </tbody>
  553. </table>
  554. </article>
  555. </div>
  556. <div class="hidden-sm col-md-2" role="complementary">
  557. <div class="sideaffix">
  558. <div class="contribution">
  559. <ul class="nav">
  560. <li>
  561. <a href="https://github.com/gui-cs/Terminal.Gui/new/develop/apidoc/new?filename=Terminal_Gui_Attribute.md&amp;value=---%0Auid%3A%20Terminal.Gui.Attribute%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>
  562. </li>
  563. <li>
  564. <a href="tig:tig/gui.cs/blob/main/Terminal.Gui/Core/ConsoleDriver.cs/#L93" class="contribution-link">View Source</a>
  565. </li>
  566. </ul>
  567. </div>
  568. <nav class="bs-docs-sidebar hidden-print hidden-xs hidden-sm affix" id="affix">
  569. <h5>In This Article</h5>
  570. <div></div>
  571. </nav>
  572. </div>
  573. </div>
  574. </div>
  575. </div>
  576. <footer>
  577. <div class="grad-bottom"></div>
  578. <div class="footer">
  579. <div class="container">
  580. <span class="pull-right">
  581. <a href="#top">Back to top</a>
  582. </span>
  583. <span>Generated by <strong>DocFX</strong></span>
  584. </div>
  585. </div>
  586. </footer>
  587. </div>
  588. <script type="text/javascript" src="../../styles/docfx.vendor.js"></script>
  589. <script type="text/javascript" src="../../styles/docfx.js"></script>
  590. <script type="text/javascript" src="../../styles/main.js"></script>
  591. </body>
  592. </html>