/// <summary> /// Clones this instance. /// </summary> /// <returns> /// A new object that is a copy of this instance. /// </returns> public XlsxCellContentOptions Clone() { var cloned = (XlsxCellContentOptions)MemberwiseClone(); if (Merge != null) { cloned.Merge = Merge.Clone(); } if (Pattern != null) { cloned.Pattern = Pattern.Clone(); } if (Alignment != null) { cloned.Alignment = Alignment.Clone(); } return(cloned); }