public override object GetAutomationObject() { if(this.ProjectManager == null || this.ProjectManager.IsClosed) { return null; } return new Automation.OAReferenceFolderItem(this.ProjectManager.GetAutomationObject() as Automation.OAProject, this); }