常用ToolBar工具名称
ParagraphMenu, FontFacesMenu, FontSizesMenu, FontForeColorsMenu,
FontForeColorPicker, FontBackColorsMenu, FontBackColorPicker, Bold, Italic, Underline,
Strikethrough, Superscript, Subscript, InsertImageFromGallery, CreateLink, Unlink,
RemoveFormat, JustifyLeft, JustifyRight, JustifyCenter, JustifyFull, BulletedList,
NumberedList, Indent, Outdent, Cut, Copy, Paste, Delete, Undo, Redo, Print, Save,
ieSpellCheck, StyleMenu, SymbolsMenu, InsertHtmlMenu, InsertRule, InsertDate,
InsertTime, WordClean, InsertImage, InsertTable, EditTable, InsertTableRowBefore,
InsertTableRowAfter, DeleteTableRow, InsertTableColumnBefore, InsertTableColumnAfter,
DeleteTableColumn, InsertForm, InsertForm, InsertTextBox, InsertTextArea,
InsertRadioButton, InsertCheckBox, InsertDropDownList, InsertButton, InsertDiv,
InsertImageFromGallery, Preview, SelectAll, EditStyle
简单使用方法 第二种方法
<Toolbars>
<FTB:Toolbar runat=“server“>
<FTB:工具名称 runat=“server“/>
</FTB:Toolbar>
</Toolbars>
第一种方法
在FreeTextBox中增加属性 ToolbarLayout
ToolbarLayout="paragraphmenu,fontsizesmenu;bold,italic,underline|
bulletedlist,numberedlist"
名称中间用“,”隔开,用“|”分隔,用“;”新增一个Toolbar
第三种方法
在Page_Load事件中增加代码
Toolbar toolbar1 = new Toolbar();
toolbar1.Items.Add(new ParagraphMenu());
toolbar1.Items.Add(new FontSizesMenu());
FreeTextBox1.Toolbars.Add(toolbar1);
Toolbar toolbar2 = new Toolbar();
toolbar2.Items.Add(new Bold());
toolbar2.Items.Add(new Italic());
toolbar2.Items.Add(new Underline());
toolbar2.Items.Add(new ToolbarSeparator());
toolbar2.Items.Add(new BulletedList());
toolbar2.Items.Add(new NumberedList());
FreeTextBox1.Toolbars.Add(toolbar2);
Toolbar toolbar3 = new Toolbar();
StyleMenu styleMenu = new StyleMenu();
styleMenu.Items.Add(new ToolbarListItem("Highlight","Highlight"));
styleMenu.Items.Add(new ToolbarListItem("SmallCaps","smallcaps"));
toolbar3.Items.Add(styleMenu);
FreeTextBox1.Toolbars.Add(toolbar3);
FontForeColorPicker, FontBackColorsMenu, FontBackColorPicker, Bold, Italic, Underline,
Strikethrough, Superscript, Subscript, InsertImageFromGallery, CreateLink, Unlink,
RemoveFormat, JustifyLeft, JustifyRight, JustifyCenter, JustifyFull, BulletedList,
NumberedList, Indent, Outdent, Cut, Copy, Paste, Delete, Undo, Redo, Print, Save,
ieSpellCheck, StyleMenu, SymbolsMenu, InsertHtmlMenu, InsertRule, InsertDate,
InsertTime, WordClean, InsertImage, InsertTable, EditTable, InsertTableRowBefore,
InsertTableRowAfter, DeleteTableRow, InsertTableColumnBefore, InsertTableColumnAfter,
DeleteTableColumn, InsertForm, InsertForm, InsertTextBox, InsertTextArea,
InsertRadioButton, InsertCheckBox, InsertDropDownList, InsertButton, InsertDiv,
InsertImageFromGallery, Preview, SelectAll, EditStyle
bulletedlist,numberedlist"
toolbar1.Items.Add(new ParagraphMenu());
toolbar1.Items.Add(new FontSizesMenu());
FreeTextBox1.Toolbars.Add(toolbar1);
toolbar2.Items.Add(new Bold());
toolbar2.Items.Add(new Italic());
toolbar2.Items.Add(new Underline());
toolbar2.Items.Add(new ToolbarSeparator());
toolbar2.Items.Add(new BulletedList());
toolbar2.Items.Add(new NumberedList());
Toolbar toolbar3 = new Toolbar();
StyleMenu styleMenu = new StyleMenu();
styleMenu.Items.Add(new ToolbarListItem("Highlight","Highlight"));
styleMenu.Items.Add(new ToolbarListItem("SmallCaps","smallcaps"));
toolbar3.Items.Add(styleMenu);
FreeTextBox1.Toolbars.Add(toolbar3);