Terminal.Gui.ClipboardBase.html 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399
  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>Class ClipboardBase
  8. </title>
  9. <meta name="viewport" content="width=device-width">
  10. <meta name="title" content="Class ClipboardBase
  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.ClipboardBase">
  74. <h1 id="Terminal_Gui_ClipboardBase" data-uid="Terminal.Gui.ClipboardBase" class="text-break">Class ClipboardBase
  75. </h1>
  76. <div class="markdown level0 summary">
  77. Shared abstract class to enforce rules from the implementation of the <a class="xref" href="Terminal.Gui.IClipboard.html">IClipboard</a> interface.
  78. </div>
  79. <div class="markdown level0 conceptual"></div>
  80. <div class="inheritance">
  81. <h5>Inheritance</h5>
  82. <div class="level0"><span class="xref">System.Object</span></div>
  83. <div class="level1"><span class="xref">ClipboardBase</span></div>
  84. </div>
  85. <div class="implements">
  86. <h5>Implements</h5>
  87. <div><a class="xref" href="Terminal.Gui.IClipboard.html">IClipboard</a></div>
  88. </div>
  89. <h6><strong>Namespace</strong>: <a class="xref" href="Terminal.Gui.html">Terminal.Gui</a></h6>
  90. <h6><strong>Assembly</strong>: Terminal.Gui.dll</h6>
  91. <h5 id="Terminal_Gui_ClipboardBase_syntax">Syntax</h5>
  92. <div class="codewrapper">
  93. <pre><code class="lang-csharp hljs">public abstract class ClipboardBase : Object, IClipboard</code></pre>
  94. </div>
  95. <h3 id="constructors">Constructors
  96. </h3>
  97. <a id="Terminal_Gui_ClipboardBase__ctor_" data-uid="Terminal.Gui.ClipboardBase.#ctor*"></a>
  98. <h4 id="Terminal_Gui_ClipboardBase__ctor" data-uid="Terminal.Gui.ClipboardBase.#ctor">ClipboardBase()</h4>
  99. <div class="markdown level1 summary"></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">protected ClipboardBase()</code></pre>
  104. </div>
  105. <h3 id="properties">Properties
  106. </h3>
  107. <a id="Terminal_Gui_ClipboardBase_IsSupported_" data-uid="Terminal.Gui.ClipboardBase.IsSupported*"></a>
  108. <h4 id="Terminal_Gui_ClipboardBase_IsSupported" data-uid="Terminal.Gui.ClipboardBase.IsSupported">IsSupported</h4>
  109. <div class="markdown level1 summary">
  110. Returns true if the environmental dependencies are in place to interact with the OS clipboard
  111. </div>
  112. <div class="markdown level1 conceptual"></div>
  113. <h5 class="decalaration">Declaration</h5>
  114. <div class="codewrapper">
  115. <pre><code class="lang-csharp hljs">public abstract bool IsSupported { get; }</code></pre>
  116. </div>
  117. <h5 class="propertyValue">Property Value</h5>
  118. <table class="table table-bordered table-striped table-condensed">
  119. <thead>
  120. <tr>
  121. <th>Type</th>
  122. <th>Description</th>
  123. </tr>
  124. </thead>
  125. <tbody>
  126. <tr>
  127. <td><span class="xref">System.Boolean</span></td>
  128. <td></td>
  129. </tr>
  130. </tbody>
  131. </table>
  132. <h3 id="methods">Methods
  133. </h3>
  134. <a id="Terminal_Gui_ClipboardBase_GetClipboardData_" data-uid="Terminal.Gui.ClipboardBase.GetClipboardData*"></a>
  135. <h4 id="Terminal_Gui_ClipboardBase_GetClipboardData" data-uid="Terminal.Gui.ClipboardBase.GetClipboardData">GetClipboardData()</h4>
  136. <div class="markdown level1 summary">
  137. Get the operation system clipboard.
  138. </div>
  139. <div class="markdown level1 conceptual"></div>
  140. <h5 class="decalaration">Declaration</h5>
  141. <div class="codewrapper">
  142. <pre><code class="lang-csharp hljs">public string GetClipboardData()</code></pre>
  143. </div>
  144. <h5 class="returns">Returns</h5>
  145. <table class="table table-bordered table-striped table-condensed">
  146. <thead>
  147. <tr>
  148. <th>Type</th>
  149. <th>Description</th>
  150. </tr>
  151. </thead>
  152. <tbody>
  153. <tr>
  154. <td><span class="xref">System.String</span></td>
  155. <td></td>
  156. </tr>
  157. </tbody>
  158. </table>
  159. <h5 class="exceptions">Exceptions</h5>
  160. <table class="table table-bordered table-striped table-condensed">
  161. <thead>
  162. <tr>
  163. <th>Type</th>
  164. <th>Condition</th>
  165. </tr>
  166. </thead>
  167. <tbody>
  168. <tr>
  169. <td><span class="xref">System.NotSupportedException</span></td>
  170. <td>Thrown if it was not possible to read the clipboard contents</td>
  171. </tr>
  172. </tbody>
  173. </table>
  174. <a id="Terminal_Gui_ClipboardBase_GetClipboardDataImpl_" data-uid="Terminal.Gui.ClipboardBase.GetClipboardDataImpl*"></a>
  175. <h4 id="Terminal_Gui_ClipboardBase_GetClipboardDataImpl" data-uid="Terminal.Gui.ClipboardBase.GetClipboardDataImpl">GetClipboardDataImpl()</h4>
  176. <div class="markdown level1 summary">
  177. Get the operation system clipboard.
  178. </div>
  179. <div class="markdown level1 conceptual"></div>
  180. <h5 class="decalaration">Declaration</h5>
  181. <div class="codewrapper">
  182. <pre><code class="lang-csharp hljs">protected abstract string GetClipboardDataImpl()</code></pre>
  183. </div>
  184. <h5 class="returns">Returns</h5>
  185. <table class="table table-bordered table-striped table-condensed">
  186. <thead>
  187. <tr>
  188. <th>Type</th>
  189. <th>Description</th>
  190. </tr>
  191. </thead>
  192. <tbody>
  193. <tr>
  194. <td><span class="xref">System.String</span></td>
  195. <td></td>
  196. </tr>
  197. </tbody>
  198. </table>
  199. <a id="Terminal_Gui_ClipboardBase_SetClipboardData_" data-uid="Terminal.Gui.ClipboardBase.SetClipboardData*"></a>
  200. <h4 id="Terminal_Gui_ClipboardBase_SetClipboardData_System_String_" data-uid="Terminal.Gui.ClipboardBase.SetClipboardData(System.String)">SetClipboardData(String)</h4>
  201. <div class="markdown level1 summary">
  202. Sets the operation system clipboard.
  203. </div>
  204. <div class="markdown level1 conceptual"></div>
  205. <h5 class="decalaration">Declaration</h5>
  206. <div class="codewrapper">
  207. <pre><code class="lang-csharp hljs">public void SetClipboardData(string text)</code></pre>
  208. </div>
  209. <h5 class="parameters">Parameters</h5>
  210. <table class="table table-bordered table-striped table-condensed">
  211. <thead>
  212. <tr>
  213. <th>Type</th>
  214. <th>Name</th>
  215. <th>Description</th>
  216. </tr>
  217. </thead>
  218. <tbody>
  219. <tr>
  220. <td><span class="xref">System.String</span></td>
  221. <td><span class="parametername">text</span></td>
  222. <td></td>
  223. </tr>
  224. </tbody>
  225. </table>
  226. <h5 class="exceptions">Exceptions</h5>
  227. <table class="table table-bordered table-striped table-condensed">
  228. <thead>
  229. <tr>
  230. <th>Type</th>
  231. <th>Condition</th>
  232. </tr>
  233. </thead>
  234. <tbody>
  235. <tr>
  236. <td><span class="xref">System.NotSupportedException</span></td>
  237. <td>Thrown if it was not possible to set the clipboard contents</td>
  238. </tr>
  239. </tbody>
  240. </table>
  241. <a id="Terminal_Gui_ClipboardBase_SetClipboardDataImpl_" data-uid="Terminal.Gui.ClipboardBase.SetClipboardDataImpl*"></a>
  242. <h4 id="Terminal_Gui_ClipboardBase_SetClipboardDataImpl_System_String_" data-uid="Terminal.Gui.ClipboardBase.SetClipboardDataImpl(System.String)">SetClipboardDataImpl(String)</h4>
  243. <div class="markdown level1 summary">
  244. Sets the operation system clipboard.
  245. </div>
  246. <div class="markdown level1 conceptual"></div>
  247. <h5 class="decalaration">Declaration</h5>
  248. <div class="codewrapper">
  249. <pre><code class="lang-csharp hljs">protected abstract void SetClipboardDataImpl(string text)</code></pre>
  250. </div>
  251. <h5 class="parameters">Parameters</h5>
  252. <table class="table table-bordered table-striped table-condensed">
  253. <thead>
  254. <tr>
  255. <th>Type</th>
  256. <th>Name</th>
  257. <th>Description</th>
  258. </tr>
  259. </thead>
  260. <tbody>
  261. <tr>
  262. <td><span class="xref">System.String</span></td>
  263. <td><span class="parametername">text</span></td>
  264. <td></td>
  265. </tr>
  266. </tbody>
  267. </table>
  268. <a id="Terminal_Gui_ClipboardBase_TryGetClipboardData_" data-uid="Terminal.Gui.ClipboardBase.TryGetClipboardData*"></a>
  269. <h4 id="Terminal_Gui_ClipboardBase_TryGetClipboardData_System_String__" data-uid="Terminal.Gui.ClipboardBase.TryGetClipboardData(System.String@)">TryGetClipboardData(out String)</h4>
  270. <div class="markdown level1 summary">
  271. Gets the operation system clipboard if possible.
  272. </div>
  273. <div class="markdown level1 conceptual"></div>
  274. <h5 class="decalaration">Declaration</h5>
  275. <div class="codewrapper">
  276. <pre><code class="lang-csharp hljs">public bool TryGetClipboardData(out string result)</code></pre>
  277. </div>
  278. <h5 class="parameters">Parameters</h5>
  279. <table class="table table-bordered table-striped table-condensed">
  280. <thead>
  281. <tr>
  282. <th>Type</th>
  283. <th>Name</th>
  284. <th>Description</th>
  285. </tr>
  286. </thead>
  287. <tbody>
  288. <tr>
  289. <td><span class="xref">System.String</span></td>
  290. <td><span class="parametername">result</span></td>
  291. <td>Clipboard contents read</td>
  292. </tr>
  293. </tbody>
  294. </table>
  295. <h5 class="returns">Returns</h5>
  296. <table class="table table-bordered table-striped table-condensed">
  297. <thead>
  298. <tr>
  299. <th>Type</th>
  300. <th>Description</th>
  301. </tr>
  302. </thead>
  303. <tbody>
  304. <tr>
  305. <td><span class="xref">System.Boolean</span></td>
  306. <td>true if it was possible to read the OS clipboard.</td>
  307. </tr>
  308. </tbody>
  309. </table>
  310. <a id="Terminal_Gui_ClipboardBase_TrySetClipboardData_" data-uid="Terminal.Gui.ClipboardBase.TrySetClipboardData*"></a>
  311. <h4 id="Terminal_Gui_ClipboardBase_TrySetClipboardData_System_String_" data-uid="Terminal.Gui.ClipboardBase.TrySetClipboardData(System.String)">TrySetClipboardData(String)</h4>
  312. <div class="markdown level1 summary">
  313. Sets the operation system clipboard if possible.
  314. </div>
  315. <div class="markdown level1 conceptual"></div>
  316. <h5 class="decalaration">Declaration</h5>
  317. <div class="codewrapper">
  318. <pre><code class="lang-csharp hljs">public bool TrySetClipboardData(string text)</code></pre>
  319. </div>
  320. <h5 class="parameters">Parameters</h5>
  321. <table class="table table-bordered table-striped table-condensed">
  322. <thead>
  323. <tr>
  324. <th>Type</th>
  325. <th>Name</th>
  326. <th>Description</th>
  327. </tr>
  328. </thead>
  329. <tbody>
  330. <tr>
  331. <td><span class="xref">System.String</span></td>
  332. <td><span class="parametername">text</span></td>
  333. <td></td>
  334. </tr>
  335. </tbody>
  336. </table>
  337. <h5 class="returns">Returns</h5>
  338. <table class="table table-bordered table-striped table-condensed">
  339. <thead>
  340. <tr>
  341. <th>Type</th>
  342. <th>Description</th>
  343. </tr>
  344. </thead>
  345. <tbody>
  346. <tr>
  347. <td><span class="xref">System.Boolean</span></td>
  348. <td>True if the clipboard content was set successfully</td>
  349. </tr>
  350. </tbody>
  351. </table>
  352. <h3 id="implements">Implements</h3>
  353. <div>
  354. <a class="xref" href="Terminal.Gui.IClipboard.html">IClipboard</a>
  355. </div>
  356. </article>
  357. </div>
  358. <div class="hidden-sm col-md-2" role="complementary">
  359. <div class="sideaffix">
  360. <nav class="bs-docs-sidebar hidden-print hidden-xs hidden-sm affix" id="affix">
  361. <h5>In This Article</h5>
  362. <div></div>
  363. </nav>
  364. </div>
  365. </div>
  366. </div>
  367. </div>
  368. <footer>
  369. <div class="grad-bottom"></div>
  370. <div class="footer">
  371. <div class="container">
  372. <span class="pull-right">
  373. <a href="#top">Back to top</a>
  374. </span>
  375. <span>Generated by <strong>DocFX</strong></span>
  376. </div>
  377. </div>
  378. </footer>
  379. </div>
  380. <script type="text/javascript" src="../../styles/docfx.vendor.js"></script>
  381. <script type="text/javascript" src="../../styles/docfx.js"></script>
  382. <script type="text/javascript" src="../../styles/main.js"></script>
  383. </body>
  384. </html>