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

In This Topic
    DrawGrid Property
    In This Topic
    Gets or sets a value indicating whether a grid is drawn in the designer.
    Syntax
    'Declaration
     
    Public Property DrawGrid As Boolean
    public bool DrawGrid {get; set;}

    Property Value

    Boolean value.
    Remarks
    When set to true, a grid overlay appears in the designer, aiding in the alignment and precise placement of report elements.
    Example
    You can configure this property during the designer's initialization or set it later as needed.
    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