Return Value
a GoGroup including a bounded, shadowed GoGrid filled with the GoDocument.PaperColor positioned at the origin.
The BackgroundHasSheet setter will automatically call this method and set the Sheet property, which will add that sheet to this view's background layer, as if: this.BackgroundLayer.Add(s);
public virtual GoSheet CreateSheet() { GoSheet sheet = new GoSheet(); sheet.Visible = (this.SheetStyle != GoViewSheetStyle.None); sheet.Printable = false; sheet.Selectable = false; // the following three lines are executed only in WinForms, in a try-catch: PrintDocument pd = new PrintDocument(); PageSettings ps = pd.DefaultPageSettings; sheet.UpdateBounds(ps, this.PrintScale); GoRectangle paper = sheet.Paper; Color color = this.Document.PaperColor; if (color == Color.Empty) color = Color.White; paper.BrushColor = color; return sheet; }