Aracılığıyla paylaş


FontDescription.Size Property

Note

This property is available only when developing for Windows.

Gets or sets the size, in points, of the font.

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

Syntax

public float Size { get; set; }

Property Value

The size, in points, of the font.

Exceptions

Exception type Condition
ArgumentOutOfRangeException Size is less than or equal to zero. Specify a value for this property that is greater than zero.

See Also

Reference

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

Platforms

Windows 7, Windows Vista, Windows XP