Advertisement
Guest User

Untitled

a guest
Sep 25th, 2017
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. using Telerik.Sitefinity.Configuration;
  2.  
  3. namespace SitefinityWebApp
  4. {
  5. public class ModifyValuesPageAppearanceConfig
  6. {
  7. public static void ReadPageAppearanceConfig()
  8. {
  9. ConfigManager manager = ConfigManager.GetManager();
  10.  
  11. PageAppearanceConfig config = manager.GetSection<PageAppearanceConfig>();
  12.  
  13. config.Fonts.Add(new FontElement(config.Fonts)
  14. {
  15. Name = "TimesNewRoman",
  16. Size = 16,
  17. });
  18.  
  19. manager.SaveSection(config);
  20. }
  21. }
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement