【お知らせ】この部分は英語原文のみでの提供となります。何卒ご了承ください。
2.2.4.22.1 Grid::Attach
Contents
Description
Attach a Grid to a worksheet
Syntax
BOOL Attach( Datasheet & wks, int nTable = -1 )
Parameters
- wks
- [input] a valid worksheet or MatrixLayer to be attached to a Grid
- nTable
- [input] index of a subtable if wks is a Hierarchy sheet, otherwise this valid is ignore as a flat sheet is considered a single table
Return
TRUE if success else FALSE.
Examples
EX1
void Grid_Attach_ex1() { Worksheet wks; wks.Create("origin"); Grid gg; if(gg.Attach(wks)) { Tree tr; tr = gg.GetFormat(FPB_ALL, FOB_ALL & ~FOB_RANGE_STYLE, TRUE, TRUE); out_tree(tr); } }
Remark
See Also
Header to Include
origin.h