OpenXmlSdkTs - v1.0.7
    Preparing search index...

    Variable RelationshipTypeConst

    RelationshipType: {
        alternativeFormatImport: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/aFChunk";
        calculationChain: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/calcChain";
        cellMetadata: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/sheetMetadata";
        chart: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart";
        chartColorStyle: "http://schemas.microsoft.com/office/2011/relationships/chartColorStyle";
        chartDrawing: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/chartUserShapes";
        chartsheet: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/chartsheet";
        chartStyle: "http://schemas.microsoft.com/office/2011/relationships/chartStyle";
        commentAuthors: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/commentAuthors";
        connections: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/connections";
        coreFileProperties: "http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties";
        customFileProperties: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/custom-properties";
        customization: "http://schemas.microsoft.com/office/2006/relationships/keyMapCustomizations";
        customProperty: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/customProperty";
        customXml: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXml";
        customXmlMappings: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/xmlMaps";
        customXmlProperties: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXmlProps";
        diagramColors: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/diagramColors";
        diagramData: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/diagramData";
        diagramLayoutDefinition: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/diagramLayout";
        diagramPersistLayout: "http://schemas.microsoft.com/office/2007/relationships/diagramDrawing";
        diagramStyle: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/diagramQuickStyle";
        dialogsheet: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/dialogsheet";
        digitalSignatureOrigin: "http://schemas.openxmlformats.org/package/2006/relationships/digital-signature/origin";
        documentSettings: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/settings";
        drawings: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing";
        endnotes: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/endnotes";
        excelAttachedToolbars: "http://schemas.microsoft.com/office/2006/relationships/attachedToolbars";
        extendedFileProperties: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties";
        externalWorkbook: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLink";
        font: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/font";
        fontTable: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/fontTable";
        footer: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/footer";
        footnotes: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/footnotes";
        glossaryDocument: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/glossaryDocument";
        handoutMaster: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/handoutMaster";
        header: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/header";
        image: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/image";
        mainDocument: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument";
        notesMaster: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/notesMaster";
        notesSlide: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/notesSlide";
        numberingDefinitions: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/numbering";
        pivotTable: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/pivotTable";
        pivotTableCacheDefinition: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/pivotCacheDefinition";
        pivotTableCacheRecords: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/pivotCacheRecords";
        presentation: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument";
        presentationProperties: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/presProps";
        queryTable: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/queryTable";
        ribbonAndBackstageCustomizations: "http://schemas.microsoft.com/office/2007/relationships/ui/extensibility";
        sharedStringTable: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings";
        singleCellTable: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/tableSingleCells";
        slide: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/slide";
        slideComments: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments";
        slideLayout: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideLayout";
        slideMaster: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideMaster";
        slideSyncData: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideUpdateInfo";
        styles: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles";
        tableDefinition: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/table";
        tableStyles: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/tableStyles";
        timeLine: "http://schemas.microsoft.com/office/2011/relationships/timeline";
        theme: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme";
        themeOverride: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/themeOverride";
        thumbnail: "http://schemas.openxmlformats.org/package/2006/relationships/metadata/thumbnail";
        userDefinedTags: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/tags";
        viewProperties: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/viewProps";
        vmlDrawing: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/vmlDrawing";
        volatileDependencies: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/volatileDependencies";
        webSettings: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/webSettings";
        wordAttachedToolbars: "http://schemas.microsoft.com/office/2006/relationships/attachedToolbars";
        wordprocessingComments: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments";
        workbook: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument";
        workbookRevisionHeader: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/revisionHeaders";
        workbookRevisionLog: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/revisionLog";
        workbookStyles: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles";
        workbookUserData: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/usernames";
        worksheet: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet";
        worksheetComments: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments";
        worksheetSortMap: "http://schemas.microsoft.com/office/2006/relationships/wsSortMap";
        xmlSignature: "http://schemas.openxmlformats.org/package/2006/relationships/digital-signature/signature";
    } = ...

    Static lookup mapping human-readable relationship type labels to their full URI strings.

    Type Declaration

    • ReadonlyalternativeFormatImport: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/aFChunk"
    • ReadonlycalculationChain: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/calcChain"
    • ReadonlycellMetadata: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/sheetMetadata"
    • Readonlychart: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart"
    • ReadonlychartColorStyle: "http://schemas.microsoft.com/office/2011/relationships/chartColorStyle"
    • ReadonlychartDrawing: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/chartUserShapes"
    • Readonlychartsheet: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/chartsheet"
    • ReadonlychartStyle: "http://schemas.microsoft.com/office/2011/relationships/chartStyle"
    • ReadonlycommentAuthors: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/commentAuthors"
    • Readonlyconnections: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/connections"
    • ReadonlycoreFileProperties: "http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties"
    • ReadonlycustomFileProperties: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/custom-properties"
    • Readonlycustomization: "http://schemas.microsoft.com/office/2006/relationships/keyMapCustomizations"
    • ReadonlycustomProperty: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/customProperty"
    • ReadonlycustomXml: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXml"
    • ReadonlycustomXmlMappings: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/xmlMaps"
    • ReadonlycustomXmlProperties: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXmlProps"
    • ReadonlydiagramColors: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/diagramColors"
    • ReadonlydiagramData: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/diagramData"
    • ReadonlydiagramLayoutDefinition: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/diagramLayout"
    • ReadonlydiagramPersistLayout: "http://schemas.microsoft.com/office/2007/relationships/diagramDrawing"
    • ReadonlydiagramStyle: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/diagramQuickStyle"
    • Readonlydialogsheet: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/dialogsheet"
    • ReadonlydigitalSignatureOrigin: "http://schemas.openxmlformats.org/package/2006/relationships/digital-signature/origin"
    • ReadonlydocumentSettings: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/settings"
    • Readonlydrawings: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing"
    • Readonlyendnotes: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/endnotes"
    • ReadonlyexcelAttachedToolbars: "http://schemas.microsoft.com/office/2006/relationships/attachedToolbars"
    • ReadonlyextendedFileProperties: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties"
    • ReadonlyexternalWorkbook: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLink"
    • Readonlyfont: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/font"
    • ReadonlyfontTable: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/fontTable"
    • Readonlyfootnotes: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/footnotes"
    • ReadonlyglossaryDocument: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/glossaryDocument"
    • ReadonlyhandoutMaster: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/handoutMaster"
    • Readonlyimage: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/image"
    • ReadonlymainDocument: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument"
    • ReadonlynotesMaster: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/notesMaster"
    • ReadonlynotesSlide: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/notesSlide"
    • ReadonlynumberingDefinitions: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/numbering"
    • ReadonlypivotTable: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/pivotTable"
    • ReadonlypivotTableCacheDefinition: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/pivotCacheDefinition"
    • ReadonlypivotTableCacheRecords: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/pivotCacheRecords"
    • Readonlypresentation: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument"
    • ReadonlypresentationProperties: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/presProps"
    • ReadonlyqueryTable: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/queryTable"
    • ReadonlyribbonAndBackstageCustomizations: "http://schemas.microsoft.com/office/2007/relationships/ui/extensibility"
    • ReadonlysharedStringTable: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings"
    • ReadonlysingleCellTable: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/tableSingleCells"
    • Readonlyslide: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/slide"
    • ReadonlyslideComments: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments"
    • ReadonlyslideLayout: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideLayout"
    • ReadonlyslideMaster: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideMaster"
    • ReadonlyslideSyncData: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideUpdateInfo"
    • Readonlystyles: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles"
    • ReadonlytableDefinition: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/table"
    • ReadonlytableStyles: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/tableStyles"
    • ReadonlytimeLine: "http://schemas.microsoft.com/office/2011/relationships/timeline"
    • Readonlytheme: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme"
    • ReadonlythemeOverride: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/themeOverride"
    • Readonlythumbnail: "http://schemas.openxmlformats.org/package/2006/relationships/metadata/thumbnail"
    • ReadonlyuserDefinedTags: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/tags"
    • ReadonlyviewProperties: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/viewProps"
    • ReadonlyvmlDrawing: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/vmlDrawing"
    • ReadonlyvolatileDependencies: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/volatileDependencies"
    • ReadonlywebSettings: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/webSettings"
    • ReadonlywordAttachedToolbars: "http://schemas.microsoft.com/office/2006/relationships/attachedToolbars"
    • ReadonlywordprocessingComments: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments"
    • Readonlyworkbook: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument"
    • ReadonlyworkbookRevisionHeader: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/revisionHeaders"
    • ReadonlyworkbookRevisionLog: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/revisionLog"
    • ReadonlyworkbookStyles: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles"
    • ReadonlyworkbookUserData: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/usernames"
    • Readonlyworksheet: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet"
    • ReadonlyworksheetComments: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments"
    • ReadonlyworksheetSortMap: "http://schemas.microsoft.com/office/2006/relationships/wsSortMap"
    • ReadonlyxmlSignature: "http://schemas.openxmlformats.org/package/2006/relationships/digital-signature/signature"

    Use these labels instead of raw URI strings when querying or creating relationships. Property names match the corresponding relationship type (e.g., RelationshipType.styles, RelationshipType.image, RelationshipType.slide).

    import { RelationshipType } from "openxmlsdkts";

    const stylePart = await mainPart.getPartByRelationshipType(RelationshipType.styles);
    await mainPart.addRelationship("rId20", RelationshipType.image, "media/image1.png");