Skip to content

InputAPI reference

Class MemoryClipboard

Namespace: MicroEngine.Input
Assembly: MicroEngine.Input.dll
Guide: Input

A clipboard that only remembers its text: the headless platform’s, and a stand-in where there is no system clipboard.

C#
public sealed class MemoryClipboard : IClipboard

Inheritance

object ← MemoryClipboard

Implements

IClipboard

Constructors

MemoryClipboard()

C#
public MemoryClipboard()

Properties

Text

The text on this clipboard, or null.

C#
public string? Text { get; set; }

Property Value

string?

Methods

GetText()

The text on the clipboard; null when it holds no text or cannot be read.

C#
public string? GetText()

Returns

string?

SetText(string)

Puts text on the clipboard; returns whether the platform took it.

C#
public bool SetText(string text)

Parameters

text string

Returns

bool