GoDiagram Win Reference
DocumentSize Property

Gets the dimensions of the document.
Syntax
'Declaration
 
<DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Hidden)>
<DescriptionAttribute("The apparent size of the document, which may be different from GoDocument.Size")>
<CategoryAttribute("Appearance")>
Public Overridable ReadOnly Property DocumentSize As SizeF
[DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Hidden)]
[DescriptionAttribute("The apparent size of the document, which may be different from GoDocument.Size")]
[CategoryAttribute("Appearance")]
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.

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
DocumentTopLeft Property
ShowsNegativeCoordinates Property
Size Property

 

 


© 2015. Northwoods Software Corporation. All Rights Reserved.

Send Feedback