Gets the collection containing the custom font names to put in the Font dropdown.
Namespace: Telerik.WebControls
Assembly: RadEditor (in RadEditor.dll)
Syntax
| Visual Basic (Declaration) | |
|---|
Public ReadOnly Property FontNames As StringCollection |
Return Value
A string collection containing the custom font names to put in the Font dropdown.
Default is an
empty StringCollection.
Example
This example demonstrates how to add Arial Narrow font to the Font dropdown.
| Visual Basic | Copy Code |
|---|
Private Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs) Handles MyBase.Load
RadEditor1.FontNames.Add("Arial")
RadEditor1.FontNames.Add("Arial Narrow")
RadEditor1.FontNames.Add("Comic Sans MS")
RadEditor1.FontNames.Add("Courier New")
RadEditor1.FontNames.Add("Tahoma")
RadEditor1.FontNames.Add("Times New Roman")
RadEditor1.FontNames.Add("Verdana")
End Sub
|
| C# | Copy Code |
|---|
private void Page_Load(object
sender, EventArgs e)
{
RadEditor1.FontNames.Add("Arial");
RadEditor1.FontNames.Add("Arial Narrow");
RadEditor1.FontNames.Add("Comic Sans MS");
RadEditor1.FontNames.Add("Courier New");
RadEditor1.FontNames.Add("Tahoma");
RadEditor1.FontNames.Add("Times New Roman");
RadEditor1.FontNames.Add("Verdana");
}
|
Remarks
Requirements
Platforms: Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family
See Also