Datasheet
Construct an unnattached Datasheet
Construct a Datasheet from a Layer Object
Datasheet( )
Datasheet( Layer & layer )
EX1
//Use a default Datasheet constructor. void Datasheet_Datasheet_Ex1() { Datasheet ds; WorksheetPage wp = Project.WorksheetPages(0); if(!wp) return; if (ds.Attach(wp.GetName())) printf("Success to attach worksheet"); else printf("Fail to attach worksheet"); }
EX2
//Create a datasheet using the active project layer. void Datasheet_Datasheet_Ex2() { Layer lay = Project.ActiveLayer(); if (!lay) { return; } Datasheet ds(lay); if(ds) out_str("success!"); }
Layer-based constructor
origin.h