Terminal.Gui.ClipboardBase.html 14 KB

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