# PowerPointSlideSizeFluent

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

Class 

`OfficeIMO.PowerPoint`

**Namespace**

`OfficeIMO.PowerPoint`

**Assembly**

`OfficeIMO.PowerPoint`

**Modifiers**

static

The fluent methods of [PowerPointSlideSize](/api/powerpoint/officeimo-powerpoint-powerpointslidesize/), 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
- PowerPointSlideSizeFluent

Filter members 

Show inherited

## Methods

`public static PowerPointSlideSize Height(PowerPointSlideSize powerPointSlideSize, OfficeLength value)` [#](#method-height-officeimo-powerpoint-powerpointslidesize-officeimo-officelength)

Sets [PowerPointSlideSize.Height](/api/powerpoint/officeimo-powerpoint-powerpointslidesize/): Slide height.

Parameters

**powerPointSlideSize OfficeIMO.PowerPoint.PowerPointSlideSize required**

The instance.

**value OfficeIMO.OfficeLength required**

The value.

Returns

`PowerPointSlideSize` The same instance.

Examples

```csharp
// C# initializer or property          // C# fluent
powerPointSlideSize.Height = value;    powerPointSlideSize.Height(value);
```

`public static PowerPointSlideSize Preset(PowerPointSlideSize powerPointSlideSize, PowerPointSlideSizePreset preset, bool portrait = false)` [#](#method-preset-officeimo-powerpoint-powerpointslidesize-officeimo-powerpoint-powerpointslidesizepreset-boolean)

Sets a slide size preset.

Parameters

**powerPointSlideSize OfficeIMO.PowerPoint.PowerPointSlideSize required**

The instance.

**preset OfficeIMO.PowerPoint.PowerPointSlideSizePreset required**

The value.

**portrait bool = false optional**

The value.

Returns

`PowerPointSlideSize` The same instance.

Size 2 overloads

`public static PowerPointSlideSize Size(PowerPointSlideSize powerPointSlideSize, OfficeLength width, OfficeLength height)` [#](#method-size-officeimo-powerpoint-powerpointslidesize-officeimo-officelength-officeimo-officelength)

Sets a custom slide size with explicit lengths.

Parameters

**powerPointSlideSize OfficeIMO.PowerPoint.PowerPointSlideSize required**

The instance.

**width OfficeIMO.OfficeLength required**

The value.

**height OfficeIMO.OfficeLength required**

The value.

Returns

`PowerPointSlideSize` The same instance.

`public static PowerPointSlideSize Size(PowerPointSlideSize powerPointSlideSize, OfficeLength width, OfficeLength height, PowerPointSlideSizeType type)` [#](#method-size-officeimo-powerpoint-powerpointslidesize-officeimo-officelength-officeimo-officelength-officeimo-powerpoint-powerpointslidesizetype)

Sets the slide size and its preset type.

Parameters

**powerPointSlideSize OfficeIMO.PowerPoint.PowerPointSlideSize required**

The instance.

**width OfficeIMO.OfficeLength required**

The value.

**height OfficeIMO.OfficeLength required**

The value.

**type OfficeIMO.PowerPoint.PowerPointSlideSizeType required**

The value.

Returns

`PowerPointSlideSize` The same instance.

`public static PowerPointSlideSize Type(PowerPointSlideSize powerPointSlideSize, PowerPointSlideSizeType? value)` [#](#method-type-officeimo-powerpoint-powerpointslidesize-nullable-officeimo-powerpoint-powerpointslidesizetype)

Sets [PowerPointSlideSize.Type](/api/powerpoint/officeimo-powerpoint-powerpointslidesize/): Slide size preset type.

Parameters

**powerPointSlideSize OfficeIMO.PowerPoint.PowerPointSlideSize required**

The instance.

**value OfficeIMO.PowerPoint.PowerPointSlideSizeType? required**

The value.

Returns

`PowerPointSlideSize` The same instance.

Examples

```csharp
// C# initializer or property        // C# fluent
powerPointSlideSize.Type = value;    powerPointSlideSize.Type(value);
```

`public static PowerPointSlideSize Width(PowerPointSlideSize powerPointSlideSize, OfficeLength value)` [#](#method-width-officeimo-powerpoint-powerpointslidesize-officeimo-officelength)

Sets [PowerPointSlideSize.Width](/api/powerpoint/officeimo-powerpoint-powerpointslidesize/): Slide width.

Parameters

**powerPointSlideSize OfficeIMO.PowerPoint.PowerPointSlideSize required**

The instance.

**value OfficeIMO.OfficeLength required**

The value.

Returns

`PowerPointSlideSize` The same instance.

Examples

```csharp
// C# initializer or property         // C# fluent
powerPointSlideSize.Width = value;    powerPointSlideSize.Width(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:AF367A2D4C6B858F30955A37E633BE802EE028B4298DD9091C7B496CAD3394EC -->
