/** * Create a new shape from the data provided. */ public static Shape CreateShape(EscherContainerRecord spContainer, Shape parent){ if (spContainer.GetRecordId() == EscherContainerRecord.SPGR_CONTAINER){ return CreateShapeGroup(spContainer, parent); } return CreateSimpeShape(spContainer, parent); }