# PowerPointShapeStackOptionsFluent

The fluent methods of PowerPointShapeStackOptions, 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 [PowerPointShapeStackOptions](/api/powerpoint/officeimo-powerpoint-powerpointshapestackoptions/), 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
- PowerPointShapeStackOptionsFluent

Filter members 

Show inherited

## Methods

`public static PowerPointShapeStackOptions Alignment(PowerPointShapeStackOptions powerPointShapeStackOptions, PowerPointShapeAlignment? value)` [#](#method-alignment-officeimo-powerpoint-powerpointshapestackoptions-nullable-officeimo-powerpoint-powerpointshapealignment)

Sets [PowerPointShapeStackOptions.Alignment](/api/powerpoint/officeimo-powerpoint-powerpointshapestackoptions/): Cross-axis alignment. Defaults to Top for horizontal stacks and Left for vertical stacks.

Parameters

**powerPointShapeStackOptions OfficeIMO.PowerPoint.PowerPointShapeStackOptions required**

The instance.

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

The value.

Returns

`PowerPointShapeStackOptions` The same instance.

Examples

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

`public static PowerPointShapeStackOptions ClampSpacingToBounds(PowerPointShapeStackOptions powerPointShapeStackOptions, bool value = true)` [#](#method-clampspacingtobounds-officeimo-powerpoint-powerpointshapestackoptions-boolean)

Sets [PowerPointShapeStackOptions.ClampSpacingToBounds](/api/powerpoint/officeimo-powerpoint-powerpointshapestackoptions/): When true, reduces spacing to keep the stack within the bounds.

Parameters

**powerPointShapeStackOptions OfficeIMO.PowerPoint.PowerPointShapeStackOptions required**

The instance.

**value bool = true optional**

The value; true when omitted.

Returns

`PowerPointShapeStackOptions` The same instance.

Examples

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

`public static PowerPointShapeStackOptions Justify(PowerPointShapeStackOptions powerPointShapeStackOptions, PowerPointShapeStackJustify value)` [#](#method-justify-officeimo-powerpoint-powerpointshapestackoptions-officeimo-powerpoint-powerpointshapestackjustify)

Sets [PowerPointShapeStackOptions.Justify](/api/powerpoint/officeimo-powerpoint-powerpointshapestackoptions/): Justification along the stack axis.

Parameters

**powerPointShapeStackOptions OfficeIMO.PowerPoint.PowerPointShapeStackOptions required**

The instance.

**value OfficeIMO.PowerPoint.PowerPointShapeStackJustify required**

The value.

Returns

`PowerPointShapeStackOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                        // C# fluent
new global::OfficeIMO.PowerPoint.PowerPointShapeStackOptions { Justify = value };    powerPointShapeStackOptions.Justify(value);
```

`public static PowerPointShapeStackOptions PreserveAspect(PowerPointShapeStackOptions powerPointShapeStackOptions, bool value = true)` [#](#method-preserveaspect-officeimo-powerpoint-powerpointshapestackoptions-boolean)

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

Parameters

**powerPointShapeStackOptions OfficeIMO.PowerPoint.PowerPointShapeStackOptions required**

The instance.

**value bool = true optional**

The value; true when omitted.

Returns

`PowerPointShapeStackOptions` The same instance.

Examples

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

`public static PowerPointShapeStackOptions ScaleToFitBounds(PowerPointShapeStackOptions powerPointShapeStackOptions, bool value = true)` [#](#method-scaletofitbounds-officeimo-powerpoint-powerpointshapestackoptions-boolean)

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

Parameters

**powerPointShapeStackOptions OfficeIMO.PowerPoint.PowerPointShapeStackOptions required**

The instance.

**value bool = true optional**

The value; true when omitted.

Returns

`PowerPointShapeStackOptions` The same instance.

Examples

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

`public static PowerPointShapeStackOptions Spacing(PowerPointShapeStackOptions powerPointShapeStackOptions, OfficeLength value)` [#](#method-spacing-officeimo-powerpoint-powerpointshapestackoptions-officeimo-officelength)

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

Parameters

**powerPointShapeStackOptions OfficeIMO.PowerPoint.PowerPointShapeStackOptions required**

The instance.

**value OfficeIMO.OfficeLength required**

The value.

Returns

`PowerPointShapeStackOptions` The same instance.

Examples

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