// --- public static HighlightingColor GetAreaStyle(TextAreaType area) { if(area == TextAreaType.SequenceNumber) { return SequenceNumberAreaStyle; } else if(area == TextAreaType.Indicator) { return IndicatorAreaStyle; } else if(area == TextAreaType.Comment) { return CommentAreaStyle; } return null; }
// --- public static HighlightingColor GetAreaStyle(TextAreaType area) { if (area == TextAreaType.SequenceNumber) { return(SequenceNumberAreaStyle); } else if (area == TextAreaType.Indicator) { return(IndicatorAreaStyle); } else if (area == TextAreaType.Comment) { return(CommentAreaStyle); } return(null); }
public TextArea(TextAreaType type, int startIndex, int endIndex) { Type = type; StartIndex = startIndex; EndIndex = endIndex; }
public void Process_Should_Set_Standard_TextArea_Type_ClassAttribute(TextAreaType type) { _tagHelper.TextAreaType = type; _tagHelper.Process(_tagHelperContext, _tagHelperOutput); Assert.Equal(CssClasses.NhsUkTextArea, _tagHelperOutput.Attributes[HtmlAttributes.ClassAttribute].Value); }