Esempio n. 1
0
        /// <summary>
        /// Deal hyperlinks in document are the same as the Sitecore token, so thus should
        /// be transferred to Sitecore as is if the author does not edit the hyperlink text
        /// </summary>
        /// <param name="hyperlink"></param>
        /// <returns></returns>
        public static bool IsADealHyperlink(Hyperlink hyperlink)
        {
            if (!WordUtils.IsHyperlinkValid(hyperlink))
            {
                return(false);
            }

            return(hyperlink != null &&
                   (hyperlink.ScreenTip != null &&
                    (hyperlink.ScreenTip.Equals(DealTooltip))));
        }