Balakin.VSOutputEnhancer.StyleManager.GetStyleForClassificationType C# (CSharp) Method

GetStyleForClassificationType() public method

public GetStyleForClassificationType ( String classificationType ) : FormatDefinitionStyle
classificationType String
return FormatDefinitionStyle
        public FormatDefinitionStyle GetStyleForClassificationType(String classificationType)
        {
            if (Styles.ContainsKey(classificationType)) {
                return Styles[classificationType];
            }
            return new FormatDefinitionStyle();
        }

Usage Example

 protected StyledClassificationFormatDefinition(StyleManager styleManager)
     : this()
 {
     var style = styleManager.GetStyleForClassificationType(ClassificationTypeName);
     ForegroundColor = style.ForegroundColor;
 }