Version

GridBagConstraint Class Members

The following tables list the members exposed by GridBagConstraint.

Public Constructors
 NameDescription
Public ConstructorGridBagConstraint ConstructorOverloaded.   
Protected Fields
 NameDescription
Protected FieldtagValue (Inherited from Infragistics.Shared.SubObjectBase)
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)
Public Methods
 NameDescription
Public MethodCloneCreates a new object that is a copy of the current instance.  
Public MethodCreateObjRefCreates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. (Inherited from System.MarshalByRefObject)
Public MethodDispose (Inherited from Infragistics.Shared.DisposableObject)
Public MethodGetLifetimeServiceRetrieves the current lifetime service object that controls the lifetime policy for this instance. (Inherited from System.MarshalByRefObject)
Public MethodInitializeLifetimeServiceObtains a lifetime service object to control the lifetime policy for this instance. (Inherited from System.MarshalByRefObject)
Public MethodNotifyPropChangeOverloaded.  (Inherited from Infragistics.Shared.SubObjectBase)
Public MethodResetResets the properties of this object to their default values.  
Public MethodResetAnchorResets the Anchor property to its default value of AnchorType.Center.  
Public MethodResetFillResets the Fill property to its default value of FillType.None.  
Public MethodResetInsetsResets the Insets property to its default value which is Insets of left, top, right, bottom being 0.  
Public MethodResetOriginXResets the OriginX property to its default value of GridBagConstraintConstants.Relative.  
Public MethodResetOriginYResets the OriginY property to its default value of GridBagConstraintConstants.Relative.  
Public MethodResetSpanXResets the SpanX property to its default value of 1.  
Public MethodResetSpanYResets the SpanY property to its default value of 1.  
Public MethodResetWeightXResets the WeightX property to its default value of 0.0.  
Public MethodResetWeightYResets the WeightY property to its default value of 0.0.  
Public MethodShouldSerializeReturns true is any of the properties have been set to non-default values  
Public MethodShouldSerializeTag (Inherited from Infragistics.Shared.SubObjectBase)
Public MethodToStringReturns a string representation of the object  
Public MethodVerifyNotDisposed (Inherited from Infragistics.Shared.DisposableObject)
Protected Methods
 NameDescription
Protected MethodDeserializeTagOverloaded.  (Inherited from Infragistics.Shared.SubObjectBase)
Protected MethodInitializeTag (Inherited from Infragistics.Shared.SubObjectBase)
Protected MethodMemberwiseCloneOverloaded. Creates a shallow copy of the current System.MarshalByRefObject object. (Inherited from System.MarshalByRefObject)
Protected MethodOnDispose (Inherited from Infragistics.Shared.SubObjectBase)
Protected MethodOnObjectPropChanged (Inherited from Infragistics.Shared.SubObjectBase)
Protected MethodOnSubObjectPropChangedOverridden. Invoked when a property on a subobject has changed.  
Protected MethodResetTag (Inherited from Infragistics.Shared.SubObjectBase)
Protected MethodSerializeTagOverloaded.  (Inherited from Infragistics.Shared.SubObjectBase)
Protected MethodShouldSerializeAnchorReturns true if the property is set to a non-default value.  
Protected MethodShouldSerializeFillReturns true if the property is set to a non-default value.  
Protected MethodShouldSerializeInsetsReturns true if the property is set to a non-default value.  
Protected MethodShouldSerializeOriginXReturns true if the property is set to a non-default value.  
Protected MethodShouldSerializeOriginYReturns true if the property is set to a non-default value.  
Protected MethodShouldSerializeSpanXReturns true if the property is set to a non-default value.  
Protected MethodShouldSerializeSpanYReturns true if the property is set to a non-default value.  
Protected MethodShouldSerializeWeightXReturns true if the property is set to a non-default value.  
Protected MethodShouldSerializeWeightYReturns true if the property is set to a non-default value.  
Public Events
 NameDescription
Public EventSubObjectDisposed (Inherited from Infragistics.Shared.SubObjectBase)
Public EventSubObjectPropChanged (Inherited from Infragistics.Shared.SubObjectBase)
See Also