GoDigram for .NET Framework and .NET Core
Northwoods.Go Namespace / GoView Class / DocExtentCenter Property
In This Topic
    DocExtentCenter Property
    In This Topic
    Gets or sets the center point of the view in the document, in document coordinates.
    Syntax
    [Browsable(false)]
    [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
    public PointF DocExtentCenter {get; set;}

    Property Value

    This returns the center of the rectangle returned by DocExtent. When set, this modifies DocPosition so that the center of the view is at the new point.
    Remarks
    The view might not be able to be scrolled far enough to be able to actually make the new point be the center of the view, depending on the behavior of LimitDocPosition, which is normally limited by the values of DocumentTopLeft and DocumentSize.
    See Also