Ejemplo n.º 1
0
        /// <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));
        }
Ejemplo n.º 2
0
        /// <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));
        }