GoDigram for .NET Framework and .NET Core
Northwoods.Go Namespace / GoView Class / PrintDocumentSize Property
In This Topic
    PrintDocumentSize Property
    In This Topic
    Gets the size of the document to be printed.
    Syntax
    [Category("Printing")]
    public virtual SizeF PrintDocumentSize {get;}

    Property Value

    This SizeF value represents the size of the portion of the document to be printed, in document coordinates.
    Remarks

    This is normally just the size needed to include all of the objects in the document, by calling ComputeDocumentBounds(). This avoids printing a lot of empty pages if the document size is much larger than needed, perhaps because some objects have been deleted, but the document size has not been shrunk accordingly.

    When the SheetStyle is not GoViewSheetStyle.None, only one page is printed, corresponding to where the sheet is. In these cases, this property has the value of the sheet's GoSheet.MarginBounds size.

    See Also