---
Product: Aspose.Cells
Platform: typescript
Page Type: reference
Canonical URL: https://reference.aspose.org/cells/typescript/DataRelationship
---

# DataRelationship

## Overview

`DataRelationship` is a class in Aspose.Cells FOSS for Typescript.

DataRelationship.worksheetRels(sheetIndex) returns the relationship XML string for the specified worksheet.

This class provides 3 methods for working with DataRelationship objects in Typescript programs.
Available methods include: `drawingRels`, `drawingsRels`, `worksheetRels`.
All public members are accessible to any Typescript application after installing the Aspose.Cells FOSS for Typescript package.
Properties: `length`.

## Description

`DataRelationship` is a class in the Aspose.Cells FOSS library for TypeScript that exposes 3 methods and 1 property for programmatic use.

Core capabilities include: `: number`. These operations enable developers to integrate datarelationship functionality directly into TypeScript applications.

The class also provides the `length` property (gets the length).

## Properties

| Name | Type | Access | Description |
|------|------|--------|-------------|
| `length` | `: number` | Read | Gets the length. |

## Methods

| Signature | Description |
|-----------|-------------|
| `worksheetRels(sheetIndex: number)` → `string` | Returns the relationship XML string for the specified worksheet |
| `drawingRels()` → `string` |  |
| `drawingsRels(shapesArray: { length: number }[])` → `string` |  |

## See Also

- [Aspose.Cells — Enterprise API Reference](https://reference.aspose.com/cells/)