Ejemplo n.º 1
0
        /// <summary>
        /// Clones this instance.
        /// </summary>
        /// <returns>
        /// A new object that is a copy of this instance.
        /// </returns>
        public PdfTextContentOptions Clone()
        {
            var cloned = (PdfTextContentOptions)MemberwiseClone();

            if (Alignment != null)
            {
                cloned.Alignment = Alignment.Clone();
            }

            return(cloned);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Clones this instance.
        /// </summary>
        /// <returns>
        /// A new object that is a copy of this instance.
        /// </returns>
        public XlsxShapeContentOptions Clone()
        {
            var cloned = (XlsxShapeContentOptions)MemberwiseClone();

            if (Alignment != null)
            {
                cloned.Alignment = Alignment.Clone();
            }

            if (Font != null)
            {
                cloned.Font = Font.Clone();
            }

            return(cloned);
        }
Ejemplo n.º 3
0
        /// <summary>
        /// Clones this instance.
        /// </summary>
        /// <returns>
        /// A new object that is a copy of this instance.
        /// </returns>
        public PdfTableStyleOptions Clone()
        {
            var cloned = (PdfTableStyleOptions)MemberwiseClone();

            if (Alignment != null)
            {
                cloned.Alignment = Alignment.Clone();
            }

            if (Content != null)
            {
                cloned.Content = Content.Clone();
            }

            return(cloned);
        }
Ejemplo n.º 4
0
        /// <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);
        }