Terminal.Gui.IClipboard.html 11 KB

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