Version

IGridBagConstraint Interface Members

The following tables list the members exposed by IGridBagConstraint.

Public Properties
 NameDescription
 PropertyColumn

Column and Row define where the layout item will be placed in the virtual grid of the grid-bag layout. Column specifies the location horizontally while specifies the location vertically. These locations are the coordinates of the cells in the virtual grid that the grid-bag layout represents.

The leftmost cell has Column of 0. The constant GridBagConstraintConstants.Relative specifies that the item be placed just to the right of the item that was added to the layout manager just before this item was added.

The default value is GridBagConstraintConstants.Relative. Column should be a non-negative value.

 
 PropertyColumnSpan

Specifies the number of cells this item will span horizontally. The constant GridBagConstraintConstants.Remainder specifies that this item be the last one in the row and thus occupy remaining space.

 
 PropertyColumnWeightIndicates how the extra horizontal space will be distributed among items. Default value is 0.0. Higher values give higher priority. The weight of the column in the virtual grid the grid-bag layout represents is the maximum ColumnWeight of all the items in the row.  
 PropertyHorizontalAlignmentHorizontal alignment of the item within its logical cell.  
 PropertyMarginIndicates the padding around the layout item.  
 PropertyRow

Column and Row define where the layout item will be placed in the virtual grid of the grid-bag layout. Column specifies the location horizontally while specifies the location vertically. These locations are the coordinates of the cells in the virtual grid that the grid-bag layout represents.

The topmost cell has Row of 0. The constant GridBagConstraintConstants.Relative specifies that the item be placed just below the item that was added to the layout manager just before this item was added.

The default value is GridBagConstraintConstants.Relative. Row should be a non-negative value.

 
 PropertyRowSpan

Specifies the number of cells this item will span vertically. The constant GridBagConstraintConstants.Remainder specifies that this item be the last one in the column and thus occupy remaining space.

 
 PropertyRowWeightIndicates how the extra vertical space will be distributed among items. Default value is 0.0. Higher values give higher priority. The weight of the column in the virtual grid the grid-bag layout represents is the maximum RowWeight of all the items in the column.  
 PropertyVerticalAlignmentHorizontal alignment of the item within its logical row.  
See Also