Click or drag to resize
KaxEditorFontNames Property
Gets the collection containing the custom font names to put in the Font dropdown.

Namespace: Kettic.AspNet.Controls
Assembly: Kettic.AspNet.Controls (in Kettic.AspNet.Controls.dll) Version: 2014.4.1129.0 (2014.04.1129.0)
Syntax
[PersistenceModeAttribute(PersistenceMode.InnerProperty)]
public EditorFontCollection FontNames { get; }

Property Value

Type: EditorFontCollection
A string collection containing the custom font names to put in the Font dropdown. Default is an empty StringCollection.
Remarks

The contents of this collection will override the default fonts available in the Font dropdown. In order to extend the default set you should add the default font names and the new font names. The default font names are: Arial, Comic Sans MS, Courier New, Tahoma, Times New Roman, Verdana.

Note: the fonts must exist on the client computer.

Examples
This example demonstrates how to add Arial Narrow font to the Font dropdown.
private void Page_Load(object sender, EventArgs e)
{
    KaxEditor1.FontNames.Add("Arial");
    KaxEditor1.FontNames.Add("Arial Narrow");
    KaxEditor1.FontNames.Add("Comic Sans MS");
    KaxEditor1.FontNames.Add("Courier New");
    KaxEditor1.FontNames.Add("Tahoma");
    KaxEditor1.FontNames.Add("Times New Roman");
    KaxEditor1.FontNames.Add("Verdana");
}
See Also