Beispiel #1
0
        /// <summary>
        /// Adds a new Hyperlink as a new paragraph. To insert a Hyperlink into a paragraph use the Hyperlink function of the paragraph.
        /// </summary>
        /// <param name="type">The type.</param>
        public MezHyperlink AddHyperLink(HyperlinkType type = HyperlinkType.Local)
        {
            var result = new MezHyperlink(new Hyperlink()).Type(type);

            Section.AddParagraph().Add(result);
            return(result);
        }
Beispiel #2
0
        /// <summary>
        /// Adds a hyper link. Note that it returns the MezHyperlink, not the initial MezParagraph - chaining of Paragraph methods ends at AddHyperlink.
        /// </summary>
        public MezHyperlink AddHyperLink(string target, HyperlinkType type = HyperlinkType.Local)
        {
            var result = new MezHyperlink(Paragraph.AddHyperlink(target, type));

            return(result);
        }