---
title: "PdfTextSectionExtensions"
description: "Namespace: Lacuna.RestPki.Client.FluentApi"
canonical: "https://docs.lacunasoftware.com/api/Lacuna.RestPki.Client.FluentApi/PdfTextSectionExtensions"
locale: "pt-BR"
product: "PKI SDK"
last_updated: "2026-06-02"
---

# PdfTextSectionExtensions

**Namespace:** `Lacuna.RestPki.Client.FluentApi`  
**Assembly:** `Lacuna.RestPki.Client`  
_Class_

```csharp
public static class PdfTextSectionExtensions
```

**Hierarquia:** [`object`](https://learn.microsoft.com/dotnet/api/system.object) → `PdfTextSectionExtensions`

## Métodos

### `Bold(PdfTextSection)`

```csharp
public static PdfTextSection Bold(this PdfTextSection section)
```

**Parâmetros**

| Nome | Tipo | Descrição |
|---|---|---|
| `section` | [`PdfTextSection`](https://docs.lacunasoftware.com/api/Lacuna.RestPki.Client/PdfTextSection) |  |

**Retorno**

[`PdfTextSection`](https://docs.lacunasoftware.com/api/Lacuna.RestPki.Client/PdfTextSection)

---

### `Italic(PdfTextSection)`

```csharp
public static PdfTextSection Italic(this PdfTextSection section)
```

**Parâmetros**

| Nome | Tipo | Descrição |
|---|---|---|
| `section` | [`PdfTextSection`](https://docs.lacunasoftware.com/api/Lacuna.RestPki.Client/PdfTextSection) |  |

**Retorno**

[`PdfTextSection`](https://docs.lacunasoftware.com/api/Lacuna.RestPki.Client/PdfTextSection)

---

### `WithColor(PdfTextSection, Color)`

```csharp
public static PdfTextSection WithColor(this PdfTextSection section, Color color)
```

**Parâmetros**

| Nome | Tipo | Descrição |
|---|---|---|
| `section` | [`PdfTextSection`](https://docs.lacunasoftware.com/api/Lacuna.RestPki.Client/PdfTextSection) |  |
| `color` | [`Color`](https://learn.microsoft.com/dotnet/api/system.drawing.color) |  |

**Retorno**

[`PdfTextSection`](https://docs.lacunasoftware.com/api/Lacuna.RestPki.Client/PdfTextSection)

---

### `WithFontSize(PdfTextSection, double)`

```csharp
public static PdfTextSection WithFontSize(this PdfTextSection section, double fontSize)
```

**Parâmetros**

| Nome | Tipo | Descrição |
|---|---|---|
| `section` | [`PdfTextSection`](https://docs.lacunasoftware.com/api/Lacuna.RestPki.Client/PdfTextSection) |  |
| `fontSize` | [`double`](https://learn.microsoft.com/dotnet/api/system.double) |  |

**Retorno**

[`PdfTextSection`](https://docs.lacunasoftware.com/api/Lacuna.RestPki.Client/PdfTextSection)

---

### `WithText(PdfTextSection, string)`

```csharp
public static PdfTextSection WithText(this PdfTextSection section, string text)
```

**Parâmetros**

| Nome | Tipo | Descrição |
|---|---|---|
| `section` | [`PdfTextSection`](https://docs.lacunasoftware.com/api/Lacuna.RestPki.Client/PdfTextSection) |  |
| `text` | [`string`](https://learn.microsoft.com/dotnet/api/system.string) |  |

**Retorno**

[`PdfTextSection`](https://docs.lacunasoftware.com/api/Lacuna.RestPki.Client/PdfTextSection)

---

## Membros herdados

[`GetType()`](https://learn.microsoft.com/dotnet/api/system.object.gettype), [`MemberwiseClone()`](https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone), [`ToString()`](https://learn.microsoft.com/dotnet/api/system.object.tostring), [`Equals(object)`](<https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object)>), [`Equals(object, object)`](<https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object-system-object)>), [`ReferenceEquals(object, object)`](https://learn.microsoft.com/dotnet/api/system.object.referenceequals), [`GetHashCode()`](https://learn.microsoft.com/dotnet/api/system.object.gethashcode)
