# PdfTextStampOptionsFluent

The fluent methods of PdfTextStampOptions, 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 [PdfTextStampOptions](/api/pdf/officeimo-pdf-pdftextstampoptions/), 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
- PdfTextStampOptionsFluent

Filter members 

Show inherited

## Methods

`public static PdfTextStampOptions Align(PdfTextStampOptions pdfTextStampOptions, OfficeAlignment value)` [#](#method-align-officeimo-pdf-pdftextstampoptions-officeimo-officealignment)

Sets [PdfTextStampOptions.Align](/api/pdf/officeimo-pdf-pdftextstampoptions/): Horizontal alignment of the text against [PdfTextStampOptions.X](/api/pdf/officeimo-pdf-pdftextstampoptions/): OfficeAlignment.Left (the default) starts the text at X, OfficeAlignment.Center centres it on X and OfficeAlignment.Right ends it at X. When X is null, centred text uses the page centre and right-aligned text ends 36 points from the right page edge.

Parameters

**pdfTextStampOptions OfficeIMO.Pdf.PdfTextStampOptions required**

The instance.

**value OfficeIMO.OfficeAlignment required**

The value.

Returns

`PdfTextStampOptions` The same instance.

Examples

```csharp
// C# initializer or property                                       // C# fluent
new global::OfficeIMO.Pdf.PdfTextStampOptions { Align = value };    pdfTextStampOptions.Align(value);
```

`public static PdfTextStampOptions BehindContent(PdfTextStampOptions pdfTextStampOptions, bool value = true)` [#](#method-behindcontent-officeimo-pdf-pdftextstampoptions-boolean)

Sets [PdfTextStampOptions.BehindContent](/api/pdf/officeimo-pdf-pdftextstampoptions/): Places the new content stream before existing page content when true.

Parameters

**pdfTextStampOptions OfficeIMO.Pdf.PdfTextStampOptions required**

The instance.

**value bool = true optional**

The value; true when omitted.

Returns

`PdfTextStampOptions` The same instance.

Examples

```csharp
// C# initializer or property                                               // C# fluent
new global::OfficeIMO.Pdf.PdfTextStampOptions { BehindContent = value };    pdfTextStampOptions.BehindContent(value);
```

`public static PdfTextStampOptions Color(PdfTextStampOptions pdfTextStampOptions, OfficeColor value)` [#](#method-color-officeimo-pdf-pdftextstampoptions-officeimo-officecolor)

Sets [PdfTextStampOptions.Color](/api/pdf/officeimo-pdf-pdftextstampoptions/): Text color, including alpha. Theme roles resolve against the default theme.

Parameters

**pdfTextStampOptions OfficeIMO.Pdf.PdfTextStampOptions required**

The instance.

**value OfficeIMO.OfficeColor required**

The value.

Returns

`PdfTextStampOptions` The same instance.

Examples

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

`public static PdfTextStampOptions EmbedFont(PdfTextStampOptions pdfTextStampOptions, bool value = true)` [#](#method-embedfont-officeimo-pdf-pdftextstampoptions-boolean)

Sets [PdfTextStampOptions.EmbedFont](/api/pdf/officeimo-pdf-pdftextstampoptions/): When true (the default), the stamp text uses the installed font that backs [PdfTextStampOptions.Font](/api/pdf/officeimo-pdf-pdftextstampoptions/) in the default theme, the same font documents created by OfficeIMO.Pdf use, embedded as a subset. When no such font is installed, or it lacks a character of the text, the non-embedded standard font is written instead. Set to false to always write the non-embedded standard font.

Parameters

**pdfTextStampOptions OfficeIMO.Pdf.PdfTextStampOptions required**

The instance.

**value bool = true optional**

The value; true when omitted.

Returns

`PdfTextStampOptions` The same instance.

Examples

```csharp
// C# initializer or property                                           // C# fluent
new global::OfficeIMO.Pdf.PdfTextStampOptions { EmbedFont = value };    pdfTextStampOptions.EmbedFont(value);
```

`public static PdfTextStampOptions Font(PdfTextStampOptions pdfTextStampOptions, PdfStandardFont value)` [#](#method-font-officeimo-pdf-pdftextstampoptions-officeimo-pdf-pdfstandardfont)

Sets [PdfTextStampOptions.Font](/api/pdf/officeimo-pdf-pdftextstampoptions/): Standard PDF font used for the stamp.

Parameters

**pdfTextStampOptions OfficeIMO.Pdf.PdfTextStampOptions required**

The instance.

**value OfficeIMO.Pdf.PdfStandardFont required**

The value.

Returns

`PdfTextStampOptions` The same instance.

Examples

```csharp
// C# initializer or property                                      // C# fluent
new global::OfficeIMO.Pdf.PdfTextStampOptions { Font = value };    pdfTextStampOptions.Font(value);
```

`public static PdfTextStampOptions FontSize(PdfTextStampOptions pdfTextStampOptions, OfficeLength value)` [#](#method-fontsize-officeimo-pdf-pdftextstampoptions-officeimo-officelength)

Sets [PdfTextStampOptions.FontSize](/api/pdf/officeimo-pdf-pdftextstampoptions/): Physical text size. Defaults to 24 points.

Parameters

**pdfTextStampOptions OfficeIMO.Pdf.PdfTextStampOptions required**

The instance.

**value OfficeIMO.OfficeLength required**

The value.

Returns

`PdfTextStampOptions` The same instance.

Examples

```csharp
// C# initializer or property                                          // C# fluent
new global::OfficeIMO.Pdf.PdfTextStampOptions { FontSize = value };    pdfTextStampOptions.FontSize(value);
```

`public static PdfTextStampOptions Opacity(PdfTextStampOptions pdfTextStampOptions, double value)` [#](#method-opacity-officeimo-pdf-pdftextstampoptions-double)

Sets [PdfTextStampOptions.Opacity](/api/pdf/officeimo-pdf-pdftextstampoptions/): Text opacity from 0 through 1, multiplied by the text color alpha. Defaults to 1.

Parameters

**pdfTextStampOptions OfficeIMO.Pdf.PdfTextStampOptions required**

The instance.

**value double required**

The value.

Returns

`PdfTextStampOptions` The same instance.

Examples

```csharp
// C# initializer or property                                         // C# fluent
new global::OfficeIMO.Pdf.PdfTextStampOptions { Opacity = value };    pdfTextStampOptions.Opacity(value);
```

`public static PdfTextStampOptions PageNumbers(PdfTextStampOptions pdfTextStampOptions, int[]? value)` [#](#method-pagenumbers-officeimo-pdf-pdftextstampoptions-int32)

Sets [PdfTextStampOptions.PageNumbers](/api/pdf/officeimo-pdf-pdftextstampoptions/): One-based page numbers to stamp. When null or empty, every page is stamped.

Parameters

**pdfTextStampOptions OfficeIMO.Pdf.PdfTextStampOptions required**

The instance.

**value int[]? required**

The value.

Returns

`PdfTextStampOptions` The same instance.

Examples

```csharp
// C# initializer or property                                             // C# fluent
new global::OfficeIMO.Pdf.PdfTextStampOptions { PageNumbers = value };    pdfTextStampOptions.PageNumbers(value);
```

PageRange 2 overloads

`public static PdfTextStampOptions PageRange(PdfTextStampOptions pdfTextStampOptions, int firstPage, int lastPage)` [#](#method-pagerange-officeimo-pdf-pdftextstampoptions-int32-int32)

Selects an inclusive one-based page range to stamp.

Parameters

**pdfTextStampOptions OfficeIMO.Pdf.PdfTextStampOptions required**

The instance.

**firstPage int required**

The value.

**lastPage int required**

The value.

Returns

`PdfTextStampOptions` The same instance.

`public static PdfTextStampOptions PageRange(PdfTextStampOptions pdfTextStampOptions, PdfPageRange pageRange)` [#](#method-pagerange-officeimo-pdf-pdftextstampoptions-officeimo-pdf-pdfpagerange)

Selects an inclusive one-based page range to stamp.

Parameters

**pdfTextStampOptions OfficeIMO.Pdf.PdfTextStampOptions required**

The instance.

**pageRange OfficeIMO.Pdf.PdfPageRange required**

The value.

Returns

`PdfTextStampOptions` The same instance.

`public static PdfTextStampOptions PageRanges(PdfTextStampOptions pdfTextStampOptions, params PdfPageRange[] pageRanges)` [#](#method-pageranges-officeimo-pdf-pdftextstampoptions-officeimo-pdf-pdfpagerange)

Selects inclusive one-based page ranges to stamp. Overlapping ranges are treated as one page selection set in first-seen order.

Parameters

**pdfTextStampOptions OfficeIMO.Pdf.PdfTextStampOptions required**

The instance.

**pageRanges OfficeIMO.Pdf.PdfPageRange[] required**

The value.

Returns

`PdfTextStampOptions` The same instance.

`public static PdfTextStampOptions RotationDegrees(PdfTextStampOptions pdfTextStampOptions, double value)` [#](#method-rotationdegrees-officeimo-pdf-pdftextstampoptions-double)

Sets [PdfTextStampOptions.RotationDegrees](/api/pdf/officeimo-pdf-pdftextstampoptions/): Counter-clockwise text rotation in degrees around the text origin, relative to the displayed page. On a page with /Rotate, unrotated text reads upright as the page is viewed.

Parameters

**pdfTextStampOptions OfficeIMO.Pdf.PdfTextStampOptions required**

The instance.

**value double required**

The value.

Returns

`PdfTextStampOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                 // C# fluent
new global::OfficeIMO.Pdf.PdfTextStampOptions { RotationDegrees = value };    pdfTextStampOptions.RotationDegrees(value);
```

`public static PdfTextStampOptions X(PdfTextStampOptions pdfTextStampOptions, OfficeLength? value)` [#](#method-x-officeimo-pdf-pdftextstampoptions-nullable-officeimo-officelength)

Sets [PdfTextStampOptions.X](/api/pdf/officeimo-pdf-pdftextstampoptions/): Physical X coordinate of the text baseline origin from the unrotated PDF origin. When null, stamps sit 36 points from the lower-left corner of the displayed page and watermarks center in it.

Parameters

**pdfTextStampOptions OfficeIMO.Pdf.PdfTextStampOptions required**

The instance.

**value OfficeIMO.OfficeLength? required**

The value.

Returns

`PdfTextStampOptions` The same instance.

Examples

```csharp
// C# initializer or property                                   // C# fluent
new global::OfficeIMO.Pdf.PdfTextStampOptions { X = value };    pdfTextStampOptions.X(value);
```

`public static PdfTextStampOptions Y(PdfTextStampOptions pdfTextStampOptions, OfficeLength? value)` [#](#method-y-officeimo-pdf-pdftextstampoptions-nullable-officeimo-officelength)

Sets [PdfTextStampOptions.Y](/api/pdf/officeimo-pdf-pdftextstampoptions/): Physical Y coordinate of the text baseline origin from the unrotated PDF origin. When null, stamps sit 36 points from the lower-left corner of the displayed page and watermarks center in it.

Parameters

**pdfTextStampOptions OfficeIMO.Pdf.PdfTextStampOptions required**

The instance.

**value OfficeIMO.OfficeLength? required**

The value.

Returns

`PdfTextStampOptions` The same instance.

Examples

```csharp
// C# initializer or property                                   // C# fluent
new global::OfficeIMO.Pdf.PdfTextStampOptions { Y = value };    pdfTextStampOptions.Y(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:9DCF773F7F6A1C7225040E4E029ECCAF490FE0BDE402D1CC2C54D5619B4F066B -->
