/// <summary> /// Create a deep clone of this XLink object. /// </summary> /// <remarks>A possible Attached Style wouldn't be cloned!</remarks> /// <returns> /// A clone of this object. /// </returns> public object Clone() { XLink xLinkClone = null; if (Document != null && Node != null) { TextContentProcessor tcp = new TextContentProcessor(); xLinkClone = tcp.CreateXLink(Document, new XElement(Node)); } return(xLinkClone); }
/// <summary> /// Create a deep clone of this XLink object. /// </summary> /// <remarks>A possible Attached Style wouldn't be cloned!</remarks> /// <returns> /// A clone of this object. /// </returns> public object Clone() { XLink xLinkClone = null; if (this.Document != null && this.Node != null) { TextContentProcessor tcp = new TextContentProcessor(); xLinkClone = tcp.CreateXLink(this.Document, this.Node.CloneNode(true)); } return(xLinkClone); }