Table of Contents

Class Font

Namespace
C4.Net
Assembly
C4.Net.Core.dll

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

name string

The font family name.

Font(string, string)

Creates a font definition with a family name and downloadable URL.

public Font(string name, string url)

Parameters

name string

The font family name.

url string

The URL where the font can be obtained.

Fields

Name

Stores the font family name advertised to renderers.

[DataMember(Name = "name", EmitDefaultValue = false)]
public string Name

Field Value

string

Properties

Url

Specifies a URL where the font can be obtained.

[DataMember(Name = "url", EmitDefaultValue = false)]
public string Url { get; set; }

Property Value

string

Exceptions

ArgumentException

Thrown when the value is not a valid URL.