public InternalBookmark Clone() { InternalBookmark cloneObject = new InternalBookmark(); // domain foreach (InternalBookmarkDomain item in InternalBookmarkDomains) { cloneObject.InternalBookmarkDomains.Add(item.Clone()); } // pdetag foreach (PdeDataTagInfo item in PdeDataTagInfos) { cloneObject.PdeDataTagInfos.Add(item.Clone()); } return(cloneObject); }
/// <summary> /// check bookmark is generate by plugin or no /// </summary> /// <param name="bmName"></param> /// <returns></returns> public static bool IsProntoDocBookmark(string bmName, InternalBookmark ibm, bool isIncludeComment = false) { if (string.IsNullOrWhiteSpace(bmName)) { return(false); } if (ibm != null) { InternalBookmarkItem ibmItem = ibm.GetInternalBookmarkItem(bmName); if (ibmItem != null) { return(true); } } if (isIncludeComment) { return(IsProntoDocCommentBookmark(bmName)); } return(false); }