Datasheet::Datasheet

Description

Construct an unnattached Datasheet


Construct a Datasheet from a Layer Object

Syntax

Datasheet( )

Datasheet( Layer & layer )

Parameters

layer
[input] A layer object

Return

Examples

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!");
}

Remark

Layer-based constructor

See Also

header to Include

origin.h