Skip to content
A netstandard package to copy text to and from the clipboard.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github/ISSUE_TEMPLATE
src
.gitignore
.travis.yml
license.txt
readme.md
readme.source.md

readme.md

TextCopy

A netstandard package to copy text to and from the clipboard.

NuGet NuGet Status

https://nuget.org/packages/TextCopy/

PM> Install-Package TextCopy

Usage

SetText

TextCopy.Clipboard.SetText("Text to place in clipboard");

snippet source

GetText

var text = TextCopy.Clipboard.GetText();

snippet source

Compatibility

Supported on:

  • Windows with .NET Framework 4.6.1 and up
  • Windows with .NET Core 2.0 and up
  • Windows with Mono 5.0 and up
  • OSX with .NET Core 2.0 and up
  • OSX with Mono 5.20.1 and up
  • Linux with .NET Core 2.0 and up
  • Linux with Mono 5.20.1 and up
  • Universal Windows Platform version 10.0.16299 and up

Not verified

The following may work but have not been verified:

  • Xamarin.iOS
  • Xamarin.Mac

If anyone verifies any of the above, please submit a Pull Request to the readme with the outcome.

Not supported

  • Xamarin.Android

If support is required, please submit a Pull Request that adds support.

Notes on Linux

Linux uses xclip to access the clipboard. As such it needs to be installed and callable.

Icon

Clone designed by Wes Breazell from The Noun Project

You can’t perform that action at this time.