コード例 #1
0
        /// ------------------------------------------------------------------------------------
        /// <summary>
        /// Adds the specified text as a new hyperlink run with the text 'my link' to the
        /// specified paragraph
        /// </summary>
        /// <param name="para">The paragraph to add to</param>
        /// <param name="href">The href.</param>
        /// ------------------------------------------------------------------------------------
        private void AddHyperTo(XmlNotePara para, string href)
        {
            XmlHyperlinkRun run = new XmlHyperlinkRun();

            run.Text = "my link";
            run.Href = href;
            para.Runs.Add(run);
        }
コード例 #2
0
		/// ------------------------------------------------------------------------------------
		/// <summary>
		/// Adds the specified text as a new hyperlink run with the text 'my link' to the
		/// specified paragraph
		/// </summary>
		/// <param name="para">The paragraph to add to</param>
		/// <param name="href">The href.</param>
		/// ------------------------------------------------------------------------------------
		private void AddHyperTo(XmlNotePara para, string href)
		{
			XmlHyperlinkRun run = new XmlHyperlinkRun();
			run.Text = "my link";
			run.Href = href;
			para.Runs.Add(run);
		}