AODL.Document.Content.Text.Indexes.Bookmark.Clone C# (CSharp) Méthode

Clone() public méthode

Create a deep clone of this Bookmark object.
A possible Attached Style wouldn't be cloned!
public Clone ( ) : object
Résultat 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;
		}