Version

GridBagConstraint Class Properties

For a list of all members of this type, see GridBagConstraint members.

Public Properties
 NameDescription
Public PropertyAnchorIf the display area of the item is larger than the item, this property indicates where to anchor the item.  
Public PropertyDisposed (Inherited from Infragistics.Shared.DisposableObject)
Public 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,

 
Public PropertyInsetsIndicates the padding around the layout item.  
Public 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 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 Relative. OriginX should be a non-negative value.

 
Public 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 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 Relative. OriginY should be a non-negative value.

 
Public PropertySpanX

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

 
Public PropertySpanY

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

 
Public PropertyTag (Inherited from Infragistics.Shared.SubObjectBase)
Public 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.  
Public 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.  
Protected Properties
 NameDescription
Protected PropertySubObjectPropChangeHandler (Inherited from Infragistics.Shared.SubObjectBase)
See Also