Show / Hide Table of Contents

    Class HtmlAttributesExtensions

    Extension methods for the HtmlAttributes class.

    Inheritance
    System.Object
    HtmlAttributesExtensions
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: ChameleonForms
    Assembly: ChameleonForms.Core.dll
    Syntax
    public static class HtmlAttributesExtensions

    Methods

    | Improve this Doc View Source

    ToHtmlAttributes(IDictionary<String, Object>)

    Explicitly convert a dictionary to a HtmlAttributes class.

    Declaration
    public static HtmlAttributes ToHtmlAttributes(this IDictionary<string, object> htmlAttributes)
    Parameters
    Type Name Description
    System.Collections.Generic.IDictionary<System.String, System.Object> htmlAttributes

    A dictionary of HTML attributes

    Returns
    Type Description
    HtmlAttributes

    A new HtmlAttributes with the attributes

    | Improve this Doc View Source

    ToHtmlAttributes(Object)

    Convert from an anonymous object to a HtmlAttributes class.

    Declaration
    public static HtmlAttributes ToHtmlAttributes(this object htmlAttributes)
    Parameters
    Type Name Description
    System.Object htmlAttributes

    An anonymous object of HTML attributes

    Returns
    Type Description
    HtmlAttributes

    A new HtmlAttributes with the attributes

    • Improve this Doc
    • View Source
    Back to top © Copyright 2012-2020 MRCollective, Rob Moore, Matt Davies and the contributors to ChameleonForms.