Search Results for

    Show / Hide Table of Contents

    Class HtmlTagWriter

    Inheritance
    System.Object
    HtmlTagWriter
    Implements
    IHtmlWriter
    Namespace: ImageVault.Common.Html
    Assembly: ImageVault.Common.dll
    Syntax
    public class HtmlTagWriter : Object, IHtmlWriter

    Constructors

    HtmlTagWriter(String, HtmlClosingTag)

    Declaration
    public HtmlTagWriter(string tagName, HtmlClosingTag closingTag)
    Parameters
    Type Name Description
    System.String tagName
    HtmlClosingTag closingTag

    Methods

    AppendChild(String, HtmlClosingTag)

    Appends a child to the writer

    Declaration
    public HtmlTagWriter AppendChild(string tagName, HtmlClosingTag closingTag)
    Parameters
    Type Name Description
    System.String tagName
    HtmlClosingTag closingTag
    Returns
    Type Description
    HtmlTagWriter

    AppendText(String)

    Declaration
    public void AppendText(string text)
    Parameters
    Type Name Description
    System.String text

    RemoveAttribute(String)

    Removes the attribute with the supplied name

    Declaration
    public void RemoveAttribute(string name)
    Parameters
    Type Name Description
    System.String name

    SetAttribute(String, Boolean)

    Sets a boolean attribute

    Declaration
    public void SetAttribute(string attributeName, bool value)
    Parameters
    Type Name Description
    System.String attributeName
    System.Boolean value

    SetAttribute(String, String)

    Sets the supplied attribute

    Declaration
    public void SetAttribute(string name, string value = null)
    Parameters
    Type Name Description
    System.String name
    System.String value

    SetIfExists(String, String)

    Sets the attribute if it's value exists in the supplied context

    Declaration
    public void SetIfExists(string attributeName, string attributeValue)
    Parameters
    Type Name Description
    System.String attributeName
    System.String attributeValue

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    System.String

    Write(StringBuilder)

    Declaration
    public void Write(StringBuilder sb)
    Parameters
    Type Name Description
    System.Text.StringBuilder sb

    Implements

    IHtmlWriter

    Extension Methods

    HtmlTagWriterExtensions.SetStandardAttributes(HtmlTagWriter, RenderContext)
    EnumExtensions.GetNames<TEnum>(TEnum)
    In This Article
    Back to top (c) Meriworks 2002-2022