本文整理汇总了C#中IBuilder.CreateElement方法的典型用法代码示例。如果您正苦于以下问题:C# IBuilder.CreateElement方法的具体用法?C# IBuilder.CreateElement怎么用?C# IBuilder.CreateElement使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类IBuilder
的用法示例。
在下文中一共展示了IBuilder.CreateElement方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: BaseElement
/// <summary>
/// The <c><base></c> tag specifies the base URL/target for all relative URLs in a document.
/// There can be at maximum one <c><base></c> element in a document, and it must be inside the <c><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);
}
示例2: BlockQuoteElement
/// <summary>
/// The <c><blockquote></c> tag specifies a section that is quoted from another source. <remarks></remarks>
/// Browsers usually indent <c><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);
}
示例3: ScriptElement
public static IHtmlElement ScriptElement(IBuilder builder, IHtmlAttributes attributes = null)
{
return builder.CreateElement("script", false, attributes);
}
示例4: ColumnElement
/// <summary>
/// The <c><col></c> tag defines a table caption. <remarks></remarks>
/// The <c><col></c> tag must be inserted immediately after the <c><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);
}
示例5: AudioElement
/// <summary>
/// The <c><audio></c> tag defines sound, such as music or other audio streams.
/// Currently, there are 3 supported file formats for the <c><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);
}
示例6: ButtonElement
/// <summary>
/// The <c><button></c> tag defines a clickable button.<remarks></remarks>
/// Inside a <c><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><input></c> element. <remarks></remarks>
/// Tip: Always specify the type attribute for a <c><button></c> element. Different browsers use different default types for the <c><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);
}
示例7: AbbreviationElement
/// <summary>
/// The <c><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);
}