GoDiagram Web Reference
CreateGrid Method (GoView)

This method is called by the constructor to create a grid object for this view.
Syntax
'Declaration
 
Public Overridable Function CreateGrid() As GoGrid
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. By default this does:
              GoGrid g = new GoGrid();
              g.OriginRelative = false;
              g.UnboundedSpots = (GoObject.TopLeft | GoObject.BottomRight);
              g.Selectable = false;
              return g;
            
The constructor will automatically call this method and add the resulting grid to this view's background layer, as if: this.BackgroundLayer.Add(g);
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

GoView Class
GoView Members

 

 


© 2013. Northwoods Software Corporation. All Rights Reserved.

Send Feedback