Hello,
I want to convert styles from a String to a Form object.
So ifound that i can use FontConverter that will do just that... as
in the help:
// Create the FontConverter.
TypeConverter converter =
TypeDescriptor. GetConverter(ty peof(Font));
Font font = (Font) converter.Conve rtFromString("A rial, 12pt");
except that it only seems ot take FontFamily and FontSize, but won't
understand FontStyle (Bold, Italic etc...)
Does anyone know of a converter that does it all?
Thanks for help!
I want to convert styles from a String to a Form object.
So ifound that i can use FontConverter that will do just that... as
in the help:
// Create the FontConverter.
TypeConverter converter =
TypeDescriptor. GetConverter(ty peof(Font));
Font font = (Font) converter.Conve rtFromString("A rial, 12pt");
except that it only seems ot take FontFamily and FontSize, but won't
understand FontStyle (Bold, Italic etc...)
Does anyone know of a converter that does it all?
Thanks for help!
Comment