Class Clipboards
Provides static methods for the clipboard access.
public static class Clipboards
- Inheritance
-
Clipboards
- Inherited Members
Methods
GetClipboard()
Gets the default clipboard implementation.
public static IClipboard GetClipboard()
Returns
- IClipboard
The platform clipboard implementation or VirtualClipboard if the platform clipboard is not supported.
GetPlatformClipboard()
Gets an implementation of the current platform clipboard.
public static IClipboard GetPlatformClipboard()
Returns
- IClipboard
An instance of the IClipboard interface for the current platform.
Exceptions
- PlatformNotSupportedException
Occurs when the current platform doesn't have the default clipboard implementation.
TryGetPlatformClipboard(out IClipboard?)
Tries to get the current platform clipboard implementation.
public static bool TryGetPlatformClipboard(out IClipboard? platformClipboard)
Parameters
platformClipboardIClipboardAn instance of the IClipboard interface for the current platform or null if there are no clipboard implementations for the current platform.