RadEditor for ASP.NET

Real Font Sizes Send comments on this topic.
DropDowns > Real Font Sizes

Glossary Item Box

 

The Real Font Sizes dropdown of Telerik RadEditor displays a predefined set of font sizes in pixels and points. To activate this tool on the Telerik RadEditor's toolbar you should add the <tool name="RealFontSize"/> declaration in the ToolsFile.xml:

ToolsFile.xml Copy Code
<tools name="MainToolbar" isribbon="false" dockable="true">
    <tool name="RealFontSize"/>
    <tool name="AjaxSpellCheck"/>
    ...
</tools>


All sizes are held in the RealFontSizes Collection. You can easily modify this default set of dropdown items using the Add method for this collection:

ASPX/ASCX Copy Code
<rad:RadEditor id="RadEditor1" Runat="server"></rad:RadEditor>
C# Copy Code
RadEditor1.RealFontSizes.Add("12pt");
RadEditor1.RealFontSizes.Add(
"18pt");
RadEditor1.RealFontSizes.Add(
"22px");
RadEditor1.RealFontSizes.Add(
"37px");
RadEditor1.RealFontSizes.Add(
"59px");
VB.NET Copy Code
RadEditor1.RealFontSizes.Add("12pt")
RadEditor1.RealFontSizes.Add("18pt")
RadEditor1.RealFontSizes.Add("22px")
RadEditor1.RealFontSizes.Add("37px")
RadEditor1.RealFontSizes.Add("59px")


You can also populate the Real Font Sizes dropdown using the ToolsFile.xml, as shown in the example below:

ToolsFile.xml Copy Code
 <realFontSizes>
   
<item value="12pt"></item>
   
<item value="18pt"></item>
   
<item value="22px"></item>
   
<item value="27px"></item>
   
<item value="37px"></item>
   
<item value="59px"></item>
 
</realFontSizes>


Default state

Programmatic population




The RealFontSizes dropdown contains the default
set of fonts)
 


(The RealFontSizes dropdown contains only those
added using the Add method)