当前位置: 首页>>代码示例>>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;未经允许,请勿转载。