Northwoods.Go Assembly > Northwoods.Go Namespace > GoView Class : DocumentSize Property |
'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;}
SizeF
value measures the document in document coordinates.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
.
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