CreateBookmark() публичный Метод

Creates the bookmark.
public CreateBookmark ( IDocument document, XmlNode node, BookmarkType type ) : Bookmark
document IDocument The document.
node System.Xml.XmlNode The node.
type BookmarkType The type.
Результат AODL.Document.Content.Text.Indexes.Bookmark
Пример #1
0
		/// <summary>
		/// Create a deep clone of this Bookmark object.
		/// </summary>
		/// <remarks>A possible Attached Style wouldn't be cloned!</remarks>
		/// <returns>
		/// A clone of this object.
		/// </returns>
		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;
		}