# PdfColumnWidth

Immutable row-column sizing value.

Struct 

`OfficeIMO.Pdf`

**Namespace**

`OfficeIMO.Pdf`

**Assembly**

`OfficeIMO.Pdf`

**Source revision**

`be6c300e4ab1` with working tree changes

**Source**

[PdfColumnWidth.cs:41](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Compose/PdfColumnWidth.cs#L41)

**Base**

`ValueType`

**Modifiers**

sealed

Immutable row-column sizing value. Use [PdfColumnWidth.Relative](/api/pdf/officeimo-pdf-pdfcolumnwidth/), [PdfColumnWidth.Fixed](/api/pdf/officeimo-pdf-pdfcolumnwidth/), [PdfColumnWidth.Auto](/api/pdf/officeimo-pdf-pdfcolumnwidth/), or [PdfColumnWidth.Percent](/api/pdf/officeimo-pdf-pdfcolumnwidth/) to make sizing intent explicit.

## Inheritance

- ValueType
- PdfColumnWidth

## Usage

Explore 7 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 5

- Method [PdfColumnWidth.Auto](/api/pdf/officeimo-pdf-pdfcolumnwidth/#method-auto-officeimo-officelength-nullable-officeimo-officelength)
- Method [PdfColumnWidth.Fixed](/api/pdf/officeimo-pdf-pdfcolumnwidth/#method-fixed-officeimo-officelength)
- Method [PdfColumnWidth.Percent](/api/pdf/officeimo-pdf-pdfcolumnwidth/#method-percent-double)
- Method [PdfColumnWidth.Relative](/api/pdf/officeimo-pdf-pdfcolumnwidth/#method-relative-double)
- Property [PdfFlowColumn.Width](/api/pdf/officeimo-pdf-pdfflowcolumn/#property-width)

### Accepted by parameters 2

- Constructor [PdfFlowColumn.PdfFlowColumn](/api/pdf/officeimo-pdf-pdfflowcolumn/#constructor-ctor-officeimo-pdf-pdfcolumnwidth-nullable-officeimo-officelength) parameter `width`
- Method [PdfRowBuilder.Column](/api/pdf/officeimo-pdf-pdfrowbuilder/#method-column-officeimo-pdf-pdfcolumnwidth-action-officeimo-pdf-pdfcontentbuilder) parameter `width`

Filter members 

Show inherited

## Methods

`public static PdfColumnWidth Auto(OfficeLength minimum = default, OfficeLength? maximum = null)` [#](#method-auto-officeimo-officelength-nullable-officeimo-officelength)

[PdfColumnWidth.cs:53](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Compose/PdfColumnWidth.cs#L53)

Creates a content-sized column, optionally constrained in points.

Parameters

**minimum OfficeIMO.OfficeLength = default optional**

**maximum OfficeIMO.OfficeLength? = null optional**

Returns

`PdfColumnWidth`

`public static PdfColumnWidth Fixed(OfficeLength points)` [#](#method-fixed-officeimo-officelength)

[PdfColumnWidth.cs:47](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Compose/PdfColumnWidth.cs#L47)

Creates a column with an exact width in points.

Parameters

**points OfficeIMO.OfficeLength required**

Returns

`PdfColumnWidth`

`public static PdfColumnWidth Percent(double percent)` [#](#method-percent-double)

[PdfColumnWidth.cs:66](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Compose/PdfColumnWidth.cs#L66)

Creates a column that consumes a percentage of available row width.

Parameters

**percent double required**

Returns

`PdfColumnWidth`

`public static PdfColumnWidth Relative(double weight = 1)` [#](#method-relative-double)

[PdfColumnWidth.cs:41](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Compose/PdfColumnWidth.cs#L41)

Creates a column that receives a weighted share of remaining width.

Parameters

**weight double = 1 optional**

Returns

`PdfColumnWidth`

## Inherited Methods

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

Inherited from ValueType

Parameters

**obj object? required**

Returns

`bool`

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

Inherited from ValueType

Returns

`int`

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

Inherited from object

Returns

`Type`

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

Inherited from ValueType

Returns

`string?`

## Properties

`public PdfColumnWidthUnit Unit { get; }` [#](#property-unit)

[PdfColumnWidth.cs:28](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Compose/PdfColumnWidth.cs#L28)

Gets the sizing strategy.

`public double Value { get; }` [#](#property-value)

[PdfColumnWidth.cs:31](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Compose/PdfColumnWidth.cs#L31)

Gets the strategy value: weight, points, or percentage. Automatic widths use zero.

`public OfficeLength Minimum { get; }` [#](#property-minimum)

[PdfColumnWidth.cs:34](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Compose/PdfColumnWidth.cs#L34)

Gets the minimum automatic width in points.

`public OfficeLength? Maximum { get; }` [#](#property-maximum)

[PdfColumnWidth.cs:37](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Compose/PdfColumnWidth.cs#L37)

Gets the optional maximum automatic width in points.

<!-- PowerForge markdown artifact sha256:7D632162E5DDB7789C5048C87413EC4D9CA22759261055E2668D625DD75382EB -->
