예제 #1
0
        /// <summary>
        /// Creates a duplicate of the current value.
        /// </summary>
        /// <returns>The cloned value.</returns>
        /// <remarks>This method is a deep copy clone.</remarks>
        public object Clone()
        {
            var clone = (OpenExcelFill)MemberwiseClone();

            clone.PatternType     = (EnumValue <PatternValues>)PatternType?.Clone();
            clone.ForegroundColor = (ForegroundColor)ForegroundColor?.Clone();
            clone.BackgroundColor = (BackgroundColor)BackgroundColor?.Clone();

            return(clone);
        }