Version

IGridBagConstraint Interface Members

The following tables list the members exposed by IGridBagConstraint.

Public Properties
 NameDescription
 PropertyAnchorIf the display area of the item is larger than the item, this property indicates where to anchor the item.  
 PropertyFill

Fill indicates whether to resize the item to fill the extra space if the layout item's display area is larger than its size.

 
 PropertyInsetsIndicates the padding around the layout item.  
 PropertyOriginX

OriginX and OriginY define where the layout item will be placed in the virtual grid of the grid-bag layout. OriginX 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 OriginX 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. OriginX should be a non-negative value.

 
 PropertyOriginY

OriginX and OriginY define where the layout item will be placed in the virtual grid of the grid-bag layout. OriginX 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 OriginY 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. OriginY should be a non-negative value.

 
 PropertySpanX

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.

 
 PropertySpanY

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.

 
 PropertyWeightXIndicates 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 WeightX of all the items in the row.  
 PropertyWeightYIndicates 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 WeightY of all the items in the column.  
See Also