2.2.4.19.5 GraphObjectBase::GetLinkTable

Description

Finds if any (usually true for table Objects) linked worksheet.

Syntax

BOOL GetLinkTable( Worksheet & wks )

Parameters

wks
[output] The worksheet that is linked to this object.

Return

TRUE if success else FALSE.

Examples

EX1

void GraphObjectBase_GetLinkTable_Ex1(string strGraph)
{
    GraphLayer gl(strGraph);
    
    if(!gl)
        return;
    vector<uint> vUid;
    Worksheet wks;
    foreach(GraphObject go in gl.GraphObjects)
    {
        if(go.GetLinkTable(wks))
        {
            int nLinks = wks.FindLinkObjects(vUid);
            int nVecSize = vUid.GetSize();
            printf(" Found Table %s with wks %s that is linked to %d objects", go.GetName(), wks.GetName(), nLinks);
        }
    }
}

Remark

See Also

Header to Include

origin.h