CalDavSynchronizer.Conversions.Msft.HtmlCssParser.ParseCssTextDecoration C# (CSharp) Метод

ParseCssTextDecoration() приватный статический Метод

private static ParseCssTextDecoration ( string styleValue, int &nextIndex, Hashtable localProperties ) : void
styleValue string
nextIndex int
localProperties System.Collections.Hashtable
Результат void
        private static void ParseCssTextDecoration(string styleValue, ref int nextIndex, Hashtable localProperties)
        {
            // Set default text-decorations:none;
            for (int i = 1; i < _textDecorations.Length; i++)
            {
                localProperties["text-decoration-" + _textDecorations[i]] = "false";
            }

            // Parse list of decorations values
            while (nextIndex < styleValue.Length)
            {
                string decoration = ParseWordEnumeration(_textDecorations, styleValue, ref nextIndex);
                if (decoration == null || decoration == "none")
                {
                    break;
                }
                localProperties["text-decoration-" + decoration] = "true";
            }
        }