Attach
GraphObjectBase
public
int Attach
void GraphObjectBase_Attach_Ex1() { //make sure there exists an active graphlayer GraphLayer gl = Project.ActiveLayer(); if ( !gl ) { printf("Can not get active graphlayer!"); return; } foreach( GraphObject go in gl.GraphObjects ) { string strMsg; switch( go. Attach ) { case 0: strMsg = " attach to layer"; break; case 1: strMsg = " attach to page"; break; case 2: strMsg = " attach to Axes"; break; default: strMsg = " attach to Unknown object"; break; } printf("%s%s\n", go.GetName(), strMsg); } return; }
The attach mode of the object. Possible values are 0 - to Layer 1 - to Page 2 - to axes Read and Set access
origin.h