GoDigram for .NET Framework and .NET Core
Northwoods.Go Namespace / GoView Class / DocumentTopLeft Property
In This Topic
    DocumentTopLeft Property
    In This Topic
    Gets the top-left position of the document.
    Syntax
    [Category("Appearance")]
    [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
    [Description("The apparent top-left corner of the document, which may be different from GoDocument.TopLeft")]
    public virtual PointF DocumentTopLeft {get;}

    Property Value

    The PointF value specifies the top-left corner of the document in document coordinates.
    Remarks

    This value is normally the same as Document.TopLeft. 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 bounds 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 by always returning the (0, 0) point. This property also leaves room for any shadows, as specified by ShadowOffset.

    A different document top-left position is used when printing in WinForms, PrintDocumentTopLeft.

    See Also