Version

GridBagConstraint Class Members

The following tables list the members exposed by GridBagConstraint.

Public Constructors
 NameDescription
Public ConstructorGridBagConstraint ConstructorOverloaded.   
Public Properties
 NameDescription
Public 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 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. Column should be a non-negative value.

 
Public PropertyColumnSpan

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 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.  
Public PropertyHorizontalAlignmentHorizontal alignment of the item within its logical cell.  
Public PropertyMarginIndicates the padding around the layout item.  
Public 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 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. Row should be a non-negative value.

 
Public PropertyRowSpan

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 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.  
Public PropertyVerticalAlignmentVertical alignment of the item within its logical cell.  
Protected Properties
 NameDescription
Protected PropertyHasListenersGets whether there are any listeners for the Infragistics.PropertyChangeNotifier.PropertyChanged event (Inherited from Infragistics.PropertyChangeNotifier)
Public Methods
 NameDescription
Public MethodCloneCreates a new object that is a copy of the current instance.  
Public MethodResetResets the properties of this object to their default values.  
Public MethodResetColumnResets the Column property to its default value of GridBagConstraintConstants.Relative.  
Public MethodResetColumnSpanResets the ColumnSpan property to its default value of 1.  
Public MethodResetColumnWeightResets the ColumnWeight property to its default value of 0.0.  
Public MethodResetHorizontalAlignmentResets the HorizontalAlignment property to its default value of Center.  
Public MethodResetMarginResets the Margin property to its default value which is Thickness of left, top, right, bottom being 0.  
Public MethodResetRowResets the Row property to its default value of GridBagConstraintConstants.Relative.  
Public MethodResetRowSpanResets the RowSpan property to its default value of 1.  
Public MethodResetRowWeightResets the RowWeight property to its default value of 0.0.  
Public MethodResetVerticalAlignmentResets the VerticalAlignment property to its default value of Center.  
Public MethodShouldSerializeReturns true is any of the properties have been set to non-default values  
Public MethodToStringReturns a string representation of the object  
Protected Methods
 NameDescription
Protected MethodOnFirstListenerAddingVirtual method called when the first listener is being added to the Infragistics.PropertyChangeNotifier.PropertyChanged event. (Inherited from Infragistics.PropertyChangeNotifier)
Protected MethodOnHasListenersChangedVirtual method called when the HasListeners property changes. (Inherited from Infragistics.PropertyChangeNotifier)
Protected MethodOnPropertyChangedUsed to raise the Infragistics.PropertyChangeNotifier.PropertyChanged event for the specified property name. (Inherited from Infragistics.PropertyChangeNotifier)
Protected MethodRaisePropertyChangedEventRaises the PropertyChanged event (Inherited from Infragistics.PropertyChangeNotifier)
Protected MethodShouldSerializeColumnReturns true if the property is set to a non-default value.  
Protected MethodShouldSerializeColumnSpanReturns true if the property is set to a non-default value.  
Protected MethodShouldSerializeColumnWeightReturns true if the property is set to a non-default value.  
Protected MethodShouldSerializeHorizontalAlignmentReturns true if the property is set to a non-default value.  
Protected MethodShouldSerializeMarginReturns true if the property is set to a non-default value.  
Protected MethodShouldSerializeRowReturns true if the property is set to a non-default value.  
Protected MethodShouldSerializeRowSpanReturns true if the property is set to a non-default value.  
Protected MethodShouldSerializeRowWeightReturns true if the property is set to a non-default value.  
Protected MethodShouldSerializeVerticalAlignmentReturns true if the property is set to a non-default value.  
Public Events
 NameDescription
Public EventPropertyChangedRaised when a property has changed (Inherited from Infragistics.PropertyChangeNotifier)
See Also