Esempio n. 1
0
        private string ConvertToString(string format, IFormatProvider provider)
        {
            string str;

            if (!XFontWeights.FontWeightToString(Weight, out str))
            {
                return(Weight.ToString(provider));
            }
            return(str);
        }
Esempio n. 2
0
        internal string ConvertToString(string format, IFormatProvider provider)
        {
            provider = provider ?? CultureInfo.InvariantCulture;
            string str;

            if (!XFontWeights.FontWeightToString(Weight, out str))
            {
                return(Weight.ToString(format, provider));
            }
            return(str);
        }