HtmlAttributeCollectionStyleExists Method

Return a value indicating whether the specified style exists in the supplied attributes collection.

Definition

Namespace: Html
Assembly: Html (in Html.dll) Version: 25.2822.3845
C#
public static bool StyleExists(
	HtmlAttributeCollection attributes,
	string styleName
)

Parameters

attributes  HtmlAttributeCollection
Reference to the collection of attributes to search.
styleName  String
Name of the style to search for.

Return Value

Boolean
True if the specified style is found within the given attributes collection. Otherwise, false.

See Also