public override bool Match(ConvertTextToElement parser, out object value)
        {
            // Match enabled
            if (parser.Match(parser.Kw(EnabledKey()), false))
            {
                value = true;
                return(true);
            }
            // Match disabled
            else if (parser.Match(parser.Kw(DisabledKey()), false))
            {
                value = false;
                return(true);
            }

            // Unknown
            value = null;
            return(false);
        }
        public override bool Match(ConvertTextToElement parser, out object value)
        {
            // Match the enumerator.
            foreach (string enumerator in Values)
            {
                if (parser.Match(parser.Kw(enumerator), false))
                {
                    // Return true if it is found.
                    value = enumerator;
                    return(true);
                }
            }

            // The value was not found.
            value = null;
            return(false);
        }