Click or drag to resize

InputSizesHelperEnsureSizeClassPresent Method

Adds a class containing prefix and the size suffix ("lg" or "sm") associated with inputSize. If inputSize is Default, no class is added.

Namespace:  Bootstrap.A11y
Assembly:  Bootstrap.A11y (in Bootstrap.A11y.dll) Version: 1.1.0.0 (1.1.0.0)
Syntax
C#
public static void EnsureSizeClassPresent(
	WebControl control,
	InputSizes inputSize,
	string prefix
)

Parameters

control
Type: System.Web.UI.WebControlsWebControl
The WebControl to add the CssClass to.
inputSize
Type: Bootstrap.A11yInputSizes
The InputSizes.
prefix
Type: SystemString
A prefix to come before the suffix.
See Also