Aracılığıyla paylaş


FontDescription.FontName Property

Note

This property is available only when developing for Windows.

Gets or sets the name of the font, such as "Times New Roman" or "Arial". This value cannot be null or empty.

Namespace: Microsoft.Xna.Framework.Content.Pipeline.Graphics
Assembly: Microsoft.Xna.Framework.Content.Pipeline (in microsoft.xna.framework.content.pipeline.dll)

Syntax

public string FontName { get; set; }

Property Value

The name of the font.

Exceptions

Exception type Condition
ArgumentNullException FontName is null or an empty string.

See Also

Reference

FontDescription Class
FontDescription Members
Microsoft.Xna.Framework.Content.Pipeline.Graphics Namespace

Platforms

Windows 7, Windows Vista, Windows XP