# PowerPointShapeSpacingOptionsFluent

The fluent methods of PowerPointShapeSpacingOptions, generated from its public properties: A property-named method sets a property and a singular-named method…

Class 

`OfficeIMO.PowerPoint`

**Namespace**

`OfficeIMO.PowerPoint`

**Assembly**

`OfficeIMO.PowerPoint`

**Modifiers**

static

The fluent methods of [PowerPointShapeSpacingOptions](/api/powerpoint/officeimo-powerpoint-powerpointshapespacingoptions/), 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
- PowerPointShapeSpacingOptionsFluent

Filter members 

Show inherited

## Methods

`public static PowerPointShapeSpacingOptions Alignment(PowerPointShapeSpacingOptions powerPointShapeSpacingOptions, PowerPointShapeAlignment? value)` [#](#method-alignment-officeimo-powerpoint-powerpointshapespacingoptions-nullable-officeimo-powerpoint-powerpointshapealignment)

Sets [PowerPointShapeSpacingOptions.Alignment](/api/powerpoint/officeimo-powerpoint-powerpointshapespacingoptions/): Main-axis alignment (Left/Center/Right for horizontal; Top/Middle/Bottom for vertical).

Parameters

**powerPointShapeSpacingOptions OfficeIMO.PowerPoint.PowerPointShapeSpacingOptions required**

The instance.

**value OfficeIMO.PowerPoint.PowerPointShapeAlignment? required**

The value.

Returns

`PowerPointShapeSpacingOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                            // C# fluent
new global::OfficeIMO.PowerPoint.PowerPointShapeSpacingOptions { Alignment = value };    powerPointShapeSpacingOptions.Alignment(value);
```

`public static PowerPointShapeSpacingOptions ClampSpacingToBounds(PowerPointShapeSpacingOptions powerPointShapeSpacingOptions, bool value = true)` [#](#method-clampspacingtobounds-officeimo-powerpoint-powerpointshapespacingoptions-boolean)

Sets [PowerPointShapeSpacingOptions.ClampSpacingToBounds](/api/powerpoint/officeimo-powerpoint-powerpointshapespacingoptions/): When true, reduces spacing to keep the block within the bounds.

Parameters

**powerPointShapeSpacingOptions OfficeIMO.PowerPoint.PowerPointShapeSpacingOptions required**

The instance.

**value bool = true optional**

The value; true when omitted.

Returns

`PowerPointShapeSpacingOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                                       // C# fluent
new global::OfficeIMO.PowerPoint.PowerPointShapeSpacingOptions { ClampSpacingToBounds = value };    powerPointShapeSpacingOptions.ClampSpacingToBounds(value);
```

`public static PowerPointShapeSpacingOptions CrossAxisAlignment(PowerPointShapeSpacingOptions powerPointShapeSpacingOptions, PowerPointShapeAlignment? value)` [#](#method-crossaxisalignment-officeimo-powerpoint-powerpointshapespacingoptions-nullable-officeimo-powerpoint-powerpointshapealignment)

Sets [PowerPointShapeSpacingOptions.CrossAxisAlignment](/api/powerpoint/officeimo-powerpoint-powerpointshapespacingoptions/): Cross-axis alignment (Top/Middle/Bottom for horizontal; Left/Center/Right for vertical).

Parameters

**powerPointShapeSpacingOptions OfficeIMO.PowerPoint.PowerPointShapeSpacingOptions required**

The instance.

**value OfficeIMO.PowerPoint.PowerPointShapeAlignment? required**

The value.

Returns

`PowerPointShapeSpacingOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                                     // C# fluent
new global::OfficeIMO.PowerPoint.PowerPointShapeSpacingOptions { CrossAxisAlignment = value };    powerPointShapeSpacingOptions.CrossAxisAlignment(value);
```

`public static PowerPointShapeSpacingOptions PreserveAspect(PowerPointShapeSpacingOptions powerPointShapeSpacingOptions, bool value = true)` [#](#method-preserveaspect-officeimo-powerpoint-powerpointshapespacingoptions-boolean)

Sets [PowerPointShapeSpacingOptions.PreserveAspect](/api/powerpoint/officeimo-powerpoint-powerpointshapespacingoptions/): When scaling, preserves aspect ratio by scaling both width and height.

Parameters

**powerPointShapeSpacingOptions OfficeIMO.PowerPoint.PowerPointShapeSpacingOptions required**

The instance.

**value bool = true optional**

The value; true when omitted.

Returns

`PowerPointShapeSpacingOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                                 // C# fluent
new global::OfficeIMO.PowerPoint.PowerPointShapeSpacingOptions { PreserveAspect = value };    powerPointShapeSpacingOptions.PreserveAspect(value);
```

`public static PowerPointShapeSpacingOptions ScaleToFitBounds(PowerPointShapeSpacingOptions powerPointShapeSpacingOptions, bool value = true)` [#](#method-scaletofitbounds-officeimo-powerpoint-powerpointshapespacingoptions-boolean)

Sets [PowerPointShapeSpacingOptions.ScaleToFitBounds](/api/powerpoint/officeimo-powerpoint-powerpointshapespacingoptions/): When true, scales shapes along the distribution axis to fit within bounds.

Parameters

**powerPointShapeSpacingOptions OfficeIMO.PowerPoint.PowerPointShapeSpacingOptions required**

The instance.

**value bool = true optional**

The value; true when omitted.

Returns

`PowerPointShapeSpacingOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                                   // C# fluent
new global::OfficeIMO.PowerPoint.PowerPointShapeSpacingOptions { ScaleToFitBounds = value };    powerPointShapeSpacingOptions.ScaleToFitBounds(value);
```

`public static PowerPointShapeSpacingOptions Spacing(PowerPointShapeSpacingOptions powerPointShapeSpacingOptions, OfficeLength value)` [#](#method-spacing-officeimo-powerpoint-powerpointshapespacingoptions-officeimo-officelength)

Sets [PowerPointShapeSpacingOptions.Spacing](/api/powerpoint/officeimo-powerpoint-powerpointshapespacingoptions/): Spacing between shapes. The default is zero; layout rejects negative spacing.

Parameters

**powerPointShapeSpacingOptions OfficeIMO.PowerPoint.PowerPointShapeSpacingOptions required**

The instance.

**value OfficeIMO.OfficeLength required**

The value.

Returns

`PowerPointShapeSpacingOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                          // C# fluent
new global::OfficeIMO.PowerPoint.PowerPointShapeSpacingOptions { Spacing = value };    powerPointShapeSpacingOptions.Spacing(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:AE478AF831BDB6F7D1BADD4C02E93466CB8700A8027648B4A05380BF1944DED4 -->
