GoDigram for .NET Framework and .NET Core
Northwoods.Go Namespace / GoView Class / CreateGrid Method
Example
In This Topic
    CreateGrid Method (GoView)
    In This Topic
    This method is called by the constructor to create a grid object for this view.
    Syntax
    public virtual GoGrid CreateGrid()

    Return Value

    Remarks
    If you need to use your own subclass of GoGrid, this is one natural place to create it if you create more than one view. Otherwise you can just set the Grid property. The constructor will automatically call this method and add the resulting grid to this view's background layer, as if: this.BackgroundLayer.Add(g);
    Example
    By default this does:
    GoGrid g = new GoGrid();
    g.OriginRelative = false;
    g.UnboundedSpots = (GoObject.TopLeft | GoObject.BottomRight);
    g.Selectable = false;
    return g;
    See Also