Toolbars of HtmlEditor Control refer to the bars where many buttons and drop-down lists of various tools are located. With these Toolbars, users can have a better interaction with the HtmlEditor. For example, you can copy selected text from the HtmlEditor with an easy click on the Copy button that is displayed on the toolbar of the HtmlEditor.
Beside, in order to ensure that users can have a better experience with the html editor, developers may need to populate the tools that have similar or at least related functions into one group. And the grouping work for these buttons and drop-down lists can be easily achieved using the EditorToolGroup property. Remarkably, the PerHtmlEditor Control also enables users to separate the buttons & drop-down lists within one group using EditorSeparator property.
And within one html editor, the number of toolbars is not limited. And within one toolbar, the number of editor tool groups is also not fixed. In this section, we will tell developers how to customize the settings of html editor toolbar using C# .NET programming code. C# Code for Setting Toolbar of HtmlEditor Control
Following is an easy example for how to set up toolbar of HtmlEditor Control using C# code. EditorToolGroup group1 = new EditorToolGroup(); Configure Toolbar by Loading Information from XML File
Apart from above method to set toolbar using C# code programmatically, the PerHtmlEditor Control also enable users to create toolbar from the information that is loaded from xml file. Following example is listed to illustrate how to set up toolbar of html editor with the values that are contained in target xml file. XML File<root> C# CodePerHtmlEditor1.ToolsFile = "BasicTools.xml"; |
ASP.NET AJAX UI Controls ASP.NET AJAX Chart UI Control ASP.NET AJAX Grid UI Control ASP.NET AJAX Barcode UI Control ASP.NET AJAX Button UI Control ASP.NET AJAX Calendar UI Control ASP.NET AJAX NavigationBar UI Control ASP.NET AJAX Captcha UI Control ASP.NET AJAX Color Editor UI Control ASP.NET AJAX ComboBox UI Control ASP.NET AJAX DataPager UI Control ASP.NET AJAX Dock UI Control ASP.NET AJAX DropDownList UI Control ASP.NET AJAX DropDownTree UI Control ASP.NET AJAX HtmlEditor UI Control OverviewGetting StartedToolBars IntroductionModes and DockingButtonDropDowns FontParagraph StylesColorsCSS StylesInsert TableDialogs IntroductionFormat Code BlockXHTML ValidatorSpellcheckerModulesFeatures Edit modesEditor ShowingTrack ChangesCommentsImport and ExportManaging Content FormattingClient Prpgramming HtmlEditor EventASP.NET AJAX FileManager UI Control ASP.NET AJAX Filter UI Control ASP.NET AJAX Input UI Control ASP.NET AJAX ListBox UI Control ASP.NET AJAX ListView UI Control ASP.NET AJAX ToolBar UI Control ASP.NET AJAX TabControl UI Control ASP.NET AJAX Menu UI Control ASP.NET AJAX ToolTip UI Control |