Artemis Artemis
Artemis Artemis

Search Results for

    Class ClipboardExtensions

    Provides extension methods for Avalonia's Avalonia.Input.Platform.IClipboard type.

    Inheritance
    object
    ClipboardExtensions
    Namespace: Artemis.UI.Shared.Extensions
    Assembly: Artemis.UI.Shared.dll
    Syntax
    public static class ClipboardExtensions

    Methods

    GetJsonAsync<T>(IClipboard, string)

    Retrieves clipboard JSON data representing T and deserializes it into an instance of T.

    Declaration
    public static Task<T?> GetJsonAsync<T>(this IClipboard clipboard, string format)
    Parameters
    Type Name Description
    IClipboard clipboard

    The clipboard to retrieve the data off.

    string format

    The data format to retrieve data for.

    Returns
    Type Description
    Task<T>

    The resulting value or if the clipboard did not contain data for the provided format; null.

    Type Parameters
    Name Description
    T

    The type of data to retrieve

    Content is available under the PolyForm Noncommercial License, by Artemis RGB.