Get the parent object of this Origin object.
void GetParent( OriginObject & obj )
// Pass the name of a workbook and get the worksheet object of a column via GetParent
int OriginObject_GetParent_ex1(string strBookName = "Book1")
Column col(strBookName, 0); // Get the first column of the active sheet of strBookName
if( col.IsValid() )
col.GetParent(wks); // wks is parent object (a worksheet layer) which contains col
if( wks.IsValid() )
printf("Column %s is contained in Worksheet %s\n", col.GetName(), wks.GetName());
printf("There was a problem getting the Worksheet object\n");
printf("There was a problem getting the Column object\n");
Get the parent object of this Origin object. The parent object is the object which contains this Origin object (e.g. a Layer object is contained in a Page object so the Page object is the parent object of the Layer).