Export (0) Print
Expand All

FontDescription.DefaultCharacter Property

Dd231975.note(en-us,XNAGameStudio.31).gifNote
This property is available only when developing for Windows.
Gets or sets the default character for the font.

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

[ContentSerializerAttribute]
public Nullable<char> DefaultCharacter { get; set; }

Property Value

The default character for this font.

If set to anything other than null, this character will be automatically substituted any time an attempt is made to draw or measure characters that are not in the font.

If set to null, missing characters will produce an exception.

Windows XP SP2, Windows Vista

Community Additions

ADD
Show:
© 2014 Microsoft