SystemClipboardItem Class

A system clipboard item (https://w3c.github.io/clipboard-apis/#system-clipboard-item): the representations of the same data.

public sealed class SystemClipboardItem

Constructors

NameDescription
SystemClipboardItem(IReadOnlyList<SystemClipboardRepresentation>, PresentationStyle)Creates a system clipboard item with the given representations and presentation style.

SystemClipboardItem(IReadOnlyList<SystemClipboardRepresentation>, PresentationStyle)

SystemClipboard.cs

Creates a system clipboard item with the given representations and presentation style.

public SystemClipboardItem(IReadOnlyList<SystemClipboardRepresentation> representations, PresentationStyle presentationStyle = PresentationStyle.Unspecified)

Parameters

representations IReadOnlyList<SystemClipboardRepresentation>
presentationStyle PresentationStyle

Properties

NameDescription
PresentationStyleGets whether the item should be inserted inline or as an attachment when it is pasted.
RepresentationsGets the representations of the item.

PresentationStyle

SystemClipboard.cs

Gets whether the item should be inserted inline or as an attachment when it is pasted.

public PresentationStyle PresentationStyle { get; }

Property value

PresentationStyle

Representations

SystemClipboard.cs

Gets the representations of the item.

public IReadOnlyList<SystemClipboardRepresentation> Representations { get; }

Methods

NameDescription
GetRepresentation(string)Returns the representation with the name, or null.

GetRepresentation(string)

SystemClipboard.cs

Returns the representation with the name, or null.

public SystemClipboardRepresentation? GetRepresentation(string name)