Exemple #1
0
        /// <summary>
        /// Create a deep clone of this Header object.
        /// </summary>
        /// <remarks>A possible Attached Style wouldn't be cloned!</remarks>
        /// <returns>
        /// A clone of this object.
        /// </returns>
        public object Clone()
        {
            Header headerClone = null;

            if (this.Document != null && this.Node != null)
            {
                MainContentProcessor mcp = new MainContentProcessor(this.Document);
                headerClone = mcp.CreateHeader(this.Node.CloneNode(true));
            }

            return(headerClone);
        }
Exemple #2
0
        /// <summary>
        /// Create a deep clone of this Header object.
        /// </summary>
        /// <remarks>A possible Attached Style wouldn't be cloned!</remarks>
        /// <returns>
        /// A clone of this object.
        /// </returns>
        public object Clone()
        {
            Header headerClone = null;

            if (Document != null && Node != null)
            {
                MainContentProcessor mcp = new MainContentProcessor(Document);
                headerClone = mcp.CreateHeader(new XElement(Node));
            }

            return(headerClone);
        }