protected virtual Control CreateLabel(ControlStruct cs) { Label label = new Label(); if ((cs.Type == ControlType.Blank) || (cs.Type == ControlType.Line)) return label; label.Text = cs.Label; label.CssClass = TitleLabelStyle.CssClass; return label; }