Site Map | About Us | Contact Us  
 The same content in Microsoft HTML help file format is included in the download package.

Editor.ToolBarItems Property

Gets or sets the list of tool bar items.

[Visual Basic]
Public Property ToolBarItems As String
[C#]
public String ToolBarItems {get; set;}

Remarks

The editor supports a set of pre-defined commands. A toolbar button can be created for most of these commands. Use this property to customize the buttons to be displayed by specify a list of command names.

The following special characters are used to separate the command names:

Character Remark
; Separating toolbars. For example:
New,Copy,Cut,Paste;Bold,Underline,Italic
Creates two toolbars, the first toolbar includes four toolbar buttons: New, Copy, Cut and Paste. The second toolbar includes three toolbar buttons: Bold, Underline and Italic.
, Separating toolbar buttons. For example:
New,Copy,Cut,Paste
Creates a toolbar with four toolbar buttons: New, Copy, Cut and Paste.
:

Separating the command name and the tooltip text for the same toolbar item. For example:

New:New Document,Copy:Copy to Clipboard,Cut:Cut to Clipboard,Paste:Insert from Clipboard
Creates a toolbar with four toolbar buttons: New, Copy, Cut and Paste, with their tooltip text set to New Document, Copy to Clipboard, Cut to Clipboard and Paste from Clipboard respectively.

Since the editor supplies default tooltip text in English, this feature is often used to replace the default tooltip text, mostly for localize purpose.

,, Two consecutive "," creates a separator item. For example:
New,,Copy,Cut,Paste
Creates a toolbar with four toolbar buttons: New, Copy, Cut and Paste, with a separator between New and Copy.

See customizing toolbar for more details about how to customize toolbars.

See Also

Editor Class | EO.Web Namespace


Direct link to this topic