| 12345678910111213141516171819202122232425262728293031323334353637383940 |
- /*************************************************************************************
-
- DocX – DocX is the community edition of Xceed Words for .NET
-
- Copyright (C) 2009-2016 Xceed Software Inc.
-
- This program is provided to you under the terms of the Microsoft Public
- License (Ms-PL) as published at http://wpftoolkit.codeplex.com/license
-
- For more features and fast professional support,
- pick up Xceed Words for .NET at https://xceed.com/xceed-words-for-net/
-
- ***********************************************************************************/
-
- using System;
-
- namespace Xceed.Words.NET
- {
- public sealed class Font
- {
- public Font(string name)
- {
- if (string.IsNullOrEmpty(name))
- throw new ArgumentNullException(nameof(name));
-
- Name = name;
- }
-
- public string Name
- {
- get;
- private set;
- }
-
- public override string ToString()
- {
- return Name;
- }
- }
- }
|