API Reference > OdDb Classes > OdDbSetPlotSettingsPE Class > OdDbSetPlotSettingsPE Methods > OdDbSetPlotSettingsPE::setMargins Method
OdDbSetPlotSettingsPE::setMargins Method
Syntax
C++
virtual OdResult setMargins(OdDbPlotSettings * pPlotSettings, double left, double Bottom, double right, double top);
Parameters 
Description 
OdDbPlotSettings * pPlotSettings 
[in] Pointer to the PlotSettings object.  
double left 
[in] Sets the left margin.  
double Bottom 
[in] Sets the bottom margin.  
double right 
[in] Sets the right margin.  
double top 
[in] Sets the top margin. 

Returns eOk if successful or an appropriate error code otherwise.

Sets the margins of the paper for the specified PlotSettings object. 

 

Margins are measured from their respective edges to the plot area and are independent of plot rotation. All distances are returned in millimeters, regardless of the drawing units. 

 

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