예제 #1
0
        /// <summary>
        /// Create an instance of OpenXmlPart according to the given relationship type.
        /// </summary>
        /// <param name="openXmlPackage">The container OpenXmlPackage.</param>
        /// <param name="relationshipType">The relationship type of the target part.</param>
        /// <param name="openXmlPart">The created instance of OpenXmlPart.</param>
        /// <remarks>This partial method will be generated by code generaotr.</remarks>
        static partial void CreatePartCore(OpenXmlPackage openXmlPackage, string relationshipType, ref OpenXmlPart openXmlPart)
        {
            if (openXmlPackage == null)
            {
				throw new ArgumentNullException("openXmlPackage");
            }
            if (relationshipType == null)
            {
                throw new ArgumentNullException("relationshipType");
            }
            
            if (openXmlPackage is WordprocessingDocument)
            {
                switch (relationshipType)
                {
					case MainDocumentPart.RelationshipTypeConstant:
	openXmlPart = new MainDocumentPart();
	return;
case CustomXmlPart.RelationshipTypeConstant:
	openXmlPart = new CustomXmlPart();
	return;
case CustomXmlPropertiesPart.RelationshipTypeConstant:
	openXmlPart = new CustomXmlPropertiesPart();
	return;
case GlossaryDocumentPart.RelationshipTypeConstant:
	openXmlPart = new GlossaryDocumentPart();
	return;
case WordprocessingCommentsPart.RelationshipTypeConstant:
	openXmlPart = new WordprocessingCommentsPart();
	return;
case AlternativeFormatImportPart.RelationshipTypeConstant:
	openXmlPart = new AlternativeFormatImportPart();
	return;
case ChartPart.RelationshipTypeConstant:
	openXmlPart = new ChartPart();
	return;
case ChartDrawingPart.RelationshipTypeConstant:
	openXmlPart = new ChartDrawingPart();
	return;
case ImagePart.RelationshipTypeConstant:
	openXmlPart = new ImagePart();
	return;
case EmbeddedPackagePart.RelationshipTypeConstant:
	openXmlPart = new EmbeddedPackagePart();
	return;
case ThemeOverridePart.RelationshipTypeConstant:
	openXmlPart = new ThemeOverridePart();
	return;
case ChartStylePart.RelationshipTypeConstant:
	openXmlPart = new ChartStylePart();
	return;
case ChartColorStylePart.RelationshipTypeConstant:
	openXmlPart = new ChartColorStylePart();
	return;
case DiagramColorsPart.RelationshipTypeConstant:
	openXmlPart = new DiagramColorsPart();
	return;
case DiagramDataPart.RelationshipTypeConstant:
	openXmlPart = new DiagramDataPart();
	return;
case SlidePart.RelationshipTypeConstant:
	openXmlPart = new SlidePart();
	return;
case DiagramPersistLayoutPart.RelationshipTypeConstant:
	openXmlPart = new DiagramPersistLayoutPart();
	return;
case DiagramLayoutDefinitionPart.RelationshipTypeConstant:
	openXmlPart = new DiagramLayoutDefinitionPart();
	return;
case DiagramStylePart.RelationshipTypeConstant:
	openXmlPart = new DiagramStylePart();
	return;
case EmbeddedObjectPart.RelationshipTypeConstant:
	openXmlPart = new EmbeddedObjectPart();
	return;
case VmlDrawingPart.RelationshipTypeConstant:
	openXmlPart = new VmlDrawingPart();
	return;
case LegacyDiagramTextPart.RelationshipTypeConstant:
	openXmlPart = new LegacyDiagramTextPart();
	return;
case EmbeddedControlPersistenceBinaryDataPart.RelationshipTypeConstant:
	openXmlPart = new EmbeddedControlPersistenceBinaryDataPart();
	return;
case NotesSlidePart.RelationshipTypeConstant:
	openXmlPart = new NotesSlidePart();
	return;
case NotesMasterPart.RelationshipTypeConstant:
	openXmlPart = new NotesMasterPart();
	return;
case ThemePart.RelationshipTypeConstant:
	openXmlPart = new ThemePart();
	return;
case UserDefinedTagsPart.RelationshipTypeConstant:
	openXmlPart = new UserDefinedTagsPart();
	return;
case SlideLayoutPart.RelationshipTypeConstant:
	openXmlPart = new SlideLayoutPart();
	return;
case SlideMasterPart.RelationshipTypeConstant:
	openXmlPart = new SlideMasterPart();
	return;
case EmbeddedControlPersistencePart.RelationshipTypeConstant:
	openXmlPart = new EmbeddedControlPersistencePart();
	return;
case SlideSyncDataPart.RelationshipTypeConstant:
	openXmlPart = new SlideSyncDataPart();
	return;
case WorksheetPart.RelationshipTypeConstant:
	openXmlPart = new WorksheetPart();
	return;
case DrawingsPart.RelationshipTypeConstant:
	openXmlPart = new DrawingsPart();
	return;
case WebExtensionPart.RelationshipTypeConstant:
	openXmlPart = new WebExtensionPart();
	return;
case PivotTablePart.RelationshipTypeConstant:
	openXmlPart = new PivotTablePart();
	return;
case PivotTableCacheDefinitionPart.RelationshipTypeConstant:
	openXmlPart = new PivotTableCacheDefinitionPart();
	return;
case PivotTableCacheRecordsPart.RelationshipTypeConstant:
	openXmlPart = new PivotTableCacheRecordsPart();
	return;
case SingleCellTablePart.RelationshipTypeConstant:
	openXmlPart = new SingleCellTablePart();
	return;
case TableDefinitionPart.RelationshipTypeConstant:
	openXmlPart = new TableDefinitionPart();
	return;
case QueryTablePart.RelationshipTypeConstant:
	openXmlPart = new QueryTablePart();
	return;
case ControlPropertiesPart.RelationshipTypeConstant:
	openXmlPart = new ControlPropertiesPart();
	return;
case CustomPropertyPart.RelationshipTypeConstant:
	openXmlPart = new CustomPropertyPart();
	return;
case WorksheetSortMapPart.RelationshipTypeConstant:
	openXmlPart = new WorksheetSortMapPart();
	return;
case SlicersPart.RelationshipTypeConstant:
	openXmlPart = new SlicersPart();
	return;
case TimeLinePart.RelationshipTypeConstant:
	openXmlPart = new TimeLinePart();
	return;
case DocumentSettingsPart.RelationshipTypeConstant:
	openXmlPart = new DocumentSettingsPart();
	return;
case MailMergeRecipientDataPart.RelationshipTypeConstant:
	openXmlPart = new MailMergeRecipientDataPart();
	return;
case EndnotesPart.RelationshipTypeConstant:
	openXmlPart = new EndnotesPart();
	return;
case FontTablePart.RelationshipTypeConstant:
	openXmlPart = new FontTablePart();
	return;
case FontPart.RelationshipTypeConstant:
	openXmlPart = new FontPart();
	return;
case FootnotesPart.RelationshipTypeConstant:
	openXmlPart = new FootnotesPart();
	return;
case NumberingDefinitionsPart.RelationshipTypeConstant:
	openXmlPart = new NumberingDefinitionsPart();
	return;
case StyleDefinitionsPart.RelationshipTypeConstant:
	openXmlPart = new StyleDefinitionsPart();
	return;
case StylesWithEffectsPart.RelationshipTypeConstant:
	openXmlPart = new StylesWithEffectsPart();
	return;
case WebSettingsPart.RelationshipTypeConstant:
	openXmlPart = new WebSettingsPart();
	return;
case FooterPart.RelationshipTypeConstant:
	openXmlPart = new FooterPart();
	return;
case HeaderPart.RelationshipTypeConstant:
	openXmlPart = new HeaderPart();
	return;
case WordprocessingPrinterSettingsPart.RelationshipTypeConstant:
	openXmlPart = new WordprocessingPrinterSettingsPart();
	return;
case CustomizationPart.RelationshipTypeConstant:
	openXmlPart = new CustomizationPart();
	return;
case WordAttachedToolbarsPart.RelationshipTypeConstant:
	openXmlPart = new WordAttachedToolbarsPart();
	return;
case VbaProjectPart.RelationshipTypeConstant:
	openXmlPart = new VbaProjectPart();
	return;
case VbaDataPart.RelationshipTypeConstant:
	openXmlPart = new VbaDataPart();
	return;
case WordprocessingCommentsExPart.RelationshipTypeConstant:
	openXmlPart = new WordprocessingCommentsExPart();
	return;
case WordprocessingPeoplePart.RelationshipTypeConstant:
	openXmlPart = new WordprocessingPeoplePart();
	return;
case ThumbnailPart.RelationshipTypeConstant:
	openXmlPart = new ThumbnailPart();
	return;
case CoreFilePropertiesPart.RelationshipTypeConstant:
	openXmlPart = new CoreFilePropertiesPart();
	return;
case ExtendedFilePropertiesPart.RelationshipTypeConstant:
	openXmlPart = new ExtendedFilePropertiesPart();
	return;
case CustomFilePropertiesPart.RelationshipTypeConstant:
	openXmlPart = new CustomFilePropertiesPart();
	return;
case DigitalSignatureOriginPart.RelationshipTypeConstant:
	openXmlPart = new DigitalSignatureOriginPart();
	return;
case XmlSignaturePart.RelationshipTypeConstant:
	openXmlPart = new XmlSignaturePart();
	return;
case QuickAccessToolbarCustomizationsPart.RelationshipTypeConstant:
	openXmlPart = new QuickAccessToolbarCustomizationsPart();
	return;
case RibbonExtensibilityPart.RelationshipTypeConstant:
	openXmlPart = new RibbonExtensibilityPart();
	return;
case RibbonAndBackstageCustomizationsPart.RelationshipTypeConstant:
	openXmlPart = new RibbonAndBackstageCustomizationsPart();
	return;
case WebExTaskpanesPart.RelationshipTypeConstant:
	openXmlPart = new WebExTaskpanesPart();
	return;

				}
            }
            else if (openXmlPackage is SpreadsheetDocument)
            {
                switch (relationshipType)
                {
					case WorkbookPart.RelationshipTypeConstant:
	openXmlPart = new WorkbookPart();
	return;
case CustomXmlPart.RelationshipTypeConstant:
	openXmlPart = new CustomXmlPart();
	return;
case CustomXmlPropertiesPart.RelationshipTypeConstant:
	openXmlPart = new CustomXmlPropertiesPart();
	return;
case CalculationChainPart.RelationshipTypeConstant:
	openXmlPart = new CalculationChainPart();
	return;
case CellMetadataPart.RelationshipTypeConstant:
	openXmlPart = new CellMetadataPart();
	return;
case ConnectionsPart.RelationshipTypeConstant:
	openXmlPart = new ConnectionsPart();
	return;
case CustomXmlMappingsPart.RelationshipTypeConstant:
	openXmlPart = new CustomXmlMappingsPart();
	return;
case SharedStringTablePart.RelationshipTypeConstant:
	openXmlPart = new SharedStringTablePart();
	return;
case WorkbookRevisionHeaderPart.RelationshipTypeConstant:
	openXmlPart = new WorkbookRevisionHeaderPart();
	return;
case WorkbookRevisionLogPart.RelationshipTypeConstant:
	openXmlPart = new WorkbookRevisionLogPart();
	return;
case WorkbookUserDataPart.RelationshipTypeConstant:
	openXmlPart = new WorkbookUserDataPart();
	return;
case WorkbookStylesPart.RelationshipTypeConstant:
	openXmlPart = new WorkbookStylesPart();
	return;
case ThemePart.RelationshipTypeConstant:
	openXmlPart = new ThemePart();
	return;
case ImagePart.RelationshipTypeConstant:
	openXmlPart = new ImagePart();
	return;
case ThumbnailPart.RelationshipTypeConstant:
	openXmlPart = new ThumbnailPart();
	return;
case VolatileDependenciesPart.RelationshipTypeConstant:
	openXmlPart = new VolatileDependenciesPart();
	return;
case ChartsheetPart.RelationshipTypeConstant:
	openXmlPart = new ChartsheetPart();
	return;
case SpreadsheetPrinterSettingsPart.RelationshipTypeConstant:
	openXmlPart = new SpreadsheetPrinterSettingsPart();
	return;
case DrawingsPart.RelationshipTypeConstant:
	openXmlPart = new DrawingsPart();
	return;
case ChartPart.RelationshipTypeConstant:
	openXmlPart = new ChartPart();
	return;
case ChartDrawingPart.RelationshipTypeConstant:
	openXmlPart = new ChartDrawingPart();
	return;
case EmbeddedPackagePart.RelationshipTypeConstant:
	openXmlPart = new EmbeddedPackagePart();
	return;
case ThemeOverridePart.RelationshipTypeConstant:
	openXmlPart = new ThemeOverridePart();
	return;
case ChartStylePart.RelationshipTypeConstant:
	openXmlPart = new ChartStylePart();
	return;
case ChartColorStylePart.RelationshipTypeConstant:
	openXmlPart = new ChartColorStylePart();
	return;
case DiagramColorsPart.RelationshipTypeConstant:
	openXmlPart = new DiagramColorsPart();
	return;
case DiagramDataPart.RelationshipTypeConstant:
	openXmlPart = new DiagramDataPart();
	return;
case SlidePart.RelationshipTypeConstant:
	openXmlPart = new SlidePart();
	return;
case DiagramPersistLayoutPart.RelationshipTypeConstant:
	openXmlPart = new DiagramPersistLayoutPart();
	return;
case DiagramLayoutDefinitionPart.RelationshipTypeConstant:
	openXmlPart = new DiagramLayoutDefinitionPart();
	return;
case DiagramStylePart.RelationshipTypeConstant:
	openXmlPart = new DiagramStylePart();
	return;
case EmbeddedObjectPart.RelationshipTypeConstant:
	openXmlPart = new EmbeddedObjectPart();
	return;
case VmlDrawingPart.RelationshipTypeConstant:
	openXmlPart = new VmlDrawingPart();
	return;
case LegacyDiagramTextPart.RelationshipTypeConstant:
	openXmlPart = new LegacyDiagramTextPart();
	return;
case EmbeddedControlPersistenceBinaryDataPart.RelationshipTypeConstant:
	openXmlPart = new EmbeddedControlPersistenceBinaryDataPart();
	return;
case NotesSlidePart.RelationshipTypeConstant:
	openXmlPart = new NotesSlidePart();
	return;
case NotesMasterPart.RelationshipTypeConstant:
	openXmlPart = new NotesMasterPart();
	return;
case UserDefinedTagsPart.RelationshipTypeConstant:
	openXmlPart = new UserDefinedTagsPart();
	return;
case SlideLayoutPart.RelationshipTypeConstant:
	openXmlPart = new SlideLayoutPart();
	return;
case SlideMasterPart.RelationshipTypeConstant:
	openXmlPart = new SlideMasterPart();
	return;
case EmbeddedControlPersistencePart.RelationshipTypeConstant:
	openXmlPart = new EmbeddedControlPersistencePart();
	return;
case SlideSyncDataPart.RelationshipTypeConstant:
	openXmlPart = new SlideSyncDataPart();
	return;
case WorksheetPart.RelationshipTypeConstant:
	openXmlPart = new WorksheetPart();
	return;
case WorksheetCommentsPart.RelationshipTypeConstant:
	openXmlPart = new WorksheetCommentsPart();
	return;
case PivotTablePart.RelationshipTypeConstant:
	openXmlPart = new PivotTablePart();
	return;
case PivotTableCacheDefinitionPart.RelationshipTypeConstant:
	openXmlPart = new PivotTableCacheDefinitionPart();
	return;
case PivotTableCacheRecordsPart.RelationshipTypeConstant:
	openXmlPart = new PivotTableCacheRecordsPart();
	return;
case SingleCellTablePart.RelationshipTypeConstant:
	openXmlPart = new SingleCellTablePart();
	return;
case TableDefinitionPart.RelationshipTypeConstant:
	openXmlPart = new TableDefinitionPart();
	return;
case QueryTablePart.RelationshipTypeConstant:
	openXmlPart = new QueryTablePart();
	return;
case ControlPropertiesPart.RelationshipTypeConstant:
	openXmlPart = new ControlPropertiesPart();
	return;
case CustomPropertyPart.RelationshipTypeConstant:
	openXmlPart = new CustomPropertyPart();
	return;
case WorksheetSortMapPart.RelationshipTypeConstant:
	openXmlPart = new WorksheetSortMapPart();
	return;
case SlicersPart.RelationshipTypeConstant:
	openXmlPart = new SlicersPart();
	return;
case TimeLinePart.RelationshipTypeConstant:
	openXmlPart = new TimeLinePart();
	return;
case WebExtensionPart.RelationshipTypeConstant:
	openXmlPart = new WebExtensionPart();
	return;
case DialogsheetPart.RelationshipTypeConstant:
	openXmlPart = new DialogsheetPart();
	return;
case ExternalWorkbookPart.RelationshipTypeConstant:
	openXmlPart = new ExternalWorkbookPart();
	return;
case ExcelAttachedToolbarsPart.RelationshipTypeConstant:
	openXmlPart = new ExcelAttachedToolbarsPart();
	return;
case VbaProjectPart.RelationshipTypeConstant:
	openXmlPart = new VbaProjectPart();
	return;
case VbaDataPart.RelationshipTypeConstant:
	openXmlPart = new VbaDataPart();
	return;
case MacroSheetPart.RelationshipTypeConstant:
	openXmlPart = new MacroSheetPart();
	return;
case InternationalMacroSheetPart.RelationshipTypeConstant:
	openXmlPart = new InternationalMacroSheetPart();
	return;
case CustomDataPropertiesPart.RelationshipTypeConstant:
	openXmlPart = new CustomDataPropertiesPart();
	return;
case CustomDataPart.RelationshipTypeConstant:
	openXmlPart = new CustomDataPart();
	return;
case SlicerCachePart.RelationshipTypeConstant:
	openXmlPart = new SlicerCachePart();
	return;
case TimeLineCachePart.RelationshipTypeConstant:
	openXmlPart = new TimeLineCachePart();
	return;
case CoreFilePropertiesPart.RelationshipTypeConstant:
	openXmlPart = new CoreFilePropertiesPart();
	return;
case ExtendedFilePropertiesPart.RelationshipTypeConstant:
	openXmlPart = new ExtendedFilePropertiesPart();
	return;
case CustomFilePropertiesPart.RelationshipTypeConstant:
	openXmlPart = new CustomFilePropertiesPart();
	return;
case DigitalSignatureOriginPart.RelationshipTypeConstant:
	openXmlPart = new DigitalSignatureOriginPart();
	return;
case XmlSignaturePart.RelationshipTypeConstant:
	openXmlPart = new XmlSignaturePart();
	return;
case QuickAccessToolbarCustomizationsPart.RelationshipTypeConstant:
	openXmlPart = new QuickAccessToolbarCustomizationsPart();
	return;
case RibbonExtensibilityPart.RelationshipTypeConstant:
	openXmlPart = new RibbonExtensibilityPart();
	return;
case RibbonAndBackstageCustomizationsPart.RelationshipTypeConstant:
	openXmlPart = new RibbonAndBackstageCustomizationsPart();
	return;
case WebExTaskpanesPart.RelationshipTypeConstant:
	openXmlPart = new WebExTaskpanesPart();
	return;

                }
            }
            else if (openXmlPackage is PresentationDocument)
            {
                switch (relationshipType)
                {
					case PresentationPart.RelationshipTypeConstant:
	openXmlPart = new PresentationPart();
	return;
case CustomXmlPart.RelationshipTypeConstant:
	openXmlPart = new CustomXmlPart();
	return;
case CustomXmlPropertiesPart.RelationshipTypeConstant:
	openXmlPart = new CustomXmlPropertiesPart();
	return;
case FontPart.RelationshipTypeConstant:
	openXmlPart = new FontPart();
	return;
case PresentationPropertiesPart.RelationshipTypeConstant:
	openXmlPart = new PresentationPropertiesPart();
	return;
case TableStylesPart.RelationshipTypeConstant:
	openXmlPart = new TableStylesPart();
	return;
case ThemePart.RelationshipTypeConstant:
	openXmlPart = new ThemePart();
	return;
case ImagePart.RelationshipTypeConstant:
	openXmlPart = new ImagePart();
	return;
case ViewPropertiesPart.RelationshipTypeConstant:
	openXmlPart = new ViewPropertiesPart();
	return;
case SlidePart.RelationshipTypeConstant:
	openXmlPart = new SlidePart();
	return;
case ChartPart.RelationshipTypeConstant:
	openXmlPart = new ChartPart();
	return;
case ChartDrawingPart.RelationshipTypeConstant:
	openXmlPart = new ChartDrawingPart();
	return;
case EmbeddedPackagePart.RelationshipTypeConstant:
	openXmlPart = new EmbeddedPackagePart();
	return;
case ThemeOverridePart.RelationshipTypeConstant:
	openXmlPart = new ThemeOverridePart();
	return;
case ChartStylePart.RelationshipTypeConstant:
	openXmlPart = new ChartStylePart();
	return;
case ChartColorStylePart.RelationshipTypeConstant:
	openXmlPart = new ChartColorStylePart();
	return;
case DiagramColorsPart.RelationshipTypeConstant:
	openXmlPart = new DiagramColorsPart();
	return;
case DiagramDataPart.RelationshipTypeConstant:
	openXmlPart = new DiagramDataPart();
	return;
case WorksheetPart.RelationshipTypeConstant:
	openXmlPart = new WorksheetPart();
	return;
case DrawingsPart.RelationshipTypeConstant:
	openXmlPart = new DrawingsPart();
	return;
case DiagramPersistLayoutPart.RelationshipTypeConstant:
	openXmlPart = new DiagramPersistLayoutPart();
	return;
case DiagramLayoutDefinitionPart.RelationshipTypeConstant:
	openXmlPart = new DiagramLayoutDefinitionPart();
	return;
case DiagramStylePart.RelationshipTypeConstant:
	openXmlPart = new DiagramStylePart();
	return;
case WebExtensionPart.RelationshipTypeConstant:
	openXmlPart = new WebExtensionPart();
	return;
case VmlDrawingPart.RelationshipTypeConstant:
	openXmlPart = new VmlDrawingPart();
	return;
case LegacyDiagramTextPart.RelationshipTypeConstant:
	openXmlPart = new LegacyDiagramTextPart();
	return;
case PivotTablePart.RelationshipTypeConstant:
	openXmlPart = new PivotTablePart();
	return;
case PivotTableCacheDefinitionPart.RelationshipTypeConstant:
	openXmlPart = new PivotTableCacheDefinitionPart();
	return;
case PivotTableCacheRecordsPart.RelationshipTypeConstant:
	openXmlPart = new PivotTableCacheRecordsPart();
	return;
case SingleCellTablePart.RelationshipTypeConstant:
	openXmlPart = new SingleCellTablePart();
	return;
case TableDefinitionPart.RelationshipTypeConstant:
	openXmlPart = new TableDefinitionPart();
	return;
case QueryTablePart.RelationshipTypeConstant:
	openXmlPart = new QueryTablePart();
	return;
case EmbeddedControlPersistencePart.RelationshipTypeConstant:
	openXmlPart = new EmbeddedControlPersistencePart();
	return;
case EmbeddedControlPersistenceBinaryDataPart.RelationshipTypeConstant:
	openXmlPart = new EmbeddedControlPersistenceBinaryDataPart();
	return;
case ControlPropertiesPart.RelationshipTypeConstant:
	openXmlPart = new ControlPropertiesPart();
	return;
case EmbeddedObjectPart.RelationshipTypeConstant:
	openXmlPart = new EmbeddedObjectPart();
	return;
case CustomPropertyPart.RelationshipTypeConstant:
	openXmlPart = new CustomPropertyPart();
	return;
case WorksheetSortMapPart.RelationshipTypeConstant:
	openXmlPart = new WorksheetSortMapPart();
	return;
case SlicersPart.RelationshipTypeConstant:
	openXmlPart = new SlicersPart();
	return;
case TimeLinePart.RelationshipTypeConstant:
	openXmlPart = new TimeLinePart();
	return;
case SlideCommentsPart.RelationshipTypeConstant:
	openXmlPart = new SlideCommentsPart();
	return;
case NotesSlidePart.RelationshipTypeConstant:
	openXmlPart = new NotesSlidePart();
	return;
case NotesMasterPart.RelationshipTypeConstant:
	openXmlPart = new NotesMasterPart();
	return;
case UserDefinedTagsPart.RelationshipTypeConstant:
	openXmlPart = new UserDefinedTagsPart();
	return;
case SlideLayoutPart.RelationshipTypeConstant:
	openXmlPart = new SlideLayoutPart();
	return;
case SlideMasterPart.RelationshipTypeConstant:
	openXmlPart = new SlideMasterPart();
	return;
case SlideSyncDataPart.RelationshipTypeConstant:
	openXmlPart = new SlideSyncDataPart();
	return;
case CommentAuthorsPart.RelationshipTypeConstant:
	openXmlPart = new CommentAuthorsPart();
	return;
case HandoutMasterPart.RelationshipTypeConstant:
	openXmlPart = new HandoutMasterPart();
	return;
case LegacyDiagramTextInfoPart.RelationshipTypeConstant:
	openXmlPart = new LegacyDiagramTextInfoPart();
	return;
case VbaProjectPart.RelationshipTypeConstant:
	openXmlPart = new VbaProjectPart();
	return;
case VbaDataPart.RelationshipTypeConstant:
	openXmlPart = new VbaDataPart();
	return;
case CoreFilePropertiesPart.RelationshipTypeConstant:
	openXmlPart = new CoreFilePropertiesPart();
	return;
case ExtendedFilePropertiesPart.RelationshipTypeConstant:
	openXmlPart = new ExtendedFilePropertiesPart();
	return;
case CustomFilePropertiesPart.RelationshipTypeConstant:
	openXmlPart = new CustomFilePropertiesPart();
	return;
case ThumbnailPart.RelationshipTypeConstant:
	openXmlPart = new ThumbnailPart();
	return;
case DigitalSignatureOriginPart.RelationshipTypeConstant:
	openXmlPart = new DigitalSignatureOriginPart();
	return;
case XmlSignaturePart.RelationshipTypeConstant:
	openXmlPart = new XmlSignaturePart();
	return;
case QuickAccessToolbarCustomizationsPart.RelationshipTypeConstant:
	openXmlPart = new QuickAccessToolbarCustomizationsPart();
	return;
case RibbonExtensibilityPart.RelationshipTypeConstant:
	openXmlPart = new RibbonExtensibilityPart();
	return;
case RibbonAndBackstageCustomizationsPart.RelationshipTypeConstant:
	openXmlPart = new RibbonAndBackstageCustomizationsPart();
	return;
case WebExTaskpanesPart.RelationshipTypeConstant:
	openXmlPart = new WebExTaskpanesPart();
	return;

                }
            }
            else
            {
                System.Diagnostics.Debug.Assert(false);				
            }
            return;
        }
 /// <summary>
 /// Loads the DOM from the DiagramPersistLayoutPart.
 /// </summary>
 /// <param name="openXmlPart">Specifies the part to be loaded.</param>
 public void Load(DiagramPersistLayoutPart openXmlPart)
 {
     LoadFromPart(openXmlPart);
 }
 /// <summary>
 /// Drawing constructor.
 /// </summary>
 /// <param name="ownerPart">The owner part of the Drawing.</param>
 internal Drawing(DiagramPersistLayoutPart ownerPart) : base (ownerPart )
 {
 }
 /// <summary>
 /// Saves the DOM into the DiagramPersistLayoutPart.
 /// </summary>
 /// <param name="openXmlPart">Specifies the part to save to.</param>
 public void Save(DiagramPersistLayoutPart openXmlPart)
 {
     base.SaveToPart(openXmlPart);
 }
        internal void FeedDataDiagramPersistLayoutPart(DiagramPersistLayoutPart NewPart, DiagramPersistLayoutPart ExistingPart)
        {
            using (StreamReader sr = new StreamReader(ExistingPart.GetStream()))
            {
                using (StreamWriter sw = new StreamWriter(NewPart.GetStream(FileMode.Create)))
                {
                    sw.Write(sr.ReadToEnd());
                }
            }

            ImagePart imgpNew;
            foreach (ImagePart imgp in ExistingPart.ImageParts)
            {
                imgpNew = NewPart.AddImagePart(imgp.ContentType, ExistingPart.GetIdOfPart(imgp));
                this.FeedDataImagePart(imgpNew, imgp);
            }
        }
        // Generates content of diagramPersistLayoutPart1.
        private void GenerateDiagramPersistLayoutPart1Content(DiagramPersistLayoutPart diagramPersistLayoutPart1)
        {
            Dsp.Drawing drawing2 = new Dsp.Drawing();
            drawing2.AddNamespaceDeclaration("dgm", "http://schemas.openxmlformats.org/drawingml/2006/diagram");
            drawing2.AddNamespaceDeclaration("dsp", "http://schemas.microsoft.com/office/drawing/2008/diagram");
            drawing2.AddNamespaceDeclaration("a", "http://schemas.openxmlformats.org/drawingml/2006/main");

            Dsp.ShapeTree shapeTree1 = new Dsp.ShapeTree();

            Dsp.GroupShapeNonVisualProperties groupShapeNonVisualProperties1 = new Dsp.GroupShapeNonVisualProperties();
            Dsp.NonVisualDrawingProperties nonVisualDrawingProperties5 = new Dsp.NonVisualDrawingProperties() { Id = (UInt32Value)0U, Name = "" };
            Dsp.NonVisualGroupDrawingShapeProperties nonVisualGroupDrawingShapeProperties1 = new Dsp.NonVisualGroupDrawingShapeProperties();

            groupShapeNonVisualProperties1.Append(nonVisualDrawingProperties5);
            groupShapeNonVisualProperties1.Append(nonVisualGroupDrawingShapeProperties1);
            Dsp.GroupShapeProperties groupShapeProperties1 = new Dsp.GroupShapeProperties();

            Dsp.Shape shape6 = new Dsp.Shape() { ModelId = "{B9B6AF63-CBEE-495A-9B14-DABB8AC30D78}" };

            Dsp.ShapeNonVisualProperties shapeNonVisualProperties1 = new Dsp.ShapeNonVisualProperties();
            Dsp.NonVisualDrawingProperties nonVisualDrawingProperties6 = new Dsp.NonVisualDrawingProperties() { Id = (UInt32Value)0U, Name = "" };
            Dsp.NonVisualDrawingShapeProperties nonVisualDrawingShapeProperties1 = new Dsp.NonVisualDrawingShapeProperties();

            shapeNonVisualProperties1.Append(nonVisualDrawingProperties6);
            shapeNonVisualProperties1.Append(nonVisualDrawingShapeProperties1);

            Dsp.ShapeProperties shapeProperties30 = new Dsp.ShapeProperties();

            A.Transform2D transform2D4 = new A.Transform2D();
            A.Offset offset5 = new A.Offset() { X = 0L, Y = 442912L };
            A.Extents extents5 = new A.Extents() { Cx = 1428749L, Cy = 857250L };

            transform2D4.Append(offset5);
            transform2D4.Append(extents5);

            A.PresetGeometry presetGeometry4 = new A.PresetGeometry() { Preset = A.ShapeTypeValues.Rectangle };
            A.AdjustValueList adjustValueList4 = new A.AdjustValueList();

            presetGeometry4.Append(adjustValueList4);

            A.SolidFill solidFill8 = new A.SolidFill();

            A.SchemeColor schemeColor45 = new A.SchemeColor() { Val = A.SchemeColorValues.Accent1 };
            A.HueOffset hueOffset1 = new A.HueOffset() { Val = 0 };
            A.SaturationOffset saturationOffset1 = new A.SaturationOffset() { Val = 0 };
            A.LuminanceOffset luminanceOffset1 = new A.LuminanceOffset() { Val = 0 };
            A.AlphaOffset alphaOffset1 = new A.AlphaOffset() { Val = 0 };

            schemeColor45.Append(hueOffset1);
            schemeColor45.Append(saturationOffset1);
            schemeColor45.Append(luminanceOffset1);
            schemeColor45.Append(alphaOffset1);

            solidFill8.Append(schemeColor45);

            A.Outline outline5 = new A.Outline() { Width = 25400, CapType = A.LineCapValues.Flat, CompoundLineType = A.CompoundLineValues.Single, Alignment = A.PenAlignmentValues.Center };

            A.SolidFill solidFill9 = new A.SolidFill();

            A.SchemeColor schemeColor46 = new A.SchemeColor() { Val = A.SchemeColorValues.Light1 };
            A.HueOffset hueOffset2 = new A.HueOffset() { Val = 0 };
            A.SaturationOffset saturationOffset2 = new A.SaturationOffset() { Val = 0 };
            A.LuminanceOffset luminanceOffset2 = new A.LuminanceOffset() { Val = 0 };
            A.AlphaOffset alphaOffset2 = new A.AlphaOffset() { Val = 0 };

            schemeColor46.Append(hueOffset2);
            schemeColor46.Append(saturationOffset2);
            schemeColor46.Append(luminanceOffset2);
            schemeColor46.Append(alphaOffset2);

            solidFill9.Append(schemeColor46);
            A.PresetDash presetDash4 = new A.PresetDash() { Val = A.PresetLineDashValues.Solid };

            outline5.Append(solidFill9);
            outline5.Append(presetDash4);
            A.EffectList effectList4 = new A.EffectList();

            shapeProperties30.Append(transform2D4);
            shapeProperties30.Append(presetGeometry4);
            shapeProperties30.Append(solidFill8);
            shapeProperties30.Append(outline5);
            shapeProperties30.Append(effectList4);

            Dsp.ShapeStyle shapeStyle3 = new Dsp.ShapeStyle();

            A.LineReference lineReference52 = new A.LineReference() { Index = (UInt32Value)2U };
            A.RgbColorModelPercentage rgbColorModelPercentage151 = new A.RgbColorModelPercentage() { RedPortion = 0, GreenPortion = 0, BluePortion = 0 };

            lineReference52.Append(rgbColorModelPercentage151);

            A.FillReference fillReference52 = new A.FillReference() { Index = (UInt32Value)1U };
            A.RgbColorModelPercentage rgbColorModelPercentage152 = new A.RgbColorModelPercentage() { RedPortion = 0, GreenPortion = 0, BluePortion = 0 };

            fillReference52.Append(rgbColorModelPercentage152);

            A.EffectReference effectReference52 = new A.EffectReference() { Index = (UInt32Value)0U };
            A.RgbColorModelPercentage rgbColorModelPercentage153 = new A.RgbColorModelPercentage() { RedPortion = 0, GreenPortion = 0, BluePortion = 0 };

            effectReference52.Append(rgbColorModelPercentage153);

            A.FontReference fontReference52 = new A.FontReference() { Index = A.FontCollectionIndexValues.Minor };
            A.SchemeColor schemeColor47 = new A.SchemeColor() { Val = A.SchemeColorValues.Light1 };

            fontReference52.Append(schemeColor47);

            shapeStyle3.Append(lineReference52);
            shapeStyle3.Append(fillReference52);
            shapeStyle3.Append(effectReference52);
            shapeStyle3.Append(fontReference52);

            Dsp.TextBody textBody19 = new Dsp.TextBody();

            A.BodyProperties bodyProperties19 = new A.BodyProperties() { UseParagraphSpacing = false, Vertical = A.TextVerticalValues.Horizontal, Wrap = A.TextWrappingValues.Square, LeftInset = 148590, TopInset = 148590, RightInset = 148590, BottomInset = 148590, ColumnCount = 1, ColumnSpacing = 1270, Anchor = A.TextAnchoringTypeValues.Center, AnchorCenter = false };
            A.NoAutoFit noAutoFit1 = new A.NoAutoFit();

            bodyProperties19.Append(noAutoFit1);
            A.ListStyle listStyle19 = new A.ListStyle();

            A.Paragraph paragraph19 = new A.Paragraph();

            A.ParagraphProperties paragraphProperties2 = new A.ParagraphProperties() { Level = 0, Alignment = A.TextAlignmentTypeValues.Center, DefaultTabSize = 1733550 };

            A.LineSpacing lineSpacing1 = new A.LineSpacing();
            A.SpacingPercent spacingPercent1 = new A.SpacingPercent() { Val = 90000 };

            lineSpacing1.Append(spacingPercent1);

            A.SpaceBefore spaceBefore1 = new A.SpaceBefore();
            A.SpacingPercent spacingPercent2 = new A.SpacingPercent() { Val = 0 };

            spaceBefore1.Append(spacingPercent2);

            A.SpaceAfter spaceAfter1 = new A.SpaceAfter();
            A.SpacingPercent spacingPercent3 = new A.SpacingPercent() { Val = 35000 };

            spaceAfter1.Append(spacingPercent3);

            paragraphProperties2.Append(lineSpacing1);
            paragraphProperties2.Append(spaceBefore1);
            paragraphProperties2.Append(spaceAfter1);

            A.Run run7 = new A.Run();
            A.RunProperties runProperties7 = new A.RunProperties() { Language = "en-US", FontSize = 3900, Kerning = 1200 };
            A.Text text7 = new A.Text();
            text7.Text = "aaa";

            run7.Append(runProperties7);
            run7.Append(text7);

            paragraph19.Append(paragraphProperties2);
            paragraph19.Append(run7);

            textBody19.Append(bodyProperties19);
            textBody19.Append(listStyle19);
            textBody19.Append(paragraph19);

            Dsp.Transform2D transform2D5 = new Dsp.Transform2D();
            A.Offset offset6 = new A.Offset() { X = 0L, Y = 442912L };
            A.Extents extents6 = new A.Extents() { Cx = 1428749L, Cy = 857250L };

            transform2D5.Append(offset6);
            transform2D5.Append(extents6);

            shape6.Append(shapeNonVisualProperties1);
            shape6.Append(shapeProperties30);
            shape6.Append(shapeStyle3);
            shape6.Append(textBody19);
            shape6.Append(transform2D5);

            Dsp.Shape shape7 = new Dsp.Shape() { ModelId = "{74F2756F-474D-46D1-9293-5E8A451D94BC}" };

            Dsp.ShapeNonVisualProperties shapeNonVisualProperties2 = new Dsp.ShapeNonVisualProperties();
            Dsp.NonVisualDrawingProperties nonVisualDrawingProperties7 = new Dsp.NonVisualDrawingProperties() { Id = (UInt32Value)0U, Name = "" };
            Dsp.NonVisualDrawingShapeProperties nonVisualDrawingShapeProperties2 = new Dsp.NonVisualDrawingShapeProperties();

            shapeNonVisualProperties2.Append(nonVisualDrawingProperties7);
            shapeNonVisualProperties2.Append(nonVisualDrawingShapeProperties2);

            Dsp.ShapeProperties shapeProperties31 = new Dsp.ShapeProperties();

            A.Transform2D transform2D6 = new A.Transform2D();
            A.Offset offset7 = new A.Offset() { X = 1571625L, Y = 442912L };
            A.Extents extents7 = new A.Extents() { Cx = 1428749L, Cy = 857250L };

            transform2D6.Append(offset7);
            transform2D6.Append(extents7);

            A.PresetGeometry presetGeometry5 = new A.PresetGeometry() { Preset = A.ShapeTypeValues.Rectangle };
            A.AdjustValueList adjustValueList5 = new A.AdjustValueList();

            presetGeometry5.Append(adjustValueList5);

            A.SolidFill solidFill10 = new A.SolidFill();

            A.SchemeColor schemeColor48 = new A.SchemeColor() { Val = A.SchemeColorValues.Accent1 };
            A.HueOffset hueOffset3 = new A.HueOffset() { Val = 0 };
            A.SaturationOffset saturationOffset3 = new A.SaturationOffset() { Val = 0 };
            A.LuminanceOffset luminanceOffset3 = new A.LuminanceOffset() { Val = 0 };
            A.AlphaOffset alphaOffset3 = new A.AlphaOffset() { Val = 0 };

            schemeColor48.Append(hueOffset3);
            schemeColor48.Append(saturationOffset3);
            schemeColor48.Append(luminanceOffset3);
            schemeColor48.Append(alphaOffset3);

            solidFill10.Append(schemeColor48);

            A.Outline outline6 = new A.Outline() { Width = 25400, CapType = A.LineCapValues.Flat, CompoundLineType = A.CompoundLineValues.Single, Alignment = A.PenAlignmentValues.Center };

            A.SolidFill solidFill11 = new A.SolidFill();

            A.SchemeColor schemeColor49 = new A.SchemeColor() { Val = A.SchemeColorValues.Light1 };
            A.HueOffset hueOffset4 = new A.HueOffset() { Val = 0 };
            A.SaturationOffset saturationOffset4 = new A.SaturationOffset() { Val = 0 };
            A.LuminanceOffset luminanceOffset4 = new A.LuminanceOffset() { Val = 0 };
            A.AlphaOffset alphaOffset4 = new A.AlphaOffset() { Val = 0 };

            schemeColor49.Append(hueOffset4);
            schemeColor49.Append(saturationOffset4);
            schemeColor49.Append(luminanceOffset4);
            schemeColor49.Append(alphaOffset4);

            solidFill11.Append(schemeColor49);
            A.PresetDash presetDash5 = new A.PresetDash() { Val = A.PresetLineDashValues.Solid };

            outline6.Append(solidFill11);
            outline6.Append(presetDash5);
            A.EffectList effectList5 = new A.EffectList();

            shapeProperties31.Append(transform2D6);
            shapeProperties31.Append(presetGeometry5);
            shapeProperties31.Append(solidFill10);
            shapeProperties31.Append(outline6);
            shapeProperties31.Append(effectList5);

            Dsp.ShapeStyle shapeStyle4 = new Dsp.ShapeStyle();

            A.LineReference lineReference53 = new A.LineReference() { Index = (UInt32Value)2U };
            A.RgbColorModelPercentage rgbColorModelPercentage154 = new A.RgbColorModelPercentage() { RedPortion = 0, GreenPortion = 0, BluePortion = 0 };

            lineReference53.Append(rgbColorModelPercentage154);

            A.FillReference fillReference53 = new A.FillReference() { Index = (UInt32Value)1U };
            A.RgbColorModelPercentage rgbColorModelPercentage155 = new A.RgbColorModelPercentage() { RedPortion = 0, GreenPortion = 0, BluePortion = 0 };

            fillReference53.Append(rgbColorModelPercentage155);

            A.EffectReference effectReference53 = new A.EffectReference() { Index = (UInt32Value)0U };
            A.RgbColorModelPercentage rgbColorModelPercentage156 = new A.RgbColorModelPercentage() { RedPortion = 0, GreenPortion = 0, BluePortion = 0 };

            effectReference53.Append(rgbColorModelPercentage156);

            A.FontReference fontReference53 = new A.FontReference() { Index = A.FontCollectionIndexValues.Minor };
            A.SchemeColor schemeColor50 = new A.SchemeColor() { Val = A.SchemeColorValues.Light1 };

            fontReference53.Append(schemeColor50);

            shapeStyle4.Append(lineReference53);
            shapeStyle4.Append(fillReference53);
            shapeStyle4.Append(effectReference53);
            shapeStyle4.Append(fontReference53);

            Dsp.TextBody textBody20 = new Dsp.TextBody();

            A.BodyProperties bodyProperties20 = new A.BodyProperties() { UseParagraphSpacing = false, Vertical = A.TextVerticalValues.Horizontal, Wrap = A.TextWrappingValues.Square, LeftInset = 148590, TopInset = 148590, RightInset = 148590, BottomInset = 148590, ColumnCount = 1, ColumnSpacing = 1270, Anchor = A.TextAnchoringTypeValues.Center, AnchorCenter = false };
            A.NoAutoFit noAutoFit2 = new A.NoAutoFit();

            bodyProperties20.Append(noAutoFit2);
            A.ListStyle listStyle20 = new A.ListStyle();

            A.Paragraph paragraph20 = new A.Paragraph();

            A.ParagraphProperties paragraphProperties3 = new A.ParagraphProperties() { Level = 0, Alignment = A.TextAlignmentTypeValues.Center, DefaultTabSize = 1733550 };

            A.LineSpacing lineSpacing2 = new A.LineSpacing();
            A.SpacingPercent spacingPercent4 = new A.SpacingPercent() { Val = 90000 };

            lineSpacing2.Append(spacingPercent4);

            A.SpaceBefore spaceBefore2 = new A.SpaceBefore();
            A.SpacingPercent spacingPercent5 = new A.SpacingPercent() { Val = 0 };

            spaceBefore2.Append(spacingPercent5);

            A.SpaceAfter spaceAfter2 = new A.SpaceAfter();
            A.SpacingPercent spacingPercent6 = new A.SpacingPercent() { Val = 35000 };

            spaceAfter2.Append(spacingPercent6);

            paragraphProperties3.Append(lineSpacing2);
            paragraphProperties3.Append(spaceBefore2);
            paragraphProperties3.Append(spaceAfter2);

            A.Run run8 = new A.Run();
            A.RunProperties runProperties8 = new A.RunProperties() { Language = "en-US", FontSize = 3900, Kerning = 1200 };
            A.Text text8 = new A.Text();
            text8.Text = "bbb";

            run8.Append(runProperties8);
            run8.Append(text8);

            paragraph20.Append(paragraphProperties3);
            paragraph20.Append(run8);

            textBody20.Append(bodyProperties20);
            textBody20.Append(listStyle20);
            textBody20.Append(paragraph20);

            Dsp.Transform2D transform2D7 = new Dsp.Transform2D();
            A.Offset offset8 = new A.Offset() { X = 1571625L, Y = 442912L };
            A.Extents extents8 = new A.Extents() { Cx = 1428749L, Cy = 857250L };

            transform2D7.Append(offset8);
            transform2D7.Append(extents8);

            shape7.Append(shapeNonVisualProperties2);
            shape7.Append(shapeProperties31);
            shape7.Append(shapeStyle4);
            shape7.Append(textBody20);
            shape7.Append(transform2D7);

            Dsp.Shape shape8 = new Dsp.Shape() { ModelId = "{0E25295C-9B60-450E-BEE9-54F1BADAE0D5}" };

            Dsp.ShapeNonVisualProperties shapeNonVisualProperties3 = new Dsp.ShapeNonVisualProperties();
            Dsp.NonVisualDrawingProperties nonVisualDrawingProperties8 = new Dsp.NonVisualDrawingProperties() { Id = (UInt32Value)0U, Name = "" };
            Dsp.NonVisualDrawingShapeProperties nonVisualDrawingShapeProperties3 = new Dsp.NonVisualDrawingShapeProperties();

            shapeNonVisualProperties3.Append(nonVisualDrawingProperties8);
            shapeNonVisualProperties3.Append(nonVisualDrawingShapeProperties3);

            Dsp.ShapeProperties shapeProperties32 = new Dsp.ShapeProperties();

            A.Transform2D transform2D8 = new A.Transform2D();
            A.Offset offset9 = new A.Offset() { X = 3143250L, Y = 442912L };
            A.Extents extents9 = new A.Extents() { Cx = 1428749L, Cy = 857250L };

            transform2D8.Append(offset9);
            transform2D8.Append(extents9);

            A.PresetGeometry presetGeometry6 = new A.PresetGeometry() { Preset = A.ShapeTypeValues.Rectangle };
            A.AdjustValueList adjustValueList6 = new A.AdjustValueList();

            presetGeometry6.Append(adjustValueList6);

            A.SolidFill solidFill12 = new A.SolidFill();

            A.SchemeColor schemeColor51 = new A.SchemeColor() { Val = A.SchemeColorValues.Accent1 };
            A.HueOffset hueOffset5 = new A.HueOffset() { Val = 0 };
            A.SaturationOffset saturationOffset5 = new A.SaturationOffset() { Val = 0 };
            A.LuminanceOffset luminanceOffset5 = new A.LuminanceOffset() { Val = 0 };
            A.AlphaOffset alphaOffset5 = new A.AlphaOffset() { Val = 0 };

            schemeColor51.Append(hueOffset5);
            schemeColor51.Append(saturationOffset5);
            schemeColor51.Append(luminanceOffset5);
            schemeColor51.Append(alphaOffset5);

            solidFill12.Append(schemeColor51);

            A.Outline outline7 = new A.Outline() { Width = 25400, CapType = A.LineCapValues.Flat, CompoundLineType = A.CompoundLineValues.Single, Alignment = A.PenAlignmentValues.Center };

            A.SolidFill solidFill13 = new A.SolidFill();

            A.SchemeColor schemeColor52 = new A.SchemeColor() { Val = A.SchemeColorValues.Light1 };
            A.HueOffset hueOffset6 = new A.HueOffset() { Val = 0 };
            A.SaturationOffset saturationOffset6 = new A.SaturationOffset() { Val = 0 };
            A.LuminanceOffset luminanceOffset6 = new A.LuminanceOffset() { Val = 0 };
            A.AlphaOffset alphaOffset6 = new A.AlphaOffset() { Val = 0 };

            schemeColor52.Append(hueOffset6);
            schemeColor52.Append(saturationOffset6);
            schemeColor52.Append(luminanceOffset6);
            schemeColor52.Append(alphaOffset6);

            solidFill13.Append(schemeColor52);
            A.PresetDash presetDash6 = new A.PresetDash() { Val = A.PresetLineDashValues.Solid };

            outline7.Append(solidFill13);
            outline7.Append(presetDash6);
            A.EffectList effectList6 = new A.EffectList();

            shapeProperties32.Append(transform2D8);
            shapeProperties32.Append(presetGeometry6);
            shapeProperties32.Append(solidFill12);
            shapeProperties32.Append(outline7);
            shapeProperties32.Append(effectList6);

            Dsp.ShapeStyle shapeStyle5 = new Dsp.ShapeStyle();

            A.LineReference lineReference54 = new A.LineReference() { Index = (UInt32Value)2U };
            A.RgbColorModelPercentage rgbColorModelPercentage157 = new A.RgbColorModelPercentage() { RedPortion = 0, GreenPortion = 0, BluePortion = 0 };

            lineReference54.Append(rgbColorModelPercentage157);

            A.FillReference fillReference54 = new A.FillReference() { Index = (UInt32Value)1U };
            A.RgbColorModelPercentage rgbColorModelPercentage158 = new A.RgbColorModelPercentage() { RedPortion = 0, GreenPortion = 0, BluePortion = 0 };

            fillReference54.Append(rgbColorModelPercentage158);

            A.EffectReference effectReference54 = new A.EffectReference() { Index = (UInt32Value)0U };
            A.RgbColorModelPercentage rgbColorModelPercentage159 = new A.RgbColorModelPercentage() { RedPortion = 0, GreenPortion = 0, BluePortion = 0 };

            effectReference54.Append(rgbColorModelPercentage159);

            A.FontReference fontReference54 = new A.FontReference() { Index = A.FontCollectionIndexValues.Minor };
            A.SchemeColor schemeColor53 = new A.SchemeColor() { Val = A.SchemeColorValues.Light1 };

            fontReference54.Append(schemeColor53);

            shapeStyle5.Append(lineReference54);
            shapeStyle5.Append(fillReference54);
            shapeStyle5.Append(effectReference54);
            shapeStyle5.Append(fontReference54);

            Dsp.TextBody textBody21 = new Dsp.TextBody();

            A.BodyProperties bodyProperties21 = new A.BodyProperties() { UseParagraphSpacing = false, Vertical = A.TextVerticalValues.Horizontal, Wrap = A.TextWrappingValues.Square, LeftInset = 148590, TopInset = 148590, RightInset = 148590, BottomInset = 148590, ColumnCount = 1, ColumnSpacing = 1270, Anchor = A.TextAnchoringTypeValues.Center, AnchorCenter = false };
            A.NoAutoFit noAutoFit3 = new A.NoAutoFit();

            bodyProperties21.Append(noAutoFit3);
            A.ListStyle listStyle21 = new A.ListStyle();

            A.Paragraph paragraph21 = new A.Paragraph();

            A.ParagraphProperties paragraphProperties4 = new A.ParagraphProperties() { Level = 0, Alignment = A.TextAlignmentTypeValues.Center, DefaultTabSize = 1733550 };

            A.LineSpacing lineSpacing3 = new A.LineSpacing();
            A.SpacingPercent spacingPercent7 = new A.SpacingPercent() { Val = 90000 };

            lineSpacing3.Append(spacingPercent7);

            A.SpaceBefore spaceBefore3 = new A.SpaceBefore();
            A.SpacingPercent spacingPercent8 = new A.SpacingPercent() { Val = 0 };

            spaceBefore3.Append(spacingPercent8);

            A.SpaceAfter spaceAfter3 = new A.SpaceAfter();
            A.SpacingPercent spacingPercent9 = new A.SpacingPercent() { Val = 35000 };

            spaceAfter3.Append(spacingPercent9);

            paragraphProperties4.Append(lineSpacing3);
            paragraphProperties4.Append(spaceBefore3);
            paragraphProperties4.Append(spaceAfter3);

            A.Run run9 = new A.Run();
            A.RunProperties runProperties9 = new A.RunProperties() { Language = "en-US", FontSize = 3900, Kerning = 1200 };
            A.Text text9 = new A.Text();
            text9.Text = "ccc";

            run9.Append(runProperties9);
            run9.Append(text9);

            paragraph21.Append(paragraphProperties4);
            paragraph21.Append(run9);

            textBody21.Append(bodyProperties21);
            textBody21.Append(listStyle21);
            textBody21.Append(paragraph21);

            Dsp.Transform2D transform2D9 = new Dsp.Transform2D();
            A.Offset offset10 = new A.Offset() { X = 3143250L, Y = 442912L };
            A.Extents extents10 = new A.Extents() { Cx = 1428749L, Cy = 857250L };

            transform2D9.Append(offset10);
            transform2D9.Append(extents10);

            shape8.Append(shapeNonVisualProperties3);
            shape8.Append(shapeProperties32);
            shape8.Append(shapeStyle5);
            shape8.Append(textBody21);
            shape8.Append(transform2D9);

            Dsp.Shape shape9 = new Dsp.Shape() { ModelId = "{216E7A5E-38CD-46ED-97BD-9B59E6A10E61}" };

            Dsp.ShapeNonVisualProperties shapeNonVisualProperties4 = new Dsp.ShapeNonVisualProperties();
            Dsp.NonVisualDrawingProperties nonVisualDrawingProperties9 = new Dsp.NonVisualDrawingProperties() { Id = (UInt32Value)0U, Name = "" };
            Dsp.NonVisualDrawingShapeProperties nonVisualDrawingShapeProperties4 = new Dsp.NonVisualDrawingShapeProperties();

            shapeNonVisualProperties4.Append(nonVisualDrawingProperties9);
            shapeNonVisualProperties4.Append(nonVisualDrawingShapeProperties4);

            Dsp.ShapeProperties shapeProperties33 = new Dsp.ShapeProperties();

            A.Transform2D transform2D10 = new A.Transform2D();
            A.Offset offset11 = new A.Offset() { X = 785812L, Y = 1443037L };
            A.Extents extents11 = new A.Extents() { Cx = 1428749L, Cy = 857250L };

            transform2D10.Append(offset11);
            transform2D10.Append(extents11);

            A.PresetGeometry presetGeometry7 = new A.PresetGeometry() { Preset = A.ShapeTypeValues.Rectangle };
            A.AdjustValueList adjustValueList7 = new A.AdjustValueList();

            presetGeometry7.Append(adjustValueList7);

            A.SolidFill solidFill14 = new A.SolidFill();

            A.SchemeColor schemeColor54 = new A.SchemeColor() { Val = A.SchemeColorValues.Accent1 };
            A.HueOffset hueOffset7 = new A.HueOffset() { Val = 0 };
            A.SaturationOffset saturationOffset7 = new A.SaturationOffset() { Val = 0 };
            A.LuminanceOffset luminanceOffset7 = new A.LuminanceOffset() { Val = 0 };
            A.AlphaOffset alphaOffset7 = new A.AlphaOffset() { Val = 0 };

            schemeColor54.Append(hueOffset7);
            schemeColor54.Append(saturationOffset7);
            schemeColor54.Append(luminanceOffset7);
            schemeColor54.Append(alphaOffset7);

            solidFill14.Append(schemeColor54);

            A.Outline outline8 = new A.Outline() { Width = 25400, CapType = A.LineCapValues.Flat, CompoundLineType = A.CompoundLineValues.Single, Alignment = A.PenAlignmentValues.Center };

            A.SolidFill solidFill15 = new A.SolidFill();

            A.SchemeColor schemeColor55 = new A.SchemeColor() { Val = A.SchemeColorValues.Light1 };
            A.HueOffset hueOffset8 = new A.HueOffset() { Val = 0 };
            A.SaturationOffset saturationOffset8 = new A.SaturationOffset() { Val = 0 };
            A.LuminanceOffset luminanceOffset8 = new A.LuminanceOffset() { Val = 0 };
            A.AlphaOffset alphaOffset8 = new A.AlphaOffset() { Val = 0 };

            schemeColor55.Append(hueOffset8);
            schemeColor55.Append(saturationOffset8);
            schemeColor55.Append(luminanceOffset8);
            schemeColor55.Append(alphaOffset8);

            solidFill15.Append(schemeColor55);
            A.PresetDash presetDash7 = new A.PresetDash() { Val = A.PresetLineDashValues.Solid };

            outline8.Append(solidFill15);
            outline8.Append(presetDash7);
            A.EffectList effectList7 = new A.EffectList();

            shapeProperties33.Append(transform2D10);
            shapeProperties33.Append(presetGeometry7);
            shapeProperties33.Append(solidFill14);
            shapeProperties33.Append(outline8);
            shapeProperties33.Append(effectList7);

            Dsp.ShapeStyle shapeStyle6 = new Dsp.ShapeStyle();

            A.LineReference lineReference55 = new A.LineReference() { Index = (UInt32Value)2U };
            A.RgbColorModelPercentage rgbColorModelPercentage160 = new A.RgbColorModelPercentage() { RedPortion = 0, GreenPortion = 0, BluePortion = 0 };

            lineReference55.Append(rgbColorModelPercentage160);

            A.FillReference fillReference55 = new A.FillReference() { Index = (UInt32Value)1U };
            A.RgbColorModelPercentage rgbColorModelPercentage161 = new A.RgbColorModelPercentage() { RedPortion = 0, GreenPortion = 0, BluePortion = 0 };

            fillReference55.Append(rgbColorModelPercentage161);

            A.EffectReference effectReference55 = new A.EffectReference() { Index = (UInt32Value)0U };
            A.RgbColorModelPercentage rgbColorModelPercentage162 = new A.RgbColorModelPercentage() { RedPortion = 0, GreenPortion = 0, BluePortion = 0 };

            effectReference55.Append(rgbColorModelPercentage162);

            A.FontReference fontReference55 = new A.FontReference() { Index = A.FontCollectionIndexValues.Minor };
            A.SchemeColor schemeColor56 = new A.SchemeColor() { Val = A.SchemeColorValues.Light1 };

            fontReference55.Append(schemeColor56);

            shapeStyle6.Append(lineReference55);
            shapeStyle6.Append(fillReference55);
            shapeStyle6.Append(effectReference55);
            shapeStyle6.Append(fontReference55);

            Dsp.TextBody textBody22 = new Dsp.TextBody();

            A.BodyProperties bodyProperties22 = new A.BodyProperties() { UseParagraphSpacing = false, Vertical = A.TextVerticalValues.Horizontal, Wrap = A.TextWrappingValues.Square, LeftInset = 148590, TopInset = 148590, RightInset = 148590, BottomInset = 148590, ColumnCount = 1, ColumnSpacing = 1270, Anchor = A.TextAnchoringTypeValues.Center, AnchorCenter = false };
            A.NoAutoFit noAutoFit4 = new A.NoAutoFit();

            bodyProperties22.Append(noAutoFit4);
            A.ListStyle listStyle22 = new A.ListStyle();

            A.Paragraph paragraph22 = new A.Paragraph();

            A.ParagraphProperties paragraphProperties5 = new A.ParagraphProperties() { Level = 0, Alignment = A.TextAlignmentTypeValues.Center, DefaultTabSize = 1733550 };

            A.LineSpacing lineSpacing4 = new A.LineSpacing();
            A.SpacingPercent spacingPercent10 = new A.SpacingPercent() { Val = 90000 };

            lineSpacing4.Append(spacingPercent10);

            A.SpaceBefore spaceBefore4 = new A.SpaceBefore();
            A.SpacingPercent spacingPercent11 = new A.SpacingPercent() { Val = 0 };

            spaceBefore4.Append(spacingPercent11);

            A.SpaceAfter spaceAfter4 = new A.SpaceAfter();
            A.SpacingPercent spacingPercent12 = new A.SpacingPercent() { Val = 35000 };

            spaceAfter4.Append(spacingPercent12);

            paragraphProperties5.Append(lineSpacing4);
            paragraphProperties5.Append(spaceBefore4);
            paragraphProperties5.Append(spaceAfter4);

            A.Run run10 = new A.Run();
            A.RunProperties runProperties10 = new A.RunProperties() { Language = "en-US", FontSize = 3900, Kerning = 1200 };
            A.Text text10 = new A.Text();
            text10.Text = "ddd";

            run10.Append(runProperties10);
            run10.Append(text10);

            paragraph22.Append(paragraphProperties5);
            paragraph22.Append(run10);

            textBody22.Append(bodyProperties22);
            textBody22.Append(listStyle22);
            textBody22.Append(paragraph22);

            Dsp.Transform2D transform2D11 = new Dsp.Transform2D();
            A.Offset offset12 = new A.Offset() { X = 785812L, Y = 1443037L };
            A.Extents extents12 = new A.Extents() { Cx = 1428749L, Cy = 857250L };

            transform2D11.Append(offset12);
            transform2D11.Append(extents12);

            shape9.Append(shapeNonVisualProperties4);
            shape9.Append(shapeProperties33);
            shape9.Append(shapeStyle6);
            shape9.Append(textBody22);
            shape9.Append(transform2D11);

            Dsp.Shape shape10 = new Dsp.Shape() { ModelId = "{06938A85-ABE7-4259-8535-52632AD9121B}" };

            Dsp.ShapeNonVisualProperties shapeNonVisualProperties5 = new Dsp.ShapeNonVisualProperties();
            Dsp.NonVisualDrawingProperties nonVisualDrawingProperties10 = new Dsp.NonVisualDrawingProperties() { Id = (UInt32Value)0U, Name = "" };
            Dsp.NonVisualDrawingShapeProperties nonVisualDrawingShapeProperties5 = new Dsp.NonVisualDrawingShapeProperties();

            shapeNonVisualProperties5.Append(nonVisualDrawingProperties10);
            shapeNonVisualProperties5.Append(nonVisualDrawingShapeProperties5);

            Dsp.ShapeProperties shapeProperties34 = new Dsp.ShapeProperties();

            A.Transform2D transform2D12 = new A.Transform2D();
            A.Offset offset13 = new A.Offset() { X = 2357437L, Y = 1443037L };
            A.Extents extents13 = new A.Extents() { Cx = 1428749L, Cy = 857250L };

            transform2D12.Append(offset13);
            transform2D12.Append(extents13);

            A.PresetGeometry presetGeometry8 = new A.PresetGeometry() { Preset = A.ShapeTypeValues.Rectangle };
            A.AdjustValueList adjustValueList8 = new A.AdjustValueList();

            presetGeometry8.Append(adjustValueList8);

            A.SolidFill solidFill16 = new A.SolidFill();

            A.SchemeColor schemeColor57 = new A.SchemeColor() { Val = A.SchemeColorValues.Accent1 };
            A.HueOffset hueOffset9 = new A.HueOffset() { Val = 0 };
            A.SaturationOffset saturationOffset9 = new A.SaturationOffset() { Val = 0 };
            A.LuminanceOffset luminanceOffset9 = new A.LuminanceOffset() { Val = 0 };
            A.AlphaOffset alphaOffset9 = new A.AlphaOffset() { Val = 0 };

            schemeColor57.Append(hueOffset9);
            schemeColor57.Append(saturationOffset9);
            schemeColor57.Append(luminanceOffset9);
            schemeColor57.Append(alphaOffset9);

            solidFill16.Append(schemeColor57);

            A.Outline outline9 = new A.Outline() { Width = 25400, CapType = A.LineCapValues.Flat, CompoundLineType = A.CompoundLineValues.Single, Alignment = A.PenAlignmentValues.Center };

            A.SolidFill solidFill17 = new A.SolidFill();

            A.SchemeColor schemeColor58 = new A.SchemeColor() { Val = A.SchemeColorValues.Light1 };
            A.HueOffset hueOffset10 = new A.HueOffset() { Val = 0 };
            A.SaturationOffset saturationOffset10 = new A.SaturationOffset() { Val = 0 };
            A.LuminanceOffset luminanceOffset10 = new A.LuminanceOffset() { Val = 0 };
            A.AlphaOffset alphaOffset10 = new A.AlphaOffset() { Val = 0 };

            schemeColor58.Append(hueOffset10);
            schemeColor58.Append(saturationOffset10);
            schemeColor58.Append(luminanceOffset10);
            schemeColor58.Append(alphaOffset10);

            solidFill17.Append(schemeColor58);
            A.PresetDash presetDash8 = new A.PresetDash() { Val = A.PresetLineDashValues.Solid };

            outline9.Append(solidFill17);
            outline9.Append(presetDash8);
            A.EffectList effectList8 = new A.EffectList();

            shapeProperties34.Append(transform2D12);
            shapeProperties34.Append(presetGeometry8);
            shapeProperties34.Append(solidFill16);
            shapeProperties34.Append(outline9);
            shapeProperties34.Append(effectList8);

            Dsp.ShapeStyle shapeStyle7 = new Dsp.ShapeStyle();

            A.LineReference lineReference56 = new A.LineReference() { Index = (UInt32Value)2U };
            A.RgbColorModelPercentage rgbColorModelPercentage163 = new A.RgbColorModelPercentage() { RedPortion = 0, GreenPortion = 0, BluePortion = 0 };

            lineReference56.Append(rgbColorModelPercentage163);

            A.FillReference fillReference56 = new A.FillReference() { Index = (UInt32Value)1U };
            A.RgbColorModelPercentage rgbColorModelPercentage164 = new A.RgbColorModelPercentage() { RedPortion = 0, GreenPortion = 0, BluePortion = 0 };

            fillReference56.Append(rgbColorModelPercentage164);

            A.EffectReference effectReference56 = new A.EffectReference() { Index = (UInt32Value)0U };
            A.RgbColorModelPercentage rgbColorModelPercentage165 = new A.RgbColorModelPercentage() { RedPortion = 0, GreenPortion = 0, BluePortion = 0 };

            effectReference56.Append(rgbColorModelPercentage165);

            A.FontReference fontReference56 = new A.FontReference() { Index = A.FontCollectionIndexValues.Minor };
            A.SchemeColor schemeColor59 = new A.SchemeColor() { Val = A.SchemeColorValues.Light1 };

            fontReference56.Append(schemeColor59);

            shapeStyle7.Append(lineReference56);
            shapeStyle7.Append(fillReference56);
            shapeStyle7.Append(effectReference56);
            shapeStyle7.Append(fontReference56);

            Dsp.TextBody textBody23 = new Dsp.TextBody();

            A.BodyProperties bodyProperties23 = new A.BodyProperties() { UseParagraphSpacing = false, Vertical = A.TextVerticalValues.Horizontal, Wrap = A.TextWrappingValues.Square, LeftInset = 148590, TopInset = 148590, RightInset = 148590, BottomInset = 148590, ColumnCount = 1, ColumnSpacing = 1270, Anchor = A.TextAnchoringTypeValues.Center, AnchorCenter = false };
            A.NoAutoFit noAutoFit5 = new A.NoAutoFit();

            bodyProperties23.Append(noAutoFit5);
            A.ListStyle listStyle23 = new A.ListStyle();

            A.Paragraph paragraph23 = new A.Paragraph();

            A.ParagraphProperties paragraphProperties6 = new A.ParagraphProperties() { Level = 0, Alignment = A.TextAlignmentTypeValues.Center, DefaultTabSize = 1733550 };

            A.LineSpacing lineSpacing5 = new A.LineSpacing();
            A.SpacingPercent spacingPercent13 = new A.SpacingPercent() { Val = 90000 };

            lineSpacing5.Append(spacingPercent13);

            A.SpaceBefore spaceBefore5 = new A.SpaceBefore();
            A.SpacingPercent spacingPercent14 = new A.SpacingPercent() { Val = 0 };

            spaceBefore5.Append(spacingPercent14);

            A.SpaceAfter spaceAfter5 = new A.SpaceAfter();
            A.SpacingPercent spacingPercent15 = new A.SpacingPercent() { Val = 35000 };

            spaceAfter5.Append(spacingPercent15);

            paragraphProperties6.Append(lineSpacing5);
            paragraphProperties6.Append(spaceBefore5);
            paragraphProperties6.Append(spaceAfter5);

            A.Run run11 = new A.Run();
            A.RunProperties runProperties11 = new A.RunProperties() { Language = "en-US", FontSize = 3900, Kerning = 1200 };
            A.Text text11 = new A.Text();
            text11.Text = "eee";

            run11.Append(runProperties11);
            run11.Append(text11);

            paragraph23.Append(paragraphProperties6);
            paragraph23.Append(run11);

            textBody23.Append(bodyProperties23);
            textBody23.Append(listStyle23);
            textBody23.Append(paragraph23);

            Dsp.Transform2D transform2D13 = new Dsp.Transform2D();
            A.Offset offset14 = new A.Offset() { X = 2357437L, Y = 1443037L };
            A.Extents extents14 = new A.Extents() { Cx = 1428749L, Cy = 857250L };

            transform2D13.Append(offset14);
            transform2D13.Append(extents14);

            shape10.Append(shapeNonVisualProperties5);
            shape10.Append(shapeProperties34);
            shape10.Append(shapeStyle7);
            shape10.Append(textBody23);
            shape10.Append(transform2D13);

            shapeTree1.Append(groupShapeNonVisualProperties1);
            shapeTree1.Append(groupShapeProperties1);
            shapeTree1.Append(shape6);
            shapeTree1.Append(shape7);
            shapeTree1.Append(shape8);
            shapeTree1.Append(shape9);
            shapeTree1.Append(shape10);

            drawing2.Append(shapeTree1);

            diagramPersistLayoutPart1.Drawing = drawing2;
        }