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

In This Topic
    GridY Property
    In This Topic
    Determines how coarse the designer grid should be.
    Syntax
    'Declaration
     
    Public Property GridY As Integer
    public int GridY {get; set;}

    Property Value

    An integer value that represents the number of vertical 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