Esempio n. 1
0
 // ---
 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;
 }
Esempio n. 2
0
        // ---

        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);
        }
Esempio n. 3
0
 public TextArea(TextAreaType type, int startIndex, int endIndex)
 {
     Type       = type;
     StartIndex = startIndex;
     EndIndex   = endIndex;
 }
Esempio n. 4
0
 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);
 }