[]
Gets or sets a value representing the horizontal spacing between grid lines in the designer.
public int GridX { get; set; }
Type | Description |
---|---|
int | The distance, in designer units, between each vertical grid line. Must be greater than 0. |
This property affects the alignment and placement of controls on the design surface. This property is applicable only when working with Section Reports in the designer.
The following code demonstrates how to set the grid spacing:
designer.GridX = 4;
designer.GridY = 2;
Type | Condition |
---|---|
ArgumentOutOfRangeException | Thrown when the set value is less than or equal to 0, as grid spacing must be a positive integer. |