JavaScript Editor JavaScript Editor     JavaScript Debugger

Previous Section Next Section

Main Page

Using the Panel Class

The Panel control is usually used as a container for other controls. It is especially useful when you want to create controls in code, or show and hide a group of controls at once. Here is the inheritance hierarchy of the Panel class:

Object
   Control
      WebControl
         Panel

You can find the notable public properties of Panel objects in Table 16.19. (This class has no non-inherited methods or events.) Note that as with other Web server controls, I am not listing the notable properties, methods, and events this class inherits from the Control and WebControl classes—you can find them in Chapter 15, Tables 15.1 to 15.5.

Table 16.19: Noteworthy public properties of Panel objects.

Property

Means

BackImageUrl

Gets/sets the background image's URL for the panel.

HorizontalAlign

Gets/sets the horizontal alignment of the panel's contents.

Wrap

Gets/sets whether the panel's content wraps.

Previous Section Next Section




JavaScript Editor Free JavaScript Editor     JavaScript Editor