Gets or sets the font of the selected text.

Syntax

public string FontName { get; set; }
Public Property FontName() As String

Limitations

Runtime only.

Remarks

The property returns an empty string when the text selection contains multiple characters with mixed font names. The Selection.IsCommonValueSelected method can be used to check for mixed attributes.