# PdfImageStyleFluent

The fluent methods of PdfImageStyle, 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 [PdfImageStyle](/api/pdf/officeimo-pdf-pdfimagestyle/), 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
- PdfImageStyleFluent

Filter members 

Show inherited

## Methods

`public static PdfImageStyle Align(PdfImageStyle pdfImageStyle, OfficeAlignment value)` [#](#method-align-officeimo-pdf-pdfimagestyle-officeimo-officealignment)

Sets [PdfImageStyle.Align](/api/pdf/officeimo-pdf-pdfimagestyle/): Image alignment within the current content frame.

Parameters

**pdfImageStyle OfficeIMO.Pdf.PdfImageStyle required**

The instance.

**value OfficeIMO.OfficeAlignment required**

The value.

Returns

`PdfImageStyle` The same instance.

Examples

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

`public static PdfImageStyle AltText(PdfImageStyle pdfImageStyle, string? value)` [#](#method-alttext-officeimo-pdf-pdfimagestyle-string)

Sets [PdfImageStyle.AltText](/api/pdf/officeimo-pdf-pdfimagestyle/): Optional alternate text for meaningful generated images.

Parameters

**pdfImageStyle OfficeIMO.Pdf.PdfImageStyle required**

The instance.

**value string? required**

The value.

Returns

`PdfImageStyle` The same instance.

Examples

```csharp
// C# initializer or property                                   // C# fluent
new global::OfficeIMO.Pdf.PdfImageStyle { AltText = value };    pdfImageStyle.AltText(value);
```

`public static PdfImageStyle ClipPath(PdfImageStyle pdfImageStyle, OfficeClipPath? value)` [#](#method-clippath-officeimo-pdf-pdfimagestyle-officeimo-drawing-officeclippath)

Sets [PdfImageStyle.ClipPath](/api/pdf/officeimo-pdf-pdfimagestyle/): Optional clipping path applied inside the image target box.

Parameters

**pdfImageStyle OfficeIMO.Pdf.PdfImageStyle required**

The instance.

**value OfficeIMO.Drawing.OfficeClipPath? required**

The value.

Returns

`PdfImageStyle` The same instance.

Examples

```csharp
// C# initializer or property                                    // C# fluent
new global::OfficeIMO.Pdf.PdfImageStyle { ClipPath = value };    pdfImageStyle.ClipPath(value);
```

`public static PdfImageStyle Fit(PdfImageStyle pdfImageStyle, OfficeImageFit value)` [#](#method-fit-officeimo-pdf-pdfimagestyle-officeimo-drawing-officeimagefit)

Sets [PdfImageStyle.Fit](/api/pdf/officeimo-pdf-pdfimagestyle/): How the image is fitted inside its target box.

Parameters

**pdfImageStyle OfficeIMO.Pdf.PdfImageStyle required**

The instance.

**value OfficeIMO.Drawing.OfficeImageFit required**

The value.

Returns

`PdfImageStyle` The same instance.

Examples

```csharp
// C# initializer or property                               // C# fluent
new global::OfficeIMO.Pdf.PdfImageStyle { Fit = value };    pdfImageStyle.Fit(value);
```

`public static PdfImageStyle HorizontalFlip(PdfImageStyle pdfImageStyle, bool value = true)` [#](#method-horizontalflip-officeimo-pdf-pdfimagestyle-boolean)

Sets [PdfImageStyle.HorizontalFlip](/api/pdf/officeimo-pdf-pdfimagestyle/): Mirrors the cropped image horizontally about its destination frame center before rotation.

Parameters

**pdfImageStyle OfficeIMO.Pdf.PdfImageStyle required**

The instance.

**value bool = true optional**

The value; true when omitted.

Returns

`PdfImageStyle` The same instance.

Examples

```csharp
// C# initializer or property                                          // C# fluent
new global::OfficeIMO.Pdf.PdfImageStyle { HorizontalFlip = value };    pdfImageStyle.HorizontalFlip(value);
```

`public static PdfImageStyle KeepWithNext(PdfImageStyle pdfImageStyle, bool value = true)` [#](#method-keepwithnext-officeimo-pdf-pdfimagestyle-boolean)

Sets [PdfImageStyle.KeepWithNext](/api/pdf/officeimo-pdf-pdfimagestyle/): Moves the image to the next page with the first visible part of the following block when they fit together.

Parameters

**pdfImageStyle OfficeIMO.Pdf.PdfImageStyle required**

The instance.

**value bool = true optional**

The value; true when omitted.

Returns

`PdfImageStyle` The same instance.

Examples

```csharp
// C# initializer or property                                        // C# fluent
new global::OfficeIMO.Pdf.PdfImageStyle { KeepWithNext = value };    pdfImageStyle.KeepWithNext(value);
```

`public static PdfImageStyle RotationAngle(PdfImageStyle pdfImageStyle, double value)` [#](#method-rotationangle-officeimo-pdf-pdfimagestyle-double)

Sets [PdfImageStyle.RotationAngle](/api/pdf/officeimo-pdf-pdfimagestyle/): Clockwise image rotation angle in degrees.

Parameters

**pdfImageStyle OfficeIMO.Pdf.PdfImageStyle required**

The instance.

**value double required**

The value.

Returns

`PdfImageStyle` The same instance.

Examples

```csharp
// C# initializer or property                                         // C# fluent
new global::OfficeIMO.Pdf.PdfImageStyle { RotationAngle = value };    pdfImageStyle.RotationAngle(value);
```

`public static PdfImageStyle ScaleDownToFit(PdfImageStyle pdfImageStyle, bool value = true)` [#](#method-scaledowntofit-officeimo-pdf-pdfimagestyle-boolean)

Sets [PdfImageStyle.ScaleDownToFit](/api/pdf/officeimo-pdf-pdfimagestyle/): When true, oversized flow images are proportionally reduced to fit the current page or column frame.

Parameters

**pdfImageStyle OfficeIMO.Pdf.PdfImageStyle required**

The instance.

**value bool = true optional**

The value; true when omitted.

Returns

`PdfImageStyle` The same instance.

Examples

```csharp
// C# initializer or property                                          // C# fluent
new global::OfficeIMO.Pdf.PdfImageStyle { ScaleDownToFit = value };    pdfImageStyle.ScaleDownToFit(value);
```

SourceCrop 2 overloads

`public static PdfImageStyle SourceCrop(PdfImageStyle pdfImageStyle, PdfImageSourceCrop? value)` [#](#method-sourcecrop-officeimo-pdf-pdfimagestyle-officeimo-pdf-pdfimagesourcecrop)

Sets [PdfImageStyle.SourceCrop](/api/pdf/officeimo-pdf-pdfimagestyle/): Optional source crop applied before fitting the image into the target box.

Parameters

**pdfImageStyle OfficeIMO.Pdf.PdfImageStyle required**

The instance.

**value OfficeIMO.Pdf.PdfImageSourceCrop? required**

The value.

Returns

`PdfImageStyle` The same instance.

Examples

```csharp
// C# initializer or property                                      // C# fluent
new global::OfficeIMO.Pdf.PdfImageStyle { SourceCrop = value };    pdfImageStyle.SourceCrop(value);
```

`public static PdfImageStyle SourceCrop(PdfImageStyle pdfImageStyle, Action<PdfImageSourceCrop> configure)` [#](#method-sourcecrop-officeimo-pdf-pdfimagestyle-action-officeimo-pdf-pdfimagesourcecrop)

Configures [PdfImageStyle.SourceCrop](/api/pdf/officeimo-pdf-pdfimagestyle/) in place (creating it when not set): Optional source crop applied before fitting the image into the target box.

Parameters

**pdfImageStyle OfficeIMO.Pdf.PdfImageStyle required**

The instance.

**configure System.Action<OfficeIMO.Pdf.PdfImageSourceCrop> required**

Configures the value.

Returns

`PdfImageStyle` The same instance.

`public static PdfImageStyle SpacingAfter(PdfImageStyle pdfImageStyle, OfficeLength value)` [#](#method-spacingafter-officeimo-pdf-pdfimagestyle-officeimo-officelength)

Sets [PdfImageStyle.SpacingAfter](/api/pdf/officeimo-pdf-pdfimagestyle/): Vertical space after the image in the surrounding document flow, in points.

Parameters

**pdfImageStyle OfficeIMO.Pdf.PdfImageStyle required**

The instance.

**value OfficeIMO.OfficeLength required**

The value.

Returns

`PdfImageStyle` The same instance.

Examples

```csharp
// C# initializer or property                                        // C# fluent
new global::OfficeIMO.Pdf.PdfImageStyle { SpacingAfter = value };    pdfImageStyle.SpacingAfter(value);
```

`public static PdfImageStyle SpacingBefore(PdfImageStyle pdfImageStyle, OfficeLength value)` [#](#method-spacingbefore-officeimo-pdf-pdfimagestyle-officeimo-officelength)

Sets [PdfImageStyle.SpacingBefore](/api/pdf/officeimo-pdf-pdfimagestyle/): Vertical space before the image in the surrounding document flow, in points.

Parameters

**pdfImageStyle OfficeIMO.Pdf.PdfImageStyle required**

The instance.

**value OfficeIMO.OfficeLength required**

The value.

Returns

`PdfImageStyle` The same instance.

Examples

```csharp
// C# initializer or property                                         // C# fluent
new global::OfficeIMO.Pdf.PdfImageStyle { SpacingBefore = value };    pdfImageStyle.SpacingBefore(value);
```

`public static PdfImageStyle VerticalFlip(PdfImageStyle pdfImageStyle, bool value = true)` [#](#method-verticalflip-officeimo-pdf-pdfimagestyle-boolean)

Sets [PdfImageStyle.VerticalFlip](/api/pdf/officeimo-pdf-pdfimagestyle/): Mirrors the cropped image vertically about its destination frame center before rotation.

Parameters

**pdfImageStyle OfficeIMO.Pdf.PdfImageStyle required**

The instance.

**value bool = true optional**

The value; true when omitted.

Returns

`PdfImageStyle` The same instance.

Examples

```csharp
// C# initializer or property                                        // C# fluent
new global::OfficeIMO.Pdf.PdfImageStyle { VerticalFlip = value };    pdfImageStyle.VerticalFlip(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:03DF1749949EA638C529FAE0F4DA4952AC64E4C8EDA7C2A8EAD6687B5DFC8C1C -->
