using Blacklight.Core; using System; namespace Glass.Blacklight { /// /// Gives a text box the clipboard of the host it runs on. /// public sealed class HostClipboard : IClipboard { private readonly IHostClipboard host; public HostClipboard(IHostClipboard host) { this.host = host ?? throw new ArgumentNullException(nameof(host)); } public bool TryGetText(out string text) { return host.TryGetText(out text); } public void SetText(string text) { host.SetText(text); } } }