API Reference > OdDb Classes > OdDbTable Class > OdDbTable Methods > OdDbTable::margin Method
OdDbTable::margin Method
Syntax
C++
double margin(OdInt32 row, OdInt32 col, OdDb::CellMargin nMargin) const;
Parameters 
Description 
OdInt32 row 
[in] Row index.  
OdInt32 col 
[in] Column index.  
OdDb::CellMargin nMargin 
[in] Margin type.  

Margin value.

Returns the margin of the cell, row or column as a double value. Use a valid row index and pass the column index '-1' to get the margin for the row. Use a valid column index and pass the row index '-1' to get the margin for the column. 

 

Margin type should be one of the following values: 

 

Name 
Value 
kCellMarginTop 
0x01 
kCellMarginLeft 
0x02 
kCellMarginBottom 
0x04 
kCellMarginRight 
0x08 
kCellMarginHorzSpacing 
0x10 
kCellMarginVertSpacing 
0x20 
Copyright © 2002–2020. Open Design Alliance. All rights reserved.