private static bool ParseCssRectangleSideProperty(string styleValue, ref int nextIndex, Hashtable localProperties, string propertyName)
        {
            styleValue = styleValue.Replace("em", "").Replace("EM", "");
            int num = propertyName.LastIndexOf('-');

            if (num >= 0)
            {
                string str   = propertyName.Substring(num);
                bool   flag  = false;
                bool   flag2 = false;
                string text  = HtmlCssParser.ParseCssBorderSize(styleValue, ref nextIndex, true);
                if (text != null)
                {
                    localProperties["border-width" + str] = text;
                    flag = true;
                }
                string text2 = HtmlCssParser.ParseCssBorderStyle(styleValue, ref nextIndex);
                if (text2 != null)
                {
                    localProperties["border-style" + str] = text2;
                    if (text2 != "none")
                    {
                        flag2 = true;
                    }
                }
                string text3 = HtmlCssParser.ParseCssColor(styleValue, ref nextIndex);
                if (text3 != null)
                {
                    localProperties["border-color" + str] = text3;
                }
                text = HtmlCssParser.ParseCssBorderSize(styleValue, ref nextIndex, true);
                if (text != null)
                {
                    localProperties["border-width" + str] = text;
                    flag = true;
                }
                if (flag || !flag2)
                {
                }
                return(true);
            }
            return(false);
        }
        private static bool ParseCssRectangleProperty(string styleValue, ref int nextIndex, Hashtable localProperties, string propertyName)
        {
            styleValue = styleValue.Replace("em", "").Replace("EM", "");
            string text = (propertyName == "border-color") ? HtmlCssParser.ParseCssColor(styleValue, ref nextIndex) : ((propertyName == "border-style") ? HtmlCssParser.ParseCssBorderStyle(styleValue, ref nextIndex) : HtmlCssParser.ParseCssBorderSize(styleValue, ref nextIndex, true));

            if (text != null)
            {
                localProperties[propertyName + "-top"]    = text;
                localProperties[propertyName + "-bottom"] = text;
                localProperties[propertyName + "-right"]  = text;
                localProperties[propertyName + "-left"]   = text;
                text = ((propertyName == "border-color") ? HtmlCssParser.ParseCssColor(styleValue, ref nextIndex) : ((propertyName == "border-style") ? HtmlCssParser.ParseCssBorderStyle(styleValue, ref nextIndex) : HtmlCssParser.ParseCssBorderSize(styleValue, ref nextIndex, true)));
                if (text != null)
                {
                    localProperties[propertyName + "-right"] = text;
                    localProperties[propertyName + "-left"]  = text;
                    text = ((propertyName == "border-color") ? HtmlCssParser.ParseCssColor(styleValue, ref nextIndex) : ((propertyName == "border-style") ? HtmlCssParser.ParseCssBorderStyle(styleValue, ref nextIndex) : HtmlCssParser.ParseCssBorderSize(styleValue, ref nextIndex, true)));
                    if (text != null)
                    {
                        localProperties[propertyName + "-bottom"] = text;
                        text = ((propertyName == "border-color") ? HtmlCssParser.ParseCssColor(styleValue, ref nextIndex) : ((propertyName == "border-style") ? HtmlCssParser.ParseCssBorderStyle(styleValue, ref nextIndex) : HtmlCssParser.ParseCssBorderSize(styleValue, ref nextIndex, true)));
                        if (text != null)
                        {
                            localProperties[propertyName + "-left"] = text;
                        }
                    }
                }
                return(true);
            }
            return(false);
        }