AODL.Document.Content.Text.Indexes.Bookmark.Clone C# (CSharp) Method

Clone() public method

Create a deep clone of this Bookmark object.
A possible Attached Style wouldn't be cloned!
public Clone ( ) : object
return object
		public object Clone()
		{
			Bookmark bookmarkClone			= null;

			if (this.Document != null && this.Node != null)
			{
				TextContentProcessor tcp	= new TextContentProcessor();
				bookmarkClone				= tcp.CreateBookmark(
					this.Document, this.Node.CloneNode(true), this.BookmarkType);
			}

			return bookmarkClone;
		}