API Reference > OdDb Classes > OdDbViewport Class > OdDbViewport Methods > OdDbViewport::width Method
OdDbViewport::width Method
Syntax
C++
double width() const;

Returns the width of this Viewport object (DXF 40).

If this Viewport object is an overall viewport, the values returned by width() and height() must be divided by a factor of 1.058, and the parameters of setWidth and setHeight() must be multiplied by a like factor.

Copyright © 2002–2020. Open Design Alliance. All rights reserved.