KaxEditorFontNames Property |
Gets the collection containing the custom font names to put in the Font dropdown.
Namespace: Kettic.AspNet.ControlsAssembly: 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; }
<PersistenceModeAttribute(PersistenceMode.InnerProperty)>
Public ReadOnly Property FontNames As EditorFontCollection
Get
public:
[PersistenceModeAttribute(PersistenceMode::InnerProperty)]
property EditorFontCollection^ FontNames {
EditorFontCollection^ get ();
}
[<PersistenceModeAttribute(PersistenceMode.InnerProperty)>]
member FontNames : EditorFontCollection with get
Property Value
Type:
EditorFontCollection
A string collection containing the custom font names to put in the Font dropdown.
Default is an
empty StringCollection.
RemarksThe 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");
}
Private Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs) Handles MyBase.Load
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")
End Sub
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
See Also