Version

OriginX Property (GridBagConstraint)

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.

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