Version 3.3.0.1

Clipboard class

Namespace: Sirenix.Utilities.Editor
Assembly: Sirenix.Utilities.Editor
public static class Clipboard
Functions for accessing the clipboard.
Inheritance
  • System.Object
  • Clipboard

Properties

CurrentCopyMode
Gets the current copy mode.
public static CopyModes CurrentCopyMode { get; }

Methods

CanPaste(Type)
Determines whether this instance can paste the specified type.
public static bool CanPaste(Type type)
Parameters
System.Type type

Returns
System.Boolean

CanPaste<T>()
Determines whether this instance can paste the specified type.
public static bool CanPaste<T>()
Returns
System.Boolean

Type Parameters
T

Clear()
Clears this instance.
public static void Clear()
Copy<T>(T)
Copies the specified object.
public static void Copy<T>(T obj)
Parameters
T obj

Type Parameters
T

Copy<T>(T, CopyModes)
Copies the specified object.
public static void Copy<T>(T obj, CopyModes copyMode)
Parameters
T obj

The object.

CopyModes copyMode

The copy mode.

Type Parameters
T

IsEmpty()
Determines whether or not the Clipboard contains any instance.
public static bool IsEmpty()
Returns
System.Boolean

Paste()
Copies or gets the current object in the clipboard.
public static object Paste()
Returns
System.Object

Paste<T>()
Copies or gets the current object in the clipboard.
public static T Paste<T>()
Returns
T

Type Parameters
T

TryPaste<T>(out T)
Tries the paste.
public static bool TryPaste<T>(out T value)
Parameters
T value

Returns
System.Boolean

Type Parameters
T