SystemClipboardItem Class
A system clipboard item (https://w3c.github.io/clipboard-apis/#system-clipboard-item): the representations of the same data.
public sealed class SystemClipboardItemConstructors
| Name | Description |
|---|---|
| SystemClipboardItem(IReadOnlyList<SystemClipboardRepresentation>, PresentationStyle) | Creates a system clipboard item with the given representations and presentation style. |
SystemClipboardItem(IReadOnlyList<SystemClipboardRepresentation>, PresentationStyle)
SystemClipboard.csCreates a system clipboard item with the given representations and presentation style.
public SystemClipboardItem(IReadOnlyList<SystemClipboardRepresentation> representations, PresentationStyle presentationStyle = PresentationStyle.Unspecified)Parameters
representationsIReadOnlyList<SystemClipboardRepresentation>presentationStylePresentationStyle
Properties
| Name | Description |
|---|---|
| PresentationStyle | Gets whether the item should be inserted inline or as an attachment when it is pasted. |
| Representations | Gets the representations of the item. |
PresentationStyle
SystemClipboard.csGets whether the item should be inserted inline or as an attachment when it is pasted.
public PresentationStyle PresentationStyle { get; }Property value
Representations
SystemClipboard.csGets the representations of the item.
public IReadOnlyList<SystemClipboardRepresentation> Representations { get; }Property value
Methods
| Name | Description |
|---|---|
| GetRepresentation(string) | Returns the representation with the name, or null. |
GetRepresentation(string)
SystemClipboard.csReturns the representation with the name, or null.
public SystemClipboardRepresentation? GetRepresentation(string name)