Auto Load DropDown Items
True
False
Format
Normal
Formatted
Address
Heading 1
Heading 2
Heading 3
Heading 4
Heading 5
Heading 6
Numbered List
Bulleted List
Directory List
Menu List
Definition Term
Definition
Format
Font
Arial
Arial Black
Comic Sans MS
Courier
Courier New
Fixedsys
Georgia
Impact
Lucida Console
Lucida Sans Unicode
MS Sans Serif
MS Serif
Marlett
Modern
Palatino Linotype
Roman
Script
Small Fonts
Symbol
System
Tahoma
Terminal
Times New Roman
Trebuchet MS
Verdana
Webdings
Wingdings
Font
Size
1 (8 pt)
2 (10 pt)
3 (12 pt)
4 (14 pt)
5 (18 pt)
6 (24 pt)
7 (36 pt)
Size
Description
You can use the
AutoPopulateItems
property to load the
FormatBlock
and
FontName
dropdown boxes either
automatically from the client machine, or from the language XML file under the UltimateEditorInclude\Languages folder.
If the AutoPopulateItems attribute of FormatBlock or FontName in the editor XML file (UltimateEditor.xml by default)
is set to True then the control will automatically load the
Paragraph
and
Font
dropdown boxes from the client machine.
Otherwise it loads them from the language XML file (English.xml by default) under the Languages folder.
Note that
editor
XML file and
language
XML files are connected over the
ID
attribute of each
ToolbarItem
element.
You can also define your own
font sizes
in
language
XML file by changing
ItemText
property as follows:
<
ToolbarItem
ID=
"FontSize"
>
<
DropDown
>
<
DropDownItem
ItemText=
"Size"
ItemValue=
""
/>
<
DropDownItem
ItemText=
"1 (8 pt)"
ItemValue=
"1"
/>
<
DropDownItem
ItemText=
"2 (10 pt)"
ItemValue=
"2"
/>
<
DropDownItem
ItemText=
"3 (12 pt)"
ItemValue=
"3"
/>
<
DropDownItem
ItemText=
"4 (14.5 pt)"
ItemValue=
"4"
/>
<
DropDownItem
ItemText=
"5 (18 pt)"
ItemValue=
"5"
/>
<
DropDownItem
ItemText=
"6 (24 pt)"
ItemValue=
"6"
/>
<
DropDownItem
ItemText=
"7 (36 pt)"
ItemValue=
"7"
/>
</
DropDown
>
</
ToolbarItem
>
The only limitation is that you can only define 7 font-sizes and
ItemValue
has to be an integer from 1 to 7.