ElementExtensions
Defines a set of extension methods for elements.
Adds the specified class name(s) for all elements in the given
collection.
Inserts the nodes generated from the given HTML code after
each element of the provided elements.
Appends the nodes generated from the given HTML code to each
element of the provided elements.
public static T Attr<T>(this T elements, string attributeName, string attributeValue) where T : IEnumerable<IElement>
Sets the specified attribute name to the specified value for all
elements in the given collection.
public static T Attr<T>(this T elements, IEnumerable<KeyValuePair<string, string>> attributes) where T : IEnumerable<IElement>
Sets the specified attribute name to the specified value for all
elements in the given collection.
Sets the specified attribute name to the specified value for all
elements in the given collection.
Inserts the nodes generated from the given HTML code before
each element of the provided elements.
public static T Css<T>(this T elements, string propertyName, string propertyValue) where T : IEnumerable<IElement>
Extends the CSS of the given elements with the specified
declarations.
public static T Css<T>(this T elements, IEnumerable<KeyValuePair<string, string>> properties) where T : IEnumerable<IElement>
Extends the CSS of the given elements with the specified
declarations.
Extends the CSS of the given elements with the specified
declarations.
Empties all provided elements.
Checks if any element in the given collection has the given
class(es).
Gets the inner HTML of the given element.
Sets the inner HTML of the given elements.
Prepends the nodes generated from the given HTML code to each
element of the provided elements.
Removes the specified class name(s) for all elements in the given
collection.
Toggles the specified class name(s) for all elements in the given
collection.
Wraps the given elements in the inner most element of the tree
generated form the provided HTML code.
Wraps all elements in the inner most element of the tree
generated form the provided HTML code. The tree is appended before
the first element of the given list.
Wraps the content of the given elements in the inner most element
of the tree generated form the provided HTML code.