iTextSharp.tool.xml.css.StyleAttrCSSResolver.SplitRules C# (CSharp) Method

SplitRules() private method

private SplitRules ( String>.IDictionary css, String key, String value ) : void
css String>.IDictionary
key String
value String
return void
        private void SplitRules(IDictionary<String, String> css, String key, String value)
        {
            if (Util.EqualsIgnoreCase(CSS.Property.BORDER, key)) {
                CssUtils.MapPutAll(css, utils.ParseBorder(value));
            } else if (Util.EqualsIgnoreCase(CSS.Property.MARGIN, key)) {
                CssUtils.MapPutAll(css, utils.ParseBoxValues(value, "margin-", ""));
            } else if (Util.EqualsIgnoreCase(CSS.Property.BORDER_WIDTH, key)) {
                CssUtils.MapPutAll(css, utils.ParseBoxValues(value, "border-", "-width"));
            } else if (Util.EqualsIgnoreCase(CSS.Property.BORDER_STYLE, key)) {
                CssUtils.MapPutAll(css, utils.ParseBoxValues(value, "border-", "-style"));
            } else if (Util.EqualsIgnoreCase(CSS.Property.BORDER_COLOR, key)) {
                CssUtils.MapPutAll(css, utils.ParseBoxValues(value, "border-", "-color"));
            } else if (Util.EqualsIgnoreCase(CSS.Property.PADDING, key)) {
                CssUtils.MapPutAll(css, utils.ParseBoxValues(value, "padding-", ""));
            } else if (Util.EqualsIgnoreCase(CSS.Property.FONT, key)) {
                CssUtils.MapPutAll(css, utils.ProcessFont(value));
            } else if (Util.EqualsIgnoreCase(CSS.Property.LIST_STYLE, key)) {
                CssUtils.MapPutAll(css, utils.ProcessListStyle(value));
            } else {
                css[key] = value;
            }
        }