ActiveReports 19 .NET Edition
MESCIUS.ActiveReports.Design.Win Assembly / GrapeCity.ActiveReports.Design Namespace / Designer Class / GridX Property
Example

GridX Property
Determines how coarse the designer grid should be.
Syntax
'Declaration
 
Public Property GridX As Integer
 

Property Value

An integer value that represents the number of horizontal grid points per ruler unit.
Exceptions
ExceptionDescription
Thrown when the set value is less than or equal to 0, as grid spacing must be a positive integer.
Remarks
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.
Example
The following code demonstrates how to set the grid spacing:
private void designer1_Load(object sender, System.EventArgs e)
{
    this.designer1.DrawGrid = true;
    this.designer1.GridX = 16;
    this.designer1.GridY = 16;
}
Private Sub Designer1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Designer1.Load
    Me.Designer1.DrawGrid = True
    Me.Designer1.GridX = 16
    Me.Designer1.GridY = 16
End Sub
See Also