當前位置: 首頁>>代碼示例>>VB.NET>>正文


VB.NET HtmlTextWriter.WriteLine方法代碼示例

本文整理匯總了VB.NET中System.Web.UI.HtmlTextWriter.WriteLine方法的典型用法代碼示例。如果您正苦於以下問題:VB.NET HtmlTextWriter.WriteLine方法的具體用法?VB.NET HtmlTextWriter.WriteLine怎麽用?VB.NET HtmlTextWriter.WriteLine使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在System.Web.UI.HtmlTextWriter的用法示例。


在下文中一共展示了HtmlTextWriter.WriteLine方法的10個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的VB.NET代碼示例。

示例1: WriteLine

' Use the WriteLine(string,object,object) method to
' render a formatted string and two objects 
' in the string.
writer.RenderBeginTag(HtmlTextWriterTag.Label)
writer.WriteLine("The current cultural settings are {0}. Today's date is {1}.", _
    CultureInfo.CurrentCulture, DateTime.Today)
writer.RenderEndTag()
開發者ID:VB.NET開發者,項目名稱:System.Web.UI,代碼行數:7,代碼來源:HtmlTextWriter.WriteLine

示例2: testChars

Private testChars() As Char = _
    {"h"c, "e"c, "l"c, "l"c, "o"c, _
    HtmlTextWriter.SpaceChar, "w"c, "o"c, "r"c, "l"c, "d"c}
開發者ID:VB.NET開發者,項目名稱:System.Web.UI,代碼行數:3,代碼來源:HtmlTextWriter.WriteLine

示例3:

' Render a subarray of a character array
' as the contents of a <label> element.
writer.RenderBeginTag(HtmlTextWriterTag.Label)
writer.WriteLine(testChars, 0, 5)
writer.RenderEndTag()
開發者ID:VB.NET開發者,項目名稱:System.Web.UI,代碼行數:5,代碼來源:HtmlTextWriter.WriteLine

示例4:

' Render a formatted string and the
' text representation of an object array,
' myObjectArray, as the contents of
' a <label> element.
writer.RenderBeginTag(HtmlTextWriterTag.Label)
writer.WriteLine("The trade value at {1} is ${0}.", curPriceTime)
writer.RenderEndTag()
開發者ID:VB.NET開發者,項目名稱:System.Web.UI,代碼行數:7,代碼來源:HtmlTextWriter.WriteLine

示例5: WriteLine

' Use the WriteLine(string, object) method to
' render a formatted string and an object in it.
writer.RenderBeginTag(HtmlTextWriterTag.Label)
writer.WriteLine("The current cultural settings are {0}.", _
    CultureInfo.CurrentCulture)
writer.RenderEndTag()
開發者ID:VB.NET開發者,項目名稱:System.Web.UI,代碼行數:6,代碼來源:HtmlTextWriter.WriteLine

示例6: WriteLine

' Use the WriteLine(Single) method to render the
' Epsilon field of the Single structure. 
writer.RenderBeginTag(HtmlTextWriterTag.B)
writer.WriteLine(Single.Epsilon)
writer.RenderEndTag()
開發者ID:VB.NET開發者,項目名稱:System.Web.UI,代碼行數:5,代碼來源:HtmlTextWriter.WriteLine

示例7: WriteLine

' Use the WriteLine(Double) method to render
' the MaxValue field of the Double structure. 
writer.RenderBeginTag(HtmlTextWriterTag.Label)
writer.WriteLine(Double.MaxValue)
writer.RenderEndTag()
開發者ID:VB.NET開發者,項目名稱:System.Web.UI,代碼行數:5,代碼來源:HtmlTextWriter.WriteLine

示例8:

' Render a character array as the 
' contents of a <label> element.
writer.RenderBeginTag(HtmlTextWriterTag.Label)
writer.WriteLine(testChars)
writer.RenderEndTag()
開發者ID:VB.NET開發者,項目名稱:System.Web.UI,代碼行數:5,代碼來源:HtmlTextWriter.WriteLine

示例9:

' Control the encoding of attributes.
' Simple known values do not need encoding.
writer.AddAttribute(HtmlTextWriterAttribute.Alt, "Encoding, ""Required""", True)
writer.AddAttribute("myattribute", "No &quot;encoding &quot; required", False)
writer.RenderBeginTag(HtmlTextWriterTag.Img)
writer.RenderEndTag()
writer.WriteLine()
開發者ID:VB.NET開發者,項目名稱:System.Web.UI,代碼行數:7,代碼來源:HtmlTextWriter.WriteLine

示例10:

' Use the WriteLine method to render an arbitrary
' object, in this case a CutltureInfo object.
writer.RenderBeginTag(HtmlTextWriterTag.B)
writer.WriteLine(CultureInfo.CurrentCulture)
writer.RenderEndTag()
開發者ID:VB.NET開發者,項目名稱:System.Web.UI,代碼行數:5,代碼來源:HtmlTextWriter.WriteLine


注:本文中的System.Web.UI.HtmlTextWriter.WriteLine方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。