Class Font
Describes an external font resource used by branding.
[DataContract]
public sealed class Font
- Inheritance
-
Font
- Inherited Members
Constructors
Font(string)
Creates a font definition with a family name.
public Font(string name)
Parameters
namestringThe font family name.
Font(string, string)
Creates a font definition with a family name and downloadable URL.
public Font(string name, string url)
Parameters
Fields
Name
Stores the font family name advertised to renderers.
[DataMember(Name = "name", EmitDefaultValue = false)]
public string Name
Field Value
Properties
Url
Specifies a URL where the font can be obtained.
[DataMember(Name = "url", EmitDefaultValue = false)]
public string Url { get; set; }
Property Value
Exceptions
- ArgumentException
Thrown when the value is not a valid URL.