Table of Contents

Class ClipboardHelperWinStd

Namespace
SunamoWinStd.Helpers
Assembly
SunamoWinStd.dll

Clipboard helper for Windows using TextCopy library.

public class ClipboardHelperWinStd
Inheritance
ClipboardHelperWinStd
Inherited Members
Extension Methods

Methods

ContainsText()

Checks if the clipboard contains text. Always returns true for this implementation.

public bool ContainsText()

Returns

bool

True.

GetLines()

Gets clipboard text split into lines.

public List<string> GetLines()

Returns

List<string>

List of lines from clipboard text.

GetText()

Gets the current clipboard text.

public string? GetText()

Returns

string

Clipboard text or null.

Instance()

Gets or creates the singleton instance. Must be a method because it is passed as Func.

public static ClipboardHelperWinStd Instance()

Returns

ClipboardHelperWinStd

The singleton instance.

SetLines(List<string>)

Sets clipboard text from a list of lines joined by newlines.

public void SetLines(List<string> list)

Parameters

list List<string>

Lines to set.

SetList(List<string>)

Sets clipboard text from a list joined by newlines.

public void SetList(List<string> list)

Parameters

list List<string>

Items to set.

SetText(string)

Sets clipboard text.

public void SetText(string text)

Parameters

text string

Text to set.

SetText(StringBuilder)

Sets clipboard text from a StringBuilder.

public void SetText(StringBuilder stringBuilder)

Parameters

stringBuilder StringBuilder

StringBuilder containing the text.

SetText2(string)

Sets clipboard text (alternative method).

public void SetText2(string text)

Parameters

text string

Text to set.

SetText3(string)

Sets clipboard text (alternative method).

public void SetText3(string text)

Parameters

text string

Text to set.