|Visual Basic (Declaration)|
Public Class UltraGridBagLayoutManager Inherits ControlLayoutManagerBase Implements Infragistics.Shared.IUltraComponent, Infragistics.Shared.IUltraLicensedComponent, Infragistics.Win.Layout.ILayoutContainer
public class UltraGridBagLayoutManager : ControlLayoutManagerBase, Infragistics.Shared.IUltraComponent, Infragistics.Shared.IUltraLicensedComponent, Infragistics.Win.Layout.ILayoutContainer
The UltraGridBagLayoutManager is a component that is used to arrange controls based on a set of constraints for each control. An additional property is added to each control within the associated ControlLayoutManagerBase.ContainerControl - GridBagConstraint. To programatically change this property, you can use the associated get/set methods (i.e. GetGridBagConstraint and SetGridBagConstraint).
The T:Infragistics.Win.Layout.GridBagConstraint exposes properties that are used to determine how/where the control should be positioned and includes properties such as P:Infragistics.Win.Layout.GridBagConstraint.OriginX, P:Infragistics.Win.Layout.GridBagConstraint.OriginY, P:Infragistics.Win.Layout.GridBagConstraint.SpanX and P:Infragistics.Win.Layout.GridBagConstraint.SpanY. The OriginX and OriginY are used to determine the location at which the control will be positioned. The SpanX and SpanY determine the number of logical columns and rows that the control will occupy. Together these indicate the logical cells that the control will occupy.
The GridBagConstaint available for each control also provides additional properties to control the size of the logical cells that the control will occupy. For example, the P:Infragistics.Win.Layout.GridBagConstraint.WeightX and P:Infragistics.Win.Layout.GridBagConstraint.WeightY are used to determine how the excess horizontal and vertical space respectively is distributed amongst the controls. The P:Infragistics.Win.Layout.GridBagConstraint.Insets property is used to indicate how much padding should exist around the control.
The GridBagConstaint also includes two properties that control how the control is positioned within the logical cells it occupies. The P:Infragistics.Win.Layout.GridBagConstraint.Anchor property is used to indicate which edge of the logical cells that the control should align with. The P:Infragistics.Win.Layout.GridBagConstraint.Fill property determines which dimensions, if any, should be resized based on the corresponding width/height of the logical cells.