API Reference > OdDb Classes > OdDbFormattedTableData Class > OdDbFormattedTableData Methods > OdDbFormattedTableData::setMargin Method
OdDbFormattedTableData::setMargin Method
Syntax
C++
virtual void setMargin(OdInt32 nRow, OdInt32 nCol, OdDb::CellMargin nMargins, double fMargin);
Parameters 
Description 
OdInt32 nRow 
[in] Row index.  
OdInt32 nCol 
[in] Column index.  
OdDb::CellMargin nMargins 
[in] Margin type.  
double fMargin 
[in] Margin value. 

Sets the margin to the cell, row or column. Use a valid row index and pass the column index '-1' to set the margin for the row. Use a valid column index and pass the row index '-1' to set the margin for the column. 

 

Margin type should be a combination of the following values: 

 

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