Version

GridBagLayoutManager Class Members

The following tables list the members exposed by GridBagLayoutManager.

Public Constructors
 NameDescription
Public ConstructorGridBagLayoutManager ConstructorConstructor.  
Public Properties
 NameDescription
Public PropertyColumnWidthsReturns the preferred column widths of the gridbag layout. You can change them however they get recalculated once the layout is invalidated. Layout also gets invalidated whenever a layout item is added or removed.  
Public PropertyExpandToFitHeightIndicates whether to proportionally resize heights of all the items to fit any extra height. This would only get applied if all the items had 0.0 weightY's.  
Public PropertyExpandToFitWidthIndicates whether to proportionally resize widths of all the items to fit any extra width. This would only get applied if all the items had 0.0 weightX's.  
Public PropertyLayoutItemsLayout items collection. (Inherited from Infragistics.Win.Layout.LayoutManagerBase)
Public PropertyMinColumnWidthsReturns the minimum column widths of the gridbag layout. You can change them however they get recalculated once the layout is invalidated. Layout also gets invalidated whenever a layout item is added or removed.  
Public PropertyMinRowHeightsReturns the minumum row heights of the gridbag layout. You can change them however they get recalculated once the layout is invalidated. Layout also gets invalidated whenever a layout item is added or removed.  
Public PropertyRowHeightsReturns the preferred row heights of the gridbag layout. You can change them however they get recalculated once the layout is invalidated. Layout also gets invalidated whenever a layout item is added or removed.  
Public Methods
 NameDescription
Public MethodCalculateMinimumSizeOverridden. Calculates the minimum size required to layout the items.  
Public MethodCalculatePreferredSizeOverridden. Calculates the preferred size required to layout the items.  
Public MethodInvalidateLayoutOverridden. Invalidates any cached information so the layout manager recalculates everything next time.  
Public MethodLayoutContainerOverridden. Lays out items contained in this layout manager by calling PositionItem off the passed in container for each item.  
Protected Methods
 NameDescription
Protected MethodOnLayoutChangedThis method is called whenever a layout item is added, removed or the layout is cleared. Implementation of this method calls InvalidateLayout to invalidate any cached information. (Inherited from Infragistics.Win.Layout.LayoutManagerBase)
Protected MethodValidateConstraintObjectOverridden. Implementation should throw an exception if the passed in constraint is not a valid constraint for this layout manager. It usually checks the type.  
See Also