System.Windows.Forms 2.0.0.0 System.Enum You control layout by choosing one of the members of with the property.

Stack Layouts

Stacking is the arranging of items beside each other at both ends of the . The following list describes the stack layouts. is the default. This setting causes the to alter its layout automatically in accordance with the property to handle dragging and docking scenarios. renders the items beside each other vertically. renders the items beside each other horizontally.

Other Features of Stack Layouts

determines the end of the to which the item is aligned. When items do not fit within the , an overflow button automatically appears. The property setting determines whether an item appears in the overflow area always, as needed, or never. In the event, you can inspect the property to determine whether an item was placed on the main , the overflow , or if it is not currently showing at all. The typical reasons why an item is not displayed are that the item did not fit on the main and its property was set to . Make a movable by putting it in a and setting its to .

Other Layout Options

The other layout options are and .

Flow Layout

layout is the default for , , and . It is similar to the . The features of layout are as follows: All of the features of are exposed by the property. You must cast the class to a class. You can use the and properties in code to align the items within the row. The property is ignored. In the event, you can inspect the property to determine whether an item was placed on the main or did not fit. The grip is not rendered, and therefore a in layout style in a cannot be moved. The overflow button is not rendered, and is ignored.

Table Layout

layout is the default for . It is similar to . The features of layout are as follows: All of the features of are exposed by the property. You must cast the class to a class. You can use the and properties in code to align the items within the table cell. The property is ignored. In the event, you can inspect the property to determine whether an item was placed on the main or did not fit. The grip is not rendered, and therefore a in layout style in a cannot be moved. The overflow button is not rendered, and is ignored.
Specifies the possible alignments with which the items of a can be displayed.
Field System.Windows.Forms.ToolStripLayoutStyle Specifies that items flow horizontally or vertically as necessary. 2.0.0.0 Field System.Windows.Forms.ToolStripLayoutStyle Specifies that items are laid out horizontally and overflow as necessary. 2.0.0.0 Field System.Windows.Forms.ToolStripLayoutStyle Specifies that items are laid out automatically. 2.0.0.0 Field System.Windows.Forms.ToolStripLayoutStyle Specifies that items are laid out flush left. 2.0.0.0 Field System.Windows.Forms.ToolStripLayoutStyle Specifies that items are laid out vertically, are centered within the control, and overflow as necessary. 2.0.0.0