GoDigram for .NET Framework and .NET Core
Northwoods.Go Namespace / GoView Class / DocumentSize Property
In This Topic
    DocumentSize Property
    In This Topic
    Gets the dimensions of the document.
    Syntax
    [Category("Appearance")]
    [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
    [Description("The apparent size of the document, which may be different from GoDocument.Size")]
    public virtual SizeF DocumentSize {get;}

    Property Value

    The SizeF value measures the document in document coordinates.
    Remarks

    This value is normally the same as Document.Size. However, a view may decide to change the extent of the document that the view displays.

    For example, the SheetStyle controls whether the effective document size includes not only the whole document but also any part of the Sheet at the current DocScale given the size of this view control.

    As another example, the ShowsNegativeCoordinates property, when false, restricts the view to only showing non-negative positions in the document. In addition to restricting the DocumentTopLeft property to non-negative positions, it adjusts this property accordingly. This property also leaves room for any shadows, as specified by ShadowOffset.

    This property is different from the result of ComputeDocumentBounds because the latter method only takes into account what objects there actually are in the document, whereas this property will have the same value even if the document is empty.

    A different document size is used when printing in WinForms, PrintDocumentSize.

    See Also