GoDiagram Win Reference
DocumentTopLeft Property

Gets the top-left position of the document.
Syntax
'Declaration
 
<CategoryAttribute("Appearance")>
<DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Hidden)>
<DescriptionAttribute("The apparent top-left corner of the document, which may be different from GoDocument.TopLeft")>
Public Overridable ReadOnly Property DocumentTopLeft As PointF
[CategoryAttribute("Appearance")]
[DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Hidden)]
[DescriptionAttribute("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.

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

GoView Class
GoView Members
DocumentSize Property
ShowsNegativeCoordinates Property
TopLeft Property

 

 


© 2015. Northwoods Software Corporation. All Rights Reserved.

Send Feedback