Terminal.Gui.IClipboard.html 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369
  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.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.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. <span class="small pull-right mobile-hide">
  89. <span class="divider">|</span>
  90. <a href="https://github.com/gui-cs/Terminal.Gui/new/develop/apidoc/new?filename=Terminal_Gui_IClipboard_IsSupported.md&amp;value=---%0Auid%3A%20Terminal.Gui.IClipboard.IsSupported%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>
  91. </span>
  92. <span class="small pull-right mobile-hide">
  93. <a href="tig:tig/gui.cs/blob/main/Terminal.Gui/Core/Clipboard/IClipboard.cs/#L15">View Source</a>
  94. </span>
  95. <a id="Terminal_Gui_IClipboard_IsSupported_" data-uid="Terminal.Gui.IClipboard.IsSupported*"></a>
  96. <h4 id="Terminal_Gui_IClipboard_IsSupported" data-uid="Terminal.Gui.IClipboard.IsSupported">IsSupported</h4>
  97. <div class="markdown level1 summary">
  98. Returns true if the environmental dependencies are in place to interact with the OS clipboard.
  99. </div>
  100. <div class="markdown level1 conceptual"></div>
  101. <h5 class="decalaration">Declaration</h5>
  102. <div class="codewrapper">
  103. <pre><code class="lang-csharp hljs">bool IsSupported { get; }</code></pre>
  104. </div>
  105. <h5 class="propertyValue">Property Value</h5>
  106. <table class="table table-bordered table-striped table-condensed">
  107. <thead>
  108. <tr>
  109. <th>Type</th>
  110. <th>Description</th>
  111. </tr>
  112. </thead>
  113. <tbody>
  114. <tr>
  115. <td><span class="xref">System.Boolean</span></td>
  116. <td></td>
  117. </tr>
  118. </tbody>
  119. </table>
  120. <h3 id="methods">Methods
  121. </h3>
  122. <span class="small pull-right mobile-hide">
  123. <span class="divider">|</span>
  124. <a href="https://github.com/gui-cs/Terminal.Gui/new/develop/apidoc/new?filename=Terminal_Gui_IClipboard_GetClipboardData.md&amp;value=---%0Auid%3A%20Terminal.Gui.IClipboard.GetClipboardData%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>
  125. </span>
  126. <span class="small pull-right mobile-hide">
  127. <a href="tig:tig/gui.cs/blob/main/Terminal.Gui/Core/Clipboard/IClipboard.cs/#L21">View Source</a>
  128. </span>
  129. <a id="Terminal_Gui_IClipboard_GetClipboardData_" data-uid="Terminal.Gui.IClipboard.GetClipboardData*"></a>
  130. <h4 id="Terminal_Gui_IClipboard_GetClipboardData" data-uid="Terminal.Gui.IClipboard.GetClipboardData">GetClipboardData()</h4>
  131. <div class="markdown level1 summary">
  132. Get the operation system clipboard.
  133. </div>
  134. <div class="markdown level1 conceptual"></div>
  135. <h5 class="decalaration">Declaration</h5>
  136. <div class="codewrapper">
  137. <pre><code class="lang-csharp hljs">string GetClipboardData()</code></pre>
  138. </div>
  139. <h5 class="returns">Returns</h5>
  140. <table class="table table-bordered table-striped table-condensed">
  141. <thead>
  142. <tr>
  143. <th>Type</th>
  144. <th>Description</th>
  145. </tr>
  146. </thead>
  147. <tbody>
  148. <tr>
  149. <td><span class="xref">System.String</span></td>
  150. <td></td>
  151. </tr>
  152. </tbody>
  153. </table>
  154. <h5 class="exceptions">Exceptions</h5>
  155. <table class="table table-bordered table-striped table-condensed">
  156. <thead>
  157. <tr>
  158. <th>Type</th>
  159. <th>Condition</th>
  160. </tr>
  161. </thead>
  162. <tbody>
  163. <tr>
  164. <td><span class="xref">System.NotSupportedException</span></td>
  165. <td>Thrown if it was not possible to read the clipboard contents.</td>
  166. </tr>
  167. </tbody>
  168. </table>
  169. <span class="small pull-right mobile-hide">
  170. <span class="divider">|</span>
  171. <a href="https://github.com/gui-cs/Terminal.Gui/new/develop/apidoc/new?filename=Terminal_Gui_IClipboard_SetClipboardData_System_String_.md&amp;value=---%0Auid%3A%20Terminal.Gui.IClipboard.SetClipboardData(System.String)%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>
  172. </span>
  173. <span class="small pull-right mobile-hide">
  174. <a href="tig:tig/gui.cs/blob/main/Terminal.Gui/Core/Clipboard/IClipboard.cs/#L35">View Source</a>
  175. </span>
  176. <a id="Terminal_Gui_IClipboard_SetClipboardData_" data-uid="Terminal.Gui.IClipboard.SetClipboardData*"></a>
  177. <h4 id="Terminal_Gui_IClipboard_SetClipboardData_System_String_" data-uid="Terminal.Gui.IClipboard.SetClipboardData(System.String)">SetClipboardData(String)</h4>
  178. <div class="markdown level1 summary">
  179. Sets the operation system clipboard.
  180. </div>
  181. <div class="markdown level1 conceptual"></div>
  182. <h5 class="decalaration">Declaration</h5>
  183. <div class="codewrapper">
  184. <pre><code class="lang-csharp hljs">void SetClipboardData(string text)</code></pre>
  185. </div>
  186. <h5 class="parameters">Parameters</h5>
  187. <table class="table table-bordered table-striped table-condensed">
  188. <thead>
  189. <tr>
  190. <th>Type</th>
  191. <th>Name</th>
  192. <th>Description</th>
  193. </tr>
  194. </thead>
  195. <tbody>
  196. <tr>
  197. <td><span class="xref">System.String</span></td>
  198. <td><span class="parametername">text</span></td>
  199. <td></td>
  200. </tr>
  201. </tbody>
  202. </table>
  203. <h5 class="exceptions">Exceptions</h5>
  204. <table class="table table-bordered table-striped table-condensed">
  205. <thead>
  206. <tr>
  207. <th>Type</th>
  208. <th>Condition</th>
  209. </tr>
  210. </thead>
  211. <tbody>
  212. <tr>
  213. <td><span class="xref">System.NotSupportedException</span></td>
  214. <td>Thrown if it was not possible to set the clipboard contents.</td>
  215. </tr>
  216. </tbody>
  217. </table>
  218. <span class="small pull-right mobile-hide">
  219. <span class="divider">|</span>
  220. <a href="https://github.com/gui-cs/Terminal.Gui/new/develop/apidoc/new?filename=Terminal_Gui_IClipboard_TryGetClipboardData_System_String__.md&amp;value=---%0Auid%3A%20Terminal.Gui.IClipboard.TryGetClipboardData(System.String%40)%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>
  221. </span>
  222. <span class="small pull-right mobile-hide">
  223. <a href="tig:tig/gui.cs/blob/main/Terminal.Gui/Core/Clipboard/IClipboard.cs/#L28">View Source</a>
  224. </span>
  225. <a id="Terminal_Gui_IClipboard_TryGetClipboardData_" data-uid="Terminal.Gui.IClipboard.TryGetClipboardData*"></a>
  226. <h4 id="Terminal_Gui_IClipboard_TryGetClipboardData_System_String__" data-uid="Terminal.Gui.IClipboard.TryGetClipboardData(System.String@)">TryGetClipboardData(out String)</h4>
  227. <div class="markdown level1 summary">
  228. Gets the operation system clipboard if possible.
  229. </div>
  230. <div class="markdown level1 conceptual"></div>
  231. <h5 class="decalaration">Declaration</h5>
  232. <div class="codewrapper">
  233. <pre><code class="lang-csharp hljs">bool TryGetClipboardData(out string result)</code></pre>
  234. </div>
  235. <h5 class="parameters">Parameters</h5>
  236. <table class="table table-bordered table-striped table-condensed">
  237. <thead>
  238. <tr>
  239. <th>Type</th>
  240. <th>Name</th>
  241. <th>Description</th>
  242. </tr>
  243. </thead>
  244. <tbody>
  245. <tr>
  246. <td><span class="xref">System.String</span></td>
  247. <td><span class="parametername">result</span></td>
  248. <td>Clipboard contents read</td>
  249. </tr>
  250. </tbody>
  251. </table>
  252. <h5 class="returns">Returns</h5>
  253. <table class="table table-bordered table-striped table-condensed">
  254. <thead>
  255. <tr>
  256. <th>Type</th>
  257. <th>Description</th>
  258. </tr>
  259. </thead>
  260. <tbody>
  261. <tr>
  262. <td><span class="xref">System.Boolean</span></td>
  263. <td>true if it was possible to read the OS clipboard.</td>
  264. </tr>
  265. </tbody>
  266. </table>
  267. <span class="small pull-right mobile-hide">
  268. <span class="divider">|</span>
  269. <a href="https://github.com/gui-cs/Terminal.Gui/new/develop/apidoc/new?filename=Terminal_Gui_IClipboard_TrySetClipboardData_System_String_.md&amp;value=---%0Auid%3A%20Terminal.Gui.IClipboard.TrySetClipboardData(System.String)%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>
  270. </span>
  271. <span class="small pull-right mobile-hide">
  272. <a href="tig:tig/gui.cs/blob/main/Terminal.Gui/Core/Clipboard/IClipboard.cs/#L42">View Source</a>
  273. </span>
  274. <a id="Terminal_Gui_IClipboard_TrySetClipboardData_" data-uid="Terminal.Gui.IClipboard.TrySetClipboardData*"></a>
  275. <h4 id="Terminal_Gui_IClipboard_TrySetClipboardData_System_String_" data-uid="Terminal.Gui.IClipboard.TrySetClipboardData(System.String)">TrySetClipboardData(String)</h4>
  276. <div class="markdown level1 summary">
  277. Sets the operation system clipboard if possible.
  278. </div>
  279. <div class="markdown level1 conceptual"></div>
  280. <h5 class="decalaration">Declaration</h5>
  281. <div class="codewrapper">
  282. <pre><code class="lang-csharp hljs">bool TrySetClipboardData(string text)</code></pre>
  283. </div>
  284. <h5 class="parameters">Parameters</h5>
  285. <table class="table table-bordered table-striped table-condensed">
  286. <thead>
  287. <tr>
  288. <th>Type</th>
  289. <th>Name</th>
  290. <th>Description</th>
  291. </tr>
  292. </thead>
  293. <tbody>
  294. <tr>
  295. <td><span class="xref">System.String</span></td>
  296. <td><span class="parametername">text</span></td>
  297. <td></td>
  298. </tr>
  299. </tbody>
  300. </table>
  301. <h5 class="returns">Returns</h5>
  302. <table class="table table-bordered table-striped table-condensed">
  303. <thead>
  304. <tr>
  305. <th>Type</th>
  306. <th>Description</th>
  307. </tr>
  308. </thead>
  309. <tbody>
  310. <tr>
  311. <td><span class="xref">System.Boolean</span></td>
  312. <td>True if the clipboard content was set successfully.</td>
  313. </tr>
  314. </tbody>
  315. </table>
  316. </article>
  317. </div>
  318. <div class="hidden-sm col-md-2" role="complementary">
  319. <div class="sideaffix">
  320. <div class="contribution">
  321. <ul class="nav">
  322. <li>
  323. <a href="https://github.com/gui-cs/Terminal.Gui/new/develop/apidoc/new?filename=Terminal_Gui_IClipboard.md&amp;value=---%0Auid%3A%20Terminal.Gui.IClipboard%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>
  324. </li>
  325. <li>
  326. <a href="tig:tig/gui.cs/blob/main/Terminal.Gui/Core/Clipboard/IClipboard.cs/#L11" class="contribution-link">View Source</a>
  327. </li>
  328. </ul>
  329. </div>
  330. <nav class="bs-docs-sidebar hidden-print hidden-xs hidden-sm affix" id="affix">
  331. <h5>In This Article</h5>
  332. <div></div>
  333. </nav>
  334. </div>
  335. </div>
  336. </div>
  337. </div>
  338. <footer>
  339. <div class="grad-bottom"></div>
  340. <div class="footer">
  341. <div class="container">
  342. <span class="pull-right">
  343. <a href="#top">Back to top</a>
  344. </span>
  345. <span>Generated by <strong>DocFX</strong></span>
  346. </div>
  347. </div>
  348. </footer>
  349. </div>
  350. <script type="text/javascript" src="../../styles/docfx.vendor.js"></script>
  351. <script type="text/javascript" src="../../styles/docfx.js"></script>
  352. <script type="text/javascript" src="../../styles/main.js"></script>
  353. </body>
  354. </html>