コード例 #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PlainTextString"/> class
 /// and specifies initial text for the object to contain.
 /// </summary>
 ///
 /// <param name="htmlText">Initial value of the object.</param>
 ///
 /// <remarks>
 /// The <P>htmlText</P> will be converted to plain text by a call to <Mth>HttpUtility.HtmlDecode</Mth>.
 /// </remarks>
 ///
 internal PlainTextString(HtmlString htmlText)
 {
     m_plainText = HttpUtility.HtmlDecode(htmlText);
 }
コード例 #2
0
 internal void AddAttribute(HtmlTextWriterAttribute key, HtmlString html)
 {
     m_htmlTextWriter.AddAttribute(key, (string)html, false);
 }
コード例 #3
0
 internal void WriteHtml(HtmlString html)
 {
     m_htmlTextWriter.Write(html);
 }
コード例 #4
0
 internal void AddAttribute(string name, HtmlString html)
 {
     m_htmlTextWriter.AddAttribute(name, (string)html, false);
 }