CmisSync.CmisTree.InvalidPatternConverter.Convert C# (CSharp) Метод

Convert() публичный Метод

Converts the given bool into the FontStyle italic, if it is true
public Convert ( object value, Type targetType, object parameter, System culture ) : object
value object Is an invalid pattern found
targetType System.Type FontStyle
parameter object parameter is ignored
culture System Culture will be ignored
Результат object
        public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            bool ignored = (bool)value;
            if (ignored)
                return FontStyles.Italic;
            else
                return FontStyles.Normal;
        }
InvalidPatternConverter