private int GetFontSize(Style s) { if (string.IsNullOrEmpty(s.FontSize)) return 26; int o; if (int.TryParse(s.FontSize, out o)) return o; return 26; }