/// <summary> /// Adds an <see cref="IDisplaySet"/> to the clipboard. /// </summary> /// <param name="displaySet"></param> /// <param name="selectionStrategy"></param> /// <remarks> /// When called, a copy of the specified <see cref="IPresentationImage"/>s /// (as determined by the <paramref name="selectionStrategy"/>) is made and stored /// in the clipbaord. This ensures that the <see cref="IPresentationImage"/> is in fact a /// snapshot and not a reference that could be changed in unpredictable ways. /// Pixel data, however, is not replicated. /// </remarks> public static void Add(IDisplaySet displaySet, IImageSelectionStrategy selectionStrategy) { Platform.CheckForNullReference(displaySet, "displaySet"); Platform.CheckForNullReference(selectionStrategy, "selectionStrategy"); Items.Add(ClipboardComponent.CreateDisplaySetItem(displaySet, selectionStrategy)); }
public void Show() { if (_shelf == null) { ClipboardComponent clipboardComponent = new ClipboardComponent(); _shelf = ApplicationComponent.LaunchAsShelf( this.Context.DesktopWindow, clipboardComponent, SR.TitleClipboard, "Clipboard", ShelfDisplayHint.DockLeft | ShelfDisplayHint.DockAutoHide); _shelf.Closed += OnShelfClosed; } else { _shelf.Show(); } }
public ClipboardToolContext(ClipboardComponent component) { Platform.CheckForNullReference(component, "component"); _component = component; }
/// <summary> /// Adds an <see cref="IDisplaySet"/> to the clipboard. /// </summary> /// <param name="displaySet"></param> /// <remarks> /// When called, a copy of the specified <see cref="IDisplaySet"/> is made and stored /// in the clipbaord. This ensures that the <see cref="IDisplaySet"/> is in fact a /// snapshot and not a reference that could be changed in unpredictable ways. /// Pixel data, however, is not replicated. /// </remarks> public static void Add(IDisplaySet displaySet) { Platform.CheckForNullReference(displaySet, "displaySet"); Items.Add(ClipboardComponent.CreateDisplaySetItem(displaySet)); }
/// <summary> /// Adds an <see cref="IPresentationImage"/> to the clipboard. /// </summary> /// <param name="image"></param> /// <remarks> /// When called, a copy of the specified <see cref="IPresentationImage"/> is made and stored /// in the clipbaord. This ensures that the <see cref="IPresentationImage"/> is in fact a /// snapshot and not a reference that could be changed in unpredictable ways. /// Pixel data, however, is not replicated. /// </remarks> public static void Add(IPresentationImage image) { Platform.CheckForNullReference(image, "image"); Items.Add(ClipboardComponent.CreatePresentationImageItem(image)); }