# PdfCellDataBar

Describes a proportional visual bar drawn inside a table cell, behind the cell text.

Class 

`OfficeIMO.Pdf`

**Namespace**

`OfficeIMO.Pdf`

**Assembly**

`OfficeIMO.Pdf`

**Source revision**

`be6c300e4ab1` with working tree changes

**Source**

[PdfCellDataBar.cs:11](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfCellDataBar.cs#L11)

**Modifiers**

sealed

Describes a proportional visual bar drawn inside a table cell, behind the cell text.

## Inheritance

- object
- PdfCellDataBar

## Usage

Explore 2 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

### Returned or exposed by 2

- Method [PdfCellDataBar.Clone](/api/pdf/officeimo-pdf-pdfcelldatabar/#method-clone)
- Property [PdfTableStyle.CellDataBars](/api/pdf/officeimo-pdf-pdftablestyle/#property-celldatabars)

Filter members 

Show inherited

## Constructors

`public PdfCellDataBar()` [#](#constructor-ctor)

[PdfCellDataBar.cs:11](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfCellDataBar.cs#L11)

## Methods

`public PdfCellDataBar Clone()` [#](#method-clone)

[PdfCellDataBar.cs:39](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfCellDataBar.cs#L39)

Creates a deep copy of this data bar.

Returns

`PdfCellDataBar`

## Inherited Methods

`public virtual bool Equals(object? obj)` [#](#method-equals-object)

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

`public virtual int GetHashCode()` [#](#method-gethashcode)

Inherited from object

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public virtual string? ToString()` [#](#method-tostring)

Inherited from object

Returns

`string?`

## Properties

`public OfficeColor Color { get; set; }` [#](#property-color)

[PdfCellDataBar.cs:11](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfCellDataBar.cs#L11)

Fill color used for the data bar.

`public double Ratio { get; set; }` [#](#property-ratio)

[PdfCellDataBar.cs:15](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfCellDataBar.cs#L15)

Filled width as a 0..1 fraction of the cell content width.

`public double StartRatio { get; set; }` [#](#property-startratio)

[PdfCellDataBar.cs:27](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfCellDataBar.cs#L27)

Horizontal start position as a 0..1 fraction of the cell content width.

<!-- PowerForge markdown artifact sha256:D87784709F8309F2A0846003C463F6128DB40EAB19CFFA49BC4AD66EFF05A743 -->
