# PdfTextStyle

Reusable text style for document or page default typography.

Class 

`OfficeIMO.Pdf`

**Namespace**

`OfficeIMO.Pdf`

**Assembly**

`OfficeIMO.Pdf`

**Source revision**

`be6c300e4ab1` with working tree changes

**Source**

[PdfTextStyle.cs:8](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfTextStyle.cs#L8)

**Modifiers**

sealed

Reusable text style for document or page default typography.

## Inheritance

- object
- PdfTextStyle

## Usage

Explore 3 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 [PdfTextStyle.Clone](/api/pdf/officeimo-pdf-pdftextstyle/#method-clone)
- Property [PdfTheme.TextStyle](/api/pdf/officeimo-pdf-pdftheme/#property-textstyle)

### Accepted by parameters 1

- Method [PdfPageBuilder.DefaultTextStyle](/api/pdf/officeimo-pdf-pdfpagebuilder/#method-defaulttextstyle-officeimo-pdf-pdftextstyle) parameter `style`

Filter members 

Show inherited

## Constructors

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

[PdfTextStyle.cs:8](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfTextStyle.cs#L8)

## Methods

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

[PdfTextStyle.cs:33](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfTextStyle.cs#L33)

Creates a deep copy of this text style.

Returns

`PdfTextStyle`

## 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 PdfStandardFont Font { get; set; }` [#](#property-font)

[PdfTextStyle.cs:12](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfTextStyle.cs#L12)

Default standard font family.

`public OfficeLength FontSize { get; set; }` [#](#property-fontsize)

[PdfTextStyle.cs:21](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfTextStyle.cs#L21)

Default font size in points.

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

[PdfTextStyle.cs:29](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfTextStyle.cs#L29)

Default text color. When null, the writer default is used.

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