Terminal.Gui.ClipboardBase.html 14 KB

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