# PdfInlineBox

Fixed-size filled and/or bordered box that flows between text runs.

Class 

`OfficeIMO.Pdf`

**Namespace**

`OfficeIMO.Pdf`

**Assembly**

`OfficeIMO.Pdf`

**Source revision**

`be6c300e4ab1` with working tree changes

**Source**

[PdfInlineElement.cs:186](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfInlineElement.cs#L186)

**Base**

`PdfInlineElement`

**Modifiers**

sealed

Fixed-size filled and/or bordered box that flows between text runs.

## Inheritance

- [PdfInlineElement](/api/pdf/officeimo-pdf-pdfinlineelement/)
- PdfInlineBox

Filter members 

Show inherited

## Constructors

`public PdfInlineBox(OfficeLength width, OfficeLength height, OfficeColor? background = null, OfficeColor? borderColor = null, OfficeLength? borderWidth = null, string? altText = null, OfficeLength baselineOffset = default)` [#](#constructor-ctor-officeimo-officelength-officeimo-officelength-nullable-officeimo-officecolor-nullable-officeimo-officecolor-nullable-officeimo-officelength-string-officeimo-officelength)

[PdfInlineElement.cs:186](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfInlineElement.cs#L186)

Creates a fixed-size inline box.

Parameters

**width OfficeIMO.OfficeLength required**

**height OfficeIMO.OfficeLength required**

**background OfficeIMO.OfficeColor? = null optional**

**borderColor OfficeIMO.OfficeColor? = null optional**

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

**altText string? = null optional**

**baselineOffset OfficeIMO.OfficeLength = default optional**

## 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? Background { get; }` [#](#property-background)

[PdfInlineElement.cs:169](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfInlineElement.cs#L169)

Optional fill color.

`public OfficeColor? BorderColor { get; }` [#](#property-bordercolor)

[PdfInlineElement.cs:172](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfInlineElement.cs#L172)

Optional border color.

`public OfficeLength BorderWidth { get; }` [#](#property-borderwidth)

[PdfInlineElement.cs:175](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfInlineElement.cs#L175)

Border width in points.

## Inherited Properties

`public OfficeLength Width { get; }` [#](#property-width)

[PdfInlineElement.cs:10](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfInlineElement.cs#L10)

Inherited from [PdfInlineElement](/api/pdf/officeimo-pdf-pdfinlineelement/)

`public OfficeLength Height { get; }` [#](#property-height)

[PdfInlineElement.cs:13](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfInlineElement.cs#L13)

Inherited from [PdfInlineElement](/api/pdf/officeimo-pdf-pdfinlineelement/)

`public OfficeLength BaselineOffset { get; }` [#](#property-baselineoffset)

[PdfInlineElement.cs:16](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfInlineElement.cs#L16)

Inherited from [PdfInlineElement](/api/pdf/officeimo-pdf-pdfinlineelement/)

`public string? AltText { get; }` [#](#property-alttext)

[PdfInlineElement.cs:19](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfInlineElement.cs#L19)

Inherited from [PdfInlineElement](/api/pdf/officeimo-pdf-pdfinlineelement/)

<!-- PowerForge markdown artifact sha256:1512CA03611A172B1A71A48DAAC0BB17E7D4FC6615C1317D2673771A26C183F6 -->
