# PdfCellDataBarFluent

The fluent methods of PdfCellDataBar, generated from its public properties: A property-named method sets a property and a singular-named method adds…

Class 

`OfficeIMO.Pdf`

**Namespace**

`OfficeIMO.Pdf`

**Assembly**

`OfficeIMO.Pdf`

**Modifiers**

static

The fluent methods of [PdfCellDataBar](/api/pdf/officeimo-pdf-pdfcelldatabar/), generated from its public properties: A property-named method sets a property and a singular-named method adds to a collection, both returning the same instance.

## Inheritance

- object
- PdfCellDataBarFluent

Filter members 

Show inherited

## Methods

`public static PdfCellDataBar Color(PdfCellDataBar pdfCellDataBar, OfficeColor value)` [#](#method-color-officeimo-pdf-pdfcelldatabar-officeimo-officecolor)

Sets [PdfCellDataBar.Color](/api/pdf/officeimo-pdf-pdfcelldatabar/): Fill color used for the data bar.

Parameters

**pdfCellDataBar OfficeIMO.Pdf.PdfCellDataBar required**

The instance.

**value OfficeIMO.OfficeColor required**

The value.

Returns

`PdfCellDataBar` The same instance.

Examples

```csharp
// C# initializer or property                                  // C# fluent
new global::OfficeIMO.Pdf.PdfCellDataBar { Color = value };    pdfCellDataBar.Color(value);
```

`public static PdfCellDataBar Ratio(PdfCellDataBar pdfCellDataBar, double value)` [#](#method-ratio-officeimo-pdf-pdfcelldatabar-double)

Sets [PdfCellDataBar.Ratio](/api/pdf/officeimo-pdf-pdfcelldatabar/): Filled width as a 0..1 fraction of the cell content width.

Parameters

**pdfCellDataBar OfficeIMO.Pdf.PdfCellDataBar required**

The instance.

**value double required**

The value.

Returns

`PdfCellDataBar` The same instance.

Examples

```csharp
// C# initializer or property                                  // C# fluent
new global::OfficeIMO.Pdf.PdfCellDataBar { Ratio = value };    pdfCellDataBar.Ratio(value);
```

`public static PdfCellDataBar StartRatio(PdfCellDataBar pdfCellDataBar, double value)` [#](#method-startratio-officeimo-pdf-pdfcelldatabar-double)

Sets [PdfCellDataBar.StartRatio](/api/pdf/officeimo-pdf-pdfcelldatabar/): Horizontal start position as a 0..1 fraction of the cell content width.

Parameters

**pdfCellDataBar OfficeIMO.Pdf.PdfCellDataBar required**

The instance.

**value double required**

The value.

Returns

`PdfCellDataBar` The same instance.

Examples

```csharp
// C# initializer or property                                       // C# fluent
new global::OfficeIMO.Pdf.PdfCellDataBar { StartRatio = value };    pdfCellDataBar.StartRatio(value);
```

## 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?`

<!-- PowerForge markdown artifact sha256:63B25F3EFC48DCCE704EE82BD68AC16BC32C34BE6A6F744EFBA1813EF55A41A7 -->
