JavaScript Editor JavaScript Editor     JavaScript Debugger

Previous Section Next Section

Main Page

Using the ToolBar Class

As discussed in the In Depth section of this chapter, this is the ToolBar Class; here is the hierarchy of this class:

Object
   MarshalByRefObject
      Component
         Control
            ToolBar

You can find the notable public properties of ToolBar objects in Table 10.13, and the notable public events in Table 10.14. Note that I'm omitting the properties, methods, and events toolbars inherit from the Control class, which you can find in Chapter 5, Tables 5.1, 5.2, and 5.3.

Table 10.13: Noteworthy public properties of ToolBar objects.

Property

Means

Appearance

Gets/sets the toolbar's appearance.

AutoSize

Gets/sets whether the toolbar can change its size automatically.

BorderStyle

Gets/sets the toolbar's border style.

Buttons

Gets the collection of buttons in the toolbar.

ButtonSize

Gets/sets the size of buttons in the toolbar.

Divider

Gets/sets whether the toolbar shows a divider.

DropDownArrows

Gets/sets if drop-down buttons display down arrows.

ImageList

Gets/sets the collection of images for the toolbar buttons.

ImageSize

Gets the size of the images in the image list assigned to the toolbar.

ShowToolTips

Gets/sets if the toolbar displays a tool tip for each button.

TextAlign

Gets/sets the alignment of text in the toolbar button controls.

Wrappable

Gets/sets if toolbar buttons wrap to the next line as needed.

Table 10.14: Noteworthy public events of ToolBar objects.

Event

Means

ButtonClick

Occurs when a button in the toolbar is clicked.

ButtonDropDown

Occurs when a drop-down button or its down arrow is clicked.

Previous Section Next Section




JavaScript Editor Free JavaScript Editor     JavaScript Editor