JavaScript Editor JavaScript Editor     JavaScript Debugger

Previous Section Next Section

Main Page

Using the Panel Class

As discussed in the In Depth section of this chapter, you can use panels to group controls together in a Windows form. Here is the class hierarchy of the Panel class:

Object
   MarshalByRefObject
      Component
         Control
            ScrollableControl
               Panel

You can find the more notable public properties of the Panel class in Table 6.8. Note that as with other controls, I am not listing the notable properties, methods, and events Panel inherits from the Control class, such as the Click event—you can see all that in Tables 5.1, 5.2, and 5.3 in Chapter 5.

Table 6.8: Noteworthy public properties of Panel objects.

Property

Means

AutoScroll

Specifies if the panel will display scroll bars if needed.

AutoScrollMargin

Gets/sets the size of the auto-scroll margin.

AutoScrollMinSize

Gets/sets the minimum size of the auto-scroll.

AutoScrollPosition

Gets/sets the location of the auto-scroll position.

DockPadding

Gets the dock padding settings for all edges of the panel.

Previous Section Next Section




JavaScript Editor Free JavaScript Editor     JavaScript Editor