Table of Contents

Class Clipboards

Namespace
Icy.Input.Clipboard
Assembly
IcyUI.dll

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

platformClipboard IClipboard

An instance of the IClipboard interface for the current platform or null if there are no clipboard implementations for the current platform.

Returns

bool

true if the clipboard for the current platform exists; otherwise false.