Version

GridBagConstraint Constructor(Int32,Int32,Int32,Int32,Single,Single,AnchorType,FillType,Insets)

Constructor
Syntax
'Declaration
 
Public Function New( _
   ByVal originX As Integer, _
   ByVal originY As Integer, _
   ByVal spanX As Integer, _
   ByVal spanY As Integer, _
   ByVal weightX As Single, _
   ByVal weightY As Single, _
   ByVal anchor As AnchorType, _
   ByVal fill As FillType, _
   ByVal insets As Insets _
)
public GridBagConstraint( 
   int originX,
   int originY,
   int spanX,
   int spanY,
   float weightX,
   float weightY,
   AnchorType anchor,
   FillType fill,
   Insets insets
)

Parameters

originX
Where the layout item will be placed horizontally in the virtual grid of the grid-bag layout.
originY
Where the layout item will be placed horizontally in the virtual grid of the grid-bag layout.
spanX
Specifies the number of cells this item will span horizontally.
spanY
Specifies the number of cells this item will span vertically.
weightX
Indicates how the extra horizontal space will be distributed among items.
weightY
Indicates how the extra vertical space will be distributed among items.
anchor
If the display area of the item is larger than the item, this indicates where to anchor the item.
fill
Indicates whether to resize the item to fill the extra space if the layout item's display area is larger than its size.
insets
Indicates the padding around the layout item.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also