Terminal.Gui.Attribute.html 8.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245
  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.18.2.0">
  13. <link rel="shortcut icon" href="../../favicon.ico">
  14. <link rel="stylesheet" href="../../styles/docfx.vendor.css">
  15. <link rel="stylesheet" href="../../styles/docfx.css">
  16. <link rel="stylesheet" href="../../styles/main.css">
  17. <meta property="docfx:navrel" content="">
  18. <meta property="docfx:tocrel" content="../toc.html">
  19. </head>
  20. <body data-spy="scroll" data-target="#affix">
  21. <div id="wrapper">
  22. <header>
  23. <nav id="autocollapse" class="navbar navbar-inverse ng-scope" role="navigation">
  24. <div class="container">
  25. <div class="navbar-header">
  26. <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar">
  27. <span class="sr-only">Toggle navigation</span>
  28. <span class="icon-bar"></span>
  29. <span class="icon-bar"></span>
  30. <span class="icon-bar"></span>
  31. </button>
  32. <a class="navbar-brand" href="../../index.html">
  33. <img id="logo" class="svg" src="../../logo.svg" alt="">
  34. </a>
  35. </div>
  36. <div class="collapse navbar-collapse" id="navbar">
  37. <form class="navbar-form navbar-right" role="search" id="search">
  38. <div class="form-group">
  39. <input type="text" class="form-control" id="search-query" placeholder="Search" autocomplete="off">
  40. </div>
  41. </form>
  42. </div>
  43. </div>
  44. </nav>
  45. <div class="subnav navbar navbar-default">
  46. <div class="container hide-when-search" id="breadcrumb">
  47. <ul class="breadcrumb">
  48. <li></li>
  49. </ul>
  50. </div>
  51. </div>
  52. </header>
  53. <div role="main" class="container body-content hide-when-search">
  54. <div class="sidenav hide-when-search">
  55. <a class="btn toc-toggle collapse" data-toggle="collapse" href="#sidetoggle" aria-expanded="false" aria-controls="sidetoggle">Show / Hide Table of Contents</a>
  56. <div class="sidetoggle collapse" id="sidetoggle">
  57. <div id="sidetoc"></div>
  58. </div>
  59. </div>
  60. <div class="article row grid-right">
  61. <div class="col-md-10">
  62. <article class="content wrap" id="_content" data-uid="Terminal.Gui.Attribute">
  63. <h1 id="Terminal_Gui_Attribute" data-uid="Terminal.Gui.Attribute">Struct Attribute
  64. </h1>
  65. <div class="markdown level0 summary"><p>Attributes are used as elements that contain both a foreground and a background or platform specific features</p>
  66. </div>
  67. <div class="markdown level0 conceptual"></div>
  68. <h6><strong>Namespace</strong>: <a class="xref" href="../Terminal.Gui.html">Terminal.Gui</a></h6>
  69. <h6><strong>Assembly</strong>: Terminal.Gui.dll</h6>
  70. <h5 id="Terminal_Gui_Attribute_syntax">Syntax</h5>
  71. <div class="codewrapper">
  72. <pre><code class="lang-csharp hljs">public struct Attribute</code></pre>
  73. </div>
  74. <h5 id="Terminal_Gui_Attribute_remarks"><strong>Remarks</strong></h5>
  75. <div class="markdown level0 remarks"><p>Attributes are needed to map colors to terminal capabilities that might lack colors, on color
  76. scenarios, they encode both the foreground and the background color and are used in the ColorScheme
  77. class to define color schemes that can be used in your application.</p>
  78. </div>
  79. <h3 id="constructors">Constructors
  80. </h3>
  81. <a id="Terminal_Gui_Attribute__ctor_" data-uid="Terminal.Gui.Attribute.#ctor*"></a>
  82. <h4 id="Terminal_Gui_Attribute__ctor_System_Int32_" data-uid="Terminal.Gui.Attribute.#ctor(System.Int32)">Attribute(Int32)</h4>
  83. <div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="Terminal.Gui.Attribute.html">Attribute</a> struct.</p>
  84. </div>
  85. <div class="markdown level1 conceptual"></div>
  86. <h5 class="decalaration">Declaration</h5>
  87. <div class="codewrapper">
  88. <pre><code class="lang-csharp hljs">public Attribute (int value);</code></pre>
  89. </div>
  90. <h5 class="parameters">Parameters</h5>
  91. <table class="table table-bordered table-striped table-condensed">
  92. <thead>
  93. <tr>
  94. <th>Type</th>
  95. <th>Name</th>
  96. <th>Description</th>
  97. </tr>
  98. </thead>
  99. <tbody>
  100. <tr>
  101. <td><span class="xref">System.Int32</span></td>
  102. <td><span class="parametername">value</span></td>
  103. <td><p>Value.</p>
  104. </td>
  105. </tr>
  106. </tbody>
  107. </table>
  108. <h3 id="operators">Operators
  109. </h3>
  110. <a id="Terminal_Gui_Attribute_op_Implicit_" data-uid="Terminal.Gui.Attribute.op_Implicit*"></a>
  111. <h4 id="Terminal_Gui_Attribute_op_Implicit_System_Int32_to_Terminal_Gui_Attribute_" data-uid="Terminal.Gui.Attribute.op_Implicit(System.Int32 to Terminal.Gui.Attribute)">op_Implicit(Int32 to Attribute)</h4>
  112. <div class="markdown level1 summary"></div>
  113. <div class="markdown level1 conceptual"></div>
  114. <h5 class="decalaration">Declaration</h5>
  115. <div class="codewrapper">
  116. <pre><code class="lang-csharp hljs">public static Terminal.Gui.Attribute op_Implicit (int v);</code></pre>
  117. </div>
  118. <h5 class="parameters">Parameters</h5>
  119. <table class="table table-bordered table-striped table-condensed">
  120. <thead>
  121. <tr>
  122. <th>Type</th>
  123. <th>Name</th>
  124. <th>Description</th>
  125. </tr>
  126. </thead>
  127. <tbody>
  128. <tr>
  129. <td><span class="xref">System.Int32</span></td>
  130. <td><span class="parametername">v</span></td>
  131. <td><p>To be added.</p>
  132. </td>
  133. </tr>
  134. </tbody>
  135. </table>
  136. <h5 class="returns">Returns</h5>
  137. <table class="table table-bordered table-striped table-condensed">
  138. <thead>
  139. <tr>
  140. <th>Type</th>
  141. <th>Description</th>
  142. </tr>
  143. </thead>
  144. <tbody>
  145. <tr>
  146. <td><a class="xref" href="Terminal.Gui.Attribute.html">Attribute</a></td>
  147. <td><p>To be added.</p>
  148. </td>
  149. </tr>
  150. </tbody>
  151. </table>
  152. <a id="Terminal_Gui_Attribute_op_Implicit_" data-uid="Terminal.Gui.Attribute.op_Implicit*"></a>
  153. <h4 id="Terminal_Gui_Attribute_op_Implicit_Terminal_Gui_Attribute_to_System_Int32_" data-uid="Terminal.Gui.Attribute.op_Implicit(Terminal.Gui.Attribute to System.Int32)">op_Implicit(Attribute to Int32)</h4>
  154. <div class="markdown level1 summary"></div>
  155. <div class="markdown level1 conceptual"></div>
  156. <h5 class="decalaration">Declaration</h5>
  157. <div class="codewrapper">
  158. <pre><code class="lang-csharp hljs">public static int op_Implicit (Terminal.Gui.Attribute c);</code></pre>
  159. </div>
  160. <h5 class="parameters">Parameters</h5>
  161. <table class="table table-bordered table-striped table-condensed">
  162. <thead>
  163. <tr>
  164. <th>Type</th>
  165. <th>Name</th>
  166. <th>Description</th>
  167. </tr>
  168. </thead>
  169. <tbody>
  170. <tr>
  171. <td><a class="xref" href="Terminal.Gui.Attribute.html">Attribute</a></td>
  172. <td><span class="parametername">c</span></td>
  173. <td><p>To be added.</p>
  174. </td>
  175. </tr>
  176. </tbody>
  177. </table>
  178. <h5 class="returns">Returns</h5>
  179. <table class="table table-bordered table-striped table-condensed">
  180. <thead>
  181. <tr>
  182. <th>Type</th>
  183. <th>Description</th>
  184. </tr>
  185. </thead>
  186. <tbody>
  187. <tr>
  188. <td><span class="xref">System.Int32</span></td>
  189. <td><p>To be added.</p>
  190. </td>
  191. </tr>
  192. </tbody>
  193. </table>
  194. </article>
  195. </div>
  196. <div class="hidden-sm col-md-2" role="complementary">
  197. <div class="sideaffix">
  198. <div class="contribution">
  199. <ul class="nav">
  200. </ul>
  201. </div>
  202. <nav class="bs-docs-sidebar hidden-print hidden-xs hidden-sm affix" id="affix">
  203. <!-- <p><a class="back-to-top" href="#top">Back to top</a><p> -->
  204. </nav>
  205. </div>
  206. </div>
  207. </div>
  208. </div>
  209. <footer>
  210. <div class="grad-bottom"></div>
  211. <div class="footer">
  212. <div class="container">
  213. <span class="pull-right">
  214. <a href="#top">Back to top</a>
  215. </span>
  216. <span>Copyright © 2015-2017 Microsoft<br>Generated by <strong>DocFX</strong></span>
  217. </div>
  218. </div>
  219. </footer>
  220. </div>
  221. <script type="text/javascript" src="../../styles/docfx.vendor.js"></script>
  222. <script type="text/javascript" src="../../styles/docfx.js"></script>
  223. <script type="text/javascript" src="../../styles/main.js"></script>
  224. </body>
  225. </html>