EAPCtrlUtilsHasCssClass Method |
Determines whether or not the specified control has the specified CssClass.
Note that if cssClass is null/empty then true is always returned.
Namespace:
NetQuarry
Assembly:
EAP.Core (in EAP.Core.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax public static bool HasCssClass(
Control ctrl,
string cssClass
)
Public Shared Function HasCssClass (
ctrl As Control,
cssClass As String
) As Boolean
Parameters
- ctrl
- Type: System.Web.UIControl
The control in question. - cssClass
- Type: SystemString
The CssClass for which to test.
Return Value
Type:
BooleanTrue if the control has the specified class (or the class is null/empty), else false.
See Also