Version

OriginX Property (IGridBagConstraint)

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 GridBagConstraintConstants.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 GridBagConstraintConstants.Relative. OriginX should be a non-negative value.

Syntax
'Declaration
 
ReadOnly Property OriginX As Integer
int OriginX {get;}
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