Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /*************************************************************************************
  2. DocX – DocX is the community edition of Xceed Words for .NET
  3. Copyright (C) 2009-2016 Xceed Software Inc.
  4. This program is provided to you under the terms of the Microsoft Public
  5. License (Ms-PL) as published at http://wpftoolkit.codeplex.com/license
  6. For more features and fast professional support,
  7. pick up Xceed Words for .NET at https://xceed.com/xceed-words-for-net/
  8. ***********************************************************************************/
  9. using System;
  10. namespace Xceed.Words.NET
  11. {
  12. public sealed class Font
  13. {
  14. public Font(string name)
  15. {
  16. if (string.IsNullOrEmpty(name))
  17. throw new ArgumentNullException(nameof(name));
  18. Name = name;
  19. }
  20. public string Name
  21. {
  22. get;
  23. private set;
  24. }
  25. public override string ToString()
  26. {
  27. return Name;
  28. }
  29. }
  30. }