BootstrapExtensions.Base.Form.Label.LabelAndControl.LabelAndControl C# (CSharp) Метод

LabelAndControl() публичный Метод

public LabelAndControl ( System.Web.Mvc.ViewContext viewContext, string labelFor, string labelText, IHtmlString control ) : System.Collections.Generic
viewContext System.Web.Mvc.ViewContext
labelFor string
labelText string
control IHtmlString
Результат System.Collections.Generic
        public LabelAndControl(ViewContext viewContext, string labelFor, string labelText, IHtmlString control)
        {
            _labelFor = labelFor;
            _labelText = labelText;
            _control = control;
            _formLayout = viewContext.TempData["BootstrapFormLayout"].ToString();
            HtmlAttributes["class"] = "control-group";
        }