Terminal.Gui.IClipboard.html 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323
  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>Interface IClipboard
  8. </title>
  9. <meta name="viewport" content="width=device-width">
  10. <meta name="title" content="Interface IClipboard
  11. ">
  12. <meta name="generator" content="docfx 2.59.0.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.IClipboard">
  73. <h1 id="Terminal_Gui_IClipboard" data-uid="Terminal.Gui.IClipboard" class="text-break">Interface IClipboard
  74. </h1>
  75. <div class="markdown level0 summary">
  76. Definition to interact with the OS clipboard.
  77. </div>
  78. <div class="markdown level0 conceptual"></div>
  79. <h6><strong>Namespace</strong>: <a class="xref" href="Terminal.Gui.html">Terminal.Gui</a></h6>
  80. <h6><strong>Assembly</strong>: Terminal.Gui.dll</h6>
  81. <h5 id="Terminal_Gui_IClipboard_syntax">Syntax</h5>
  82. <div class="codewrapper">
  83. <pre><code class="lang-csharp hljs">public interface IClipboard</code></pre>
  84. </div>
  85. <h3 id="properties">Properties
  86. </h3>
  87. <a id="Terminal_Gui_IClipboard_IsSupported_" data-uid="Terminal.Gui.IClipboard.IsSupported*"></a>
  88. <h4 id="Terminal_Gui_IClipboard_IsSupported" data-uid="Terminal.Gui.IClipboard.IsSupported">IsSupported</h4>
  89. <div class="markdown level1 summary">
  90. Returns true if the environmental dependencies are in place to interact with the OS clipboard.
  91. </div>
  92. <div class="markdown level1 conceptual"></div>
  93. <h5 class="decalaration">Declaration</h5>
  94. <div class="codewrapper">
  95. <pre><code class="lang-csharp hljs">bool IsSupported { get; }</code></pre>
  96. </div>
  97. <h5 class="propertyValue">Property Value</h5>
  98. <table class="table table-bordered table-striped table-condensed">
  99. <thead>
  100. <tr>
  101. <th>Type</th>
  102. <th>Description</th>
  103. </tr>
  104. </thead>
  105. <tbody>
  106. <tr>
  107. <td><span class="xref">System.Boolean</span></td>
  108. <td></td>
  109. </tr>
  110. </tbody>
  111. </table>
  112. <h3 id="methods">Methods
  113. </h3>
  114. <a id="Terminal_Gui_IClipboard_GetClipboardData_" data-uid="Terminal.Gui.IClipboard.GetClipboardData*"></a>
  115. <h4 id="Terminal_Gui_IClipboard_GetClipboardData" data-uid="Terminal.Gui.IClipboard.GetClipboardData">GetClipboardData()</h4>
  116. <div class="markdown level1 summary">
  117. Get the operation system clipboard.
  118. </div>
  119. <div class="markdown level1 conceptual"></div>
  120. <h5 class="decalaration">Declaration</h5>
  121. <div class="codewrapper">
  122. <pre><code class="lang-csharp hljs">string GetClipboardData()</code></pre>
  123. </div>
  124. <h5 class="returns">Returns</h5>
  125. <table class="table table-bordered table-striped table-condensed">
  126. <thead>
  127. <tr>
  128. <th>Type</th>
  129. <th>Description</th>
  130. </tr>
  131. </thead>
  132. <tbody>
  133. <tr>
  134. <td><span class="xref">System.String</span></td>
  135. <td></td>
  136. </tr>
  137. </tbody>
  138. </table>
  139. <h5 class="exceptions">Exceptions</h5>
  140. <table class="table table-bordered table-striped table-condensed">
  141. <thead>
  142. <tr>
  143. <th>Type</th>
  144. <th>Condition</th>
  145. </tr>
  146. </thead>
  147. <tbody>
  148. <tr>
  149. <td><span class="xref">System.NotSupportedException</span></td>
  150. <td>Thrown if it was not possible to read the clipboard contents.</td>
  151. </tr>
  152. </tbody>
  153. </table>
  154. <a id="Terminal_Gui_IClipboard_SetClipboardData_" data-uid="Terminal.Gui.IClipboard.SetClipboardData*"></a>
  155. <h4 id="Terminal_Gui_IClipboard_SetClipboardData_System_String_" data-uid="Terminal.Gui.IClipboard.SetClipboardData(System.String)">SetClipboardData(String)</h4>
  156. <div class="markdown level1 summary">
  157. Sets the operation system clipboard.
  158. </div>
  159. <div class="markdown level1 conceptual"></div>
  160. <h5 class="decalaration">Declaration</h5>
  161. <div class="codewrapper">
  162. <pre><code class="lang-csharp hljs">void SetClipboardData(string text)</code></pre>
  163. </div>
  164. <h5 class="parameters">Parameters</h5>
  165. <table class="table table-bordered table-striped table-condensed">
  166. <thead>
  167. <tr>
  168. <th>Type</th>
  169. <th>Name</th>
  170. <th>Description</th>
  171. </tr>
  172. </thead>
  173. <tbody>
  174. <tr>
  175. <td><span class="xref">System.String</span></td>
  176. <td><span class="parametername">text</span></td>
  177. <td></td>
  178. </tr>
  179. </tbody>
  180. </table>
  181. <h5 class="exceptions">Exceptions</h5>
  182. <table class="table table-bordered table-striped table-condensed">
  183. <thead>
  184. <tr>
  185. <th>Type</th>
  186. <th>Condition</th>
  187. </tr>
  188. </thead>
  189. <tbody>
  190. <tr>
  191. <td><span class="xref">System.NotSupportedException</span></td>
  192. <td>Thrown if it was not possible to set the clipboard contents.</td>
  193. </tr>
  194. </tbody>
  195. </table>
  196. <a id="Terminal_Gui_IClipboard_TryGetClipboardData_" data-uid="Terminal.Gui.IClipboard.TryGetClipboardData*"></a>
  197. <h4 id="Terminal_Gui_IClipboard_TryGetClipboardData_System_String__" data-uid="Terminal.Gui.IClipboard.TryGetClipboardData(System.String@)">TryGetClipboardData(out String)</h4>
  198. <div class="markdown level1 summary">
  199. Gets the operation system clipboard if possible.
  200. </div>
  201. <div class="markdown level1 conceptual"></div>
  202. <h5 class="decalaration">Declaration</h5>
  203. <div class="codewrapper">
  204. <pre><code class="lang-csharp hljs">bool TryGetClipboardData(out string result)</code></pre>
  205. </div>
  206. <h5 class="parameters">Parameters</h5>
  207. <table class="table table-bordered table-striped table-condensed">
  208. <thead>
  209. <tr>
  210. <th>Type</th>
  211. <th>Name</th>
  212. <th>Description</th>
  213. </tr>
  214. </thead>
  215. <tbody>
  216. <tr>
  217. <td><span class="xref">System.String</span></td>
  218. <td><span class="parametername">result</span></td>
  219. <td>Clipboard contents read</td>
  220. </tr>
  221. </tbody>
  222. </table>
  223. <h5 class="returns">Returns</h5>
  224. <table class="table table-bordered table-striped table-condensed">
  225. <thead>
  226. <tr>
  227. <th>Type</th>
  228. <th>Description</th>
  229. </tr>
  230. </thead>
  231. <tbody>
  232. <tr>
  233. <td><span class="xref">System.Boolean</span></td>
  234. <td>true if it was possible to read the OS clipboard.</td>
  235. </tr>
  236. </tbody>
  237. </table>
  238. <a id="Terminal_Gui_IClipboard_TrySetClipboardData_" data-uid="Terminal.Gui.IClipboard.TrySetClipboardData*"></a>
  239. <h4 id="Terminal_Gui_IClipboard_TrySetClipboardData_System_String_" data-uid="Terminal.Gui.IClipboard.TrySetClipboardData(System.String)">TrySetClipboardData(String)</h4>
  240. <div class="markdown level1 summary">
  241. Sets the operation system clipboard if possible.
  242. </div>
  243. <div class="markdown level1 conceptual"></div>
  244. <h5 class="decalaration">Declaration</h5>
  245. <div class="codewrapper">
  246. <pre><code class="lang-csharp hljs">bool TrySetClipboardData(string text)</code></pre>
  247. </div>
  248. <h5 class="parameters">Parameters</h5>
  249. <table class="table table-bordered table-striped table-condensed">
  250. <thead>
  251. <tr>
  252. <th>Type</th>
  253. <th>Name</th>
  254. <th>Description</th>
  255. </tr>
  256. </thead>
  257. <tbody>
  258. <tr>
  259. <td><span class="xref">System.String</span></td>
  260. <td><span class="parametername">text</span></td>
  261. <td></td>
  262. </tr>
  263. </tbody>
  264. </table>
  265. <h5 class="returns">Returns</h5>
  266. <table class="table table-bordered table-striped table-condensed">
  267. <thead>
  268. <tr>
  269. <th>Type</th>
  270. <th>Description</th>
  271. </tr>
  272. </thead>
  273. <tbody>
  274. <tr>
  275. <td><span class="xref">System.Boolean</span></td>
  276. <td>True if the clipboard content was set successfully.</td>
  277. </tr>
  278. </tbody>
  279. </table>
  280. </article>
  281. </div>
  282. <div class="hidden-sm col-md-2" role="complementary">
  283. <div class="sideaffix">
  284. <nav class="bs-docs-sidebar hidden-print hidden-xs hidden-sm affix" id="affix">
  285. <h5>In This Article</h5>
  286. <div></div>
  287. </nav>
  288. </div>
  289. </div>
  290. </div>
  291. </div>
  292. <footer>
  293. <div class="grad-bottom"></div>
  294. <div class="footer">
  295. <div class="container">
  296. <span class="pull-right">
  297. <a href="#top">Back to top</a>
  298. </span>
  299. <span>Generated by <strong>DocFX</strong></span>
  300. </div>
  301. </div>
  302. </footer>
  303. </div>
  304. <script type="text/javascript" src="../../styles/docfx.vendor.js"></script>
  305. <script type="text/javascript" src="../../styles/docfx.js"></script>
  306. <script type="text/javascript" src="../../styles/main.js"></script>
  307. </body>
  308. </html>