|
Configuring customizable toolbars.
.NET Win HTML Editor 4.x facilitates you
with two completely customizable toolbar controls. Here you can get the real time Visual Studio ToolStrip Control Interface.
This control comes with a set of ToolStripItems that can be manipulated any way you want. You can change the positions of the
items and also you can move up or down the items from one toolbar to another toolbar. In addition to the factory shipped items,
you can add as many items as you want to any of these toolbars. If you want to keep some of the items and have only one toolbar,
you can do that too. You can simply delete these toolbars by selecting them and hitting the Delete button of your keyboard. Once
you deleted those toolbars, you can not bring them back, so if you need any toolbar in the future after you deleted them, you
will require to deleting the instance of the html control and placing a new instance into your form. You can also hide factory items from
the toolbars or even edit their properties like changing tooltip text, image icon and many other properties.
You can Dock any of the toolbars to any side you want. These toolbars are public
modifiable components so you can set any of the properties of any of these toolbars
using the Visual Studio property editor.
Rearranging Factory shipped Toolbar items from Visual Studio Design Mode:
If you want to rearrange the factory shipped toolbar items, you can easily do that using
the enhanced design time support. To do this, simply select the editor and then on the right click context
menu select Properties. From the Properties window select FactoryToolbarItems.
It is a collection of factory items. Click the button to get the FactoryItemCollection Editor
window. Here you will see the list of all factory items. Here you can do the following tasks,
Change property of any of the toolbar items.
Take off any of the items from any of the toolbars (Top or Bottom).
Show up any of the previously hid toolbar items on any of the toolbars (Top or
bottom)
Shift any toolbar item from any of the toolbar (Top or Bottom) to the other toolbar(Top
or Bottom)
Change position of any of the toolbar items.
Please follow the following steps to understand this usage.
Step 1: Select Factory Toolbar Item
Step 2: The Property Window for each item
Step 3: Select the item to edit properties

You can also take any item from any of the tool bars. Just set the visible property of the specific toolbar item to false
After the change NEW button is shifted to the lower strip.
You can change position of any of the toolbar items by scrolling through the down or up arrow button near the members List box.
It is to be noted that the factory items are serially placed from left to right from top to bottom. So to position an item to a new place, you need to serially find their position by scrolling. And
if you need to change their toolstrip you need to set the HostToolStrip property as shown.
So, to property as shown.
So, to sum up.
- Position the item with the arrow keys and place them serially in the right order by scrolling up or down by the arrow button.
- If you need to place the item on another toolstrip, change the HostToolStrip property of the current item.
For example, to Place the NEW button after the Font Color Picker button NEW button, the New button is first placed in the position right after the Font Color Picker button (see following image).
The new position is serially found out from left to right by scrolling through the arrow button. Then the HostToolStripis case the NEW button)is changed as the new position is on the bootom strip.

|