当前位置: 首页>>代码示例>>C#>>正文


C# IBuilder.CreateElement方法代码示例

本文整理汇总了C#中IBuilder.CreateElement方法的典型用法代码示例。如果您正苦于以下问题:C# IBuilder.CreateElement方法的具体用法?C# IBuilder.CreateElement怎么用?C# IBuilder.CreateElement使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在IBuilder的用法示例。


在下文中一共展示了IBuilder.CreateElement方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: BaseElement

 /// <summary>
 /// The <c>&lt;base></c> tag specifies the base URL/target for all relative URLs in a document.
 /// There can be at maximum one <c>&lt;base></c> element in a document, and it must be inside the <c>&lt;head></c> element. <remarks> </remarks>
 ///  
 /// For more information see: <see cref="http://www.w3schools.com/tags/tag_base.asp"/>
 /// </summary>
 /// <param name="builder">Builder for the Html Component</param>
 /// <param name="attributes">Standard HTML Attributes (optional)</param>
 /// <returns></returns>
 public static IHtmlElement BaseElement(IBuilder builder, IHtmlAttributes attributes = null)
 {
     return builder.CreateElement("base", true, attributes);
 }
开发者ID:Marvin-Brouwer,项目名称:CodedViews,代码行数:13,代码来源:Base.cs

示例2: BlockQuoteElement

 /// <summary>
 /// The <c>&lt;blockquote></c> tag specifies a section that is quoted from another source. <remarks></remarks>
 /// Browsers usually indent <c>&lt;blockquote></c> elements.<remarks> </remarks>
 /// 
 /// For more information see: <see cref="http://www.w3schools.com/tags/tag_blockquote.asp"/>
 /// </summary>
 /// <param name="builder">Builder for the Html Component</param>
 /// <param name="attributes">Standard HTML Attributes (optional)</param>
 /// <returns></returns>
 public static IHtmlElement BlockQuoteElement(IBuilder builder, IHtmlAttributes attributes = null)
 {
     return builder.CreateElement("blockquote", false, attributes);
 }
开发者ID:Marvin-Brouwer,项目名称:CodedViews,代码行数:13,代码来源:BlockQuote.cs

示例3: ScriptElement

 public static IHtmlElement ScriptElement(IBuilder builder, IHtmlAttributes attributes = null)
 {
     return builder.CreateElement("script", false, attributes);
 }
开发者ID:Marvin-Brouwer,项目名称:CodedViews,代码行数:4,代码来源:Script.cs

示例4: ColumnElement

 /// <summary>
 /// The <c>&lt;col></c> tag defines a table caption. <remarks></remarks>
 /// The <c>&lt;col></c> tag must be inserted immediately after the <c>&lt;table></c> tag. <remarks></remarks>
 /// Note: You can specify only one caption per table. <remarks></remarks>
 /// Tip: By default, a table caption will be center-aligned above a table. However, the CSS properties text-align and caption-side can be used to align and place the caption. <remarks> </remarks>
 /// 
 /// For more information see: <see cref="http://www.w3schools.com/tags/tag_col.asp"/>
 /// </summary>
 /// <param name="builder">Builder for the Html Component</param>
 /// <param name="attributes">Standard HTML Attributes (optional)</param>
 /// <returns></returns>
 public static IHtmlElement ColumnElement(IBuilder builder, IHtmlAttributes attributes = null)
 {
     return builder.CreateElement("col", false, attributes);
 }
开发者ID:Marvin-Brouwer,项目名称:CodedViews,代码行数:15,代码来源:Column.cs

示例5: AudioElement

 /// <summary>
 /// The <c>&lt;audio></c> tag defines sound, such as music or other audio streams.
 /// Currently, there are 3 supported file formats for the <c>&lt;audio></c> element: MP3, Wav, and Ogg:<remarks> </remarks>
 /// 
 /// For more information see: <see cref="http://www.w3schools.com/tags/tag_audio.asp"/>
 /// </summary>
 /// <param name="builder">Builder for the Html Component</param>
 /// <param name="attributes">Standard HTML Attributes (optional)</param>
 /// <returns></returns>
 public static IHtmlElement AudioElement(IBuilder builder, IHtmlAttributes attributes = null)
 {
     return builder.CreateElement("a", false, attributes);
 }
开发者ID:Marvin-Brouwer,项目名称:CodedViews,代码行数:13,代码来源:Audio.cs

示例6: ButtonElement

 /// <summary>
 /// The <c>&lt;button></c> tag defines a clickable button.<remarks></remarks>
 /// Inside a <c>&lt;button></c> element you can put content, like text or images. <remarks></remarks>
 /// This is the difference between this element and buttons created with the <c>&lt;input></c> element. <remarks></remarks>
 /// Tip: Always specify the type attribute for a <c>&lt;button></c> element. Different browsers use different default types for the <c>&lt;button></c> element. <remarks> </remarks>
 /// 
 /// For more information see: <see cref="http://www.w3schools.com/tags/tag_button.asp"/>
 /// </summary>
 /// <param name="builder">Builder for the Html Component</param>
 /// <param name="attributes">Standard HTML Attributes</param>
 /// <returns></returns>
 public static IHtmlElement ButtonElement(IBuilder builder, IHtmlAttributes attributes = null)
 {
     return builder.CreateElement("button", false, attributes);
 }
开发者ID:Marvin-Brouwer,项目名称:CodedViews,代码行数:15,代码来源:Button.cs

示例7: AbbreviationElement

 /// <summary>
 /// The <c>&lt;abbr></c> tag defines an abbreviation or an acronym, like "Mr.", "Dec.", "ASAP", "ATM". <remarks></remarks>
 /// Tip: An abbreviation and an acronym are both shortened versions of something else. Both is often represented as a series of letters. <remarks></remarks>
 /// Marking up abbreviations can give useful information to browsers, translation systems and search-engines. <remarks> </remarks>
 /// 
 /// For more information see: <see cref="http://www.w3schools.com/tags/tag_abbr.asp"/>
 /// </summary>
 /// <param name="builder">Builder for the Html Component</param>
 /// <param name="attributes">Standard HTML Attributes (optional)</param>
 public static IHtmlElement AbbreviationElement(IBuilder builder, IHtmlAttributes attributes = null)
 {
     return builder.CreateElement("abbr", false, attributes);
 }
开发者ID:Marvin-Brouwer,项目名称:CodedViews,代码行数:13,代码来源:Abbreviation.cs


注:本文中的IBuilder.CreateElement方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。