# PowerPointMasterSurfaceFluent

The fluent methods of PowerPointMasterSurface, 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 [PowerPointMasterSurface](/api/powerpoint/officeimo-powerpoint-powerpointmastersurface/), 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
- PowerPointMasterSurfaceFluent

Filter members 

Show inherited

## Methods

`public static TSelf BackgroundColor<TSelf>(TSelf powerPointMasterSurface, OfficeColor? value)` [#](#method-backgroundcolor-nullable-officeimo-officecolor)

Sets [PowerPointMasterSurface.BackgroundColor](/api/powerpoint/officeimo-powerpoint-powerpointmastersurface/): Gets or sets a solid background. Setting null removes the local background, so a layout falls back to its master's background.

Type Parameters

**TSelf**

Parameters

**powerPointMasterSurface TSelf required**

The instance.

**value OfficeIMO.OfficeColor? required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property                       // C# fluent
powerPointMasterSurface.BackgroundColor = value;    powerPointMasterSurface.BackgroundColor(value);
```

BackgroundImage``1 2 overloads

`public static TSelf BackgroundImage<TSelf>(TSelf powerPointMasterSurface, string imagePath)` [#](#method-backgroundimage-string)

Sets a stretched background picture.

Type Parameters

**TSelf**

Parameters

**powerPointMasterSurface TSelf required**

The instance.

**imagePath string required**

The value.

Returns

`TSelf` The same instance.

`public static TSelf BackgroundImage<TSelf>(TSelf powerPointMasterSurface, Stream image, OfficeImageFormat imageType)` [#](#method-backgroundimage-io-stream-officeimo-drawing-officeimageformat)

Sets a stretched background picture from a stream.

Type Parameters

**TSelf**

Parameters

**powerPointMasterSurface TSelf required**

The instance.

**image System.IO.Stream required**

The value.

**imageType OfficeIMO.Drawing.OfficeImageFormat required**

The value.

Returns

`TSelf` The same instance.

`public static TSelf Name<TSelf>(TSelf powerPointMasterSurface, string value)` [#](#method-name-string)

Sets [PowerPointMasterSurface.Name](/api/powerpoint/officeimo-powerpoint-powerpointmastersurface/): Display name shown in PowerPoint's Slide Master view.

Type Parameters

**TSelf**

Parameters

**powerPointMasterSurface TSelf required**

The instance.

**value string required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property            // C# fluent
powerPointMasterSurface.Name = value;    powerPointMasterSurface.Name(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:72BEEC252B51C56AC74068A165432ADD3F6939DE1175B7650574AB3A7AC111BF -->
