# PowerPointTextBoxFluent

The fluent methods of PowerPointTextBox, 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 [PowerPointTextBox](/api/powerpoint/officeimo-powerpoint-powerpointtextbox/), 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
- PowerPointTextBoxFluent

Filter members 

Show inherited

## Methods

`public static TSelf Bold<TSelf>(TSelf powerPointTextBox, bool bold = true)` [#](#method-bold-boolean)

Sets [PowerPointTextBox.Bold](/api/powerpoint/officeimo-powerpoint-powerpointtextbox/) for the entire text box and returns this instance.

Type Parameters

**TSelf**

Parameters

**powerPointTextBox TSelf required**

The instance.

**bold bool = true optional**

The value.

Returns

`TSelf` The same instance.

`public static TSelf Color<TSelf>(TSelf powerPointTextBox, OfficeColor? color)` [#](#method-color-nullable-officeimo-officecolor)

Sets [PowerPointTextBox.Color](/api/powerpoint/officeimo-powerpoint-powerpointtextbox/) for the entire text box and returns this instance.

Type Parameters

**TSelf**

Parameters

**powerPointTextBox TSelf required**

The instance.

**color OfficeIMO.OfficeColor? required**

The value.

Returns

`TSelf` The same instance.

`public static TSelf FontFamily<TSelf>(TSelf powerPointTextBox, string? fontFamily)` [#](#method-fontfamily-string)

Sets [PowerPointTextBox.FontFamily](/api/powerpoint/officeimo-powerpoint-powerpointtextbox/) for the entire text box and returns this instance.

Type Parameters

**TSelf**

Parameters

**powerPointTextBox TSelf required**

The instance.

**fontFamily string? required**

The value.

Returns

`TSelf` The same instance.

`public static TSelf FontSize<TSelf>(TSelf powerPointTextBox, OfficeLength? fontSize)` [#](#method-fontsize-nullable-officeimo-officelength)

Sets [PowerPointTextBox.FontSize](/api/powerpoint/officeimo-powerpoint-powerpointtextbox/) for the entire text box and returns this instance.

Type Parameters

**TSelf**

Parameters

**powerPointTextBox TSelf required**

The instance.

**fontSize OfficeIMO.OfficeLength? required**

The value.

Returns

`TSelf` The same instance.

`public static TSelf Italic<TSelf>(TSelf powerPointTextBox, bool italic = true)` [#](#method-italic-boolean)

Sets [PowerPointTextBox.Italic](/api/powerpoint/officeimo-powerpoint-powerpointtextbox/) for the entire text box and returns this instance.

Type Parameters

**TSelf**

Parameters

**powerPointTextBox TSelf required**

The instance.

**italic bool = true optional**

The value.

Returns

`TSelf` The same instance.

`public static TSelf PlaceholderIndex<TSelf>(TSelf powerPointTextBox, uint? value)` [#](#method-placeholderindex-nullable-system-uint32)

Sets [PowerPointTextBox.PlaceholderIndex](/api/powerpoint/officeimo-powerpoint-powerpointtextbox/): Gets or sets the placeholder index for this textbox.

Type Parameters

**TSelf**

Parameters

**powerPointTextBox TSelf required**

The instance.

**value uint? required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property                  // C# fluent
powerPointTextBox.PlaceholderIndex = value;    powerPointTextBox.PlaceholderIndex(value);
```

`public static TSelf PlaceholderOrientation<TSelf>(TSelf powerPointTextBox, PowerPointPlaceholderDirection? value)` [#](#method-placeholderorientation-nullable-officeimo-powerpoint-powerpointplaceholderdirection)

Sets [PowerPointTextBox.PlaceholderOrientation](/api/powerpoint/officeimo-powerpoint-powerpointtextbox/): Gets or sets the placeholder orientation.

Type Parameters

**TSelf**

Parameters

**powerPointTextBox TSelf required**

The instance.

**value OfficeIMO.PowerPoint.PowerPointPlaceholderDirection? required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property                        // C# fluent
powerPointTextBox.PlaceholderOrientation = value;    powerPointTextBox.PlaceholderOrientation(value);
```

`public static TSelf PlaceholderSize<TSelf>(TSelf powerPointTextBox, PowerPointPlaceholderSize? value)` [#](#method-placeholdersize-nullable-officeimo-powerpoint-powerpointplaceholdersize)

Sets [PowerPointTextBox.PlaceholderSize](/api/powerpoint/officeimo-powerpoint-powerpointtextbox/): Gets or sets the preferred placeholder size.

Type Parameters

**TSelf**

Parameters

**powerPointTextBox TSelf required**

The instance.

**value OfficeIMO.PowerPoint.PowerPointPlaceholderSize? required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property                 // C# fluent
powerPointTextBox.PlaceholderSize = value;    powerPointTextBox.PlaceholderSize(value);
```

`public static TSelf PlaceholderType<TSelf>(TSelf powerPointTextBox, PowerPointPlaceholderType? value)` [#](#method-placeholdertype-nullable-officeimo-powerpoint-powerpointplaceholdertype)

Sets [PowerPointTextBox.PlaceholderType](/api/powerpoint/officeimo-powerpoint-powerpointtextbox/): Gets or sets the placeholder type for this textbox.

Type Parameters

**TSelf**

Parameters

**powerPointTextBox TSelf required**

The instance.

**value OfficeIMO.PowerPoint.PowerPointPlaceholderType? required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property                 // C# fluent
powerPointTextBox.PlaceholderType = value;    powerPointTextBox.PlaceholderType(value);
```

`public static TSelf TextAutoFitOptions<TSelf>(TSelf powerPointTextBox, PowerPointTextAutoFitOptions? value)` [#](#method-textautofitoptions-nullable-officeimo-powerpoint-powerpointtextautofitoptions)

Sets [PowerPointTextBox.TextAutoFitOptions](/api/powerpoint/officeimo-powerpoint-powerpointtextbox/): Gets or sets detailed auto-fit options (only applies to Normal auto-fit).

Type Parameters

**TSelf**

Parameters

**powerPointTextBox TSelf required**

The instance.

**value OfficeIMO.PowerPoint.PowerPointTextAutoFitOptions? required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property                    // C# fluent
powerPointTextBox.TextAutoFitOptions = value;    powerPointTextBox.TextAutoFitOptions(value);
```

TextAutoFit``1 2 overloads

`public static TSelf TextAutoFit<TSelf>(TSelf powerPointTextBox, PowerPointTextAutoFit fit, PowerPointTextAutoFitOptions? options = null)` [#](#method-textautofit-officeimo-powerpoint-powerpointtextautofit-nullable-officeimo-powerpoint-powerpointtextautofitoptions)

Sets the auto-fit mode and optional Normal auto-fit options.

Type Parameters

**TSelf**

Parameters

**powerPointTextBox TSelf required**

The instance.

**fit OfficeIMO.PowerPoint.PowerPointTextAutoFit required**

The value.

**options OfficeIMO.PowerPoint.PowerPointTextAutoFitOptions? = null optional**

The value.

Returns

`TSelf` The same instance.

`public static TSelf TextAutoFit<TSelf>(TSelf powerPointTextBox, PowerPointTextAutoFit? value)` [#](#method-textautofit-nullable-officeimo-powerpoint-powerpointtextautofit)

Sets [PowerPointTextBox.TextAutoFit](/api/powerpoint/officeimo-powerpoint-powerpointtextbox/): Gets or sets the text auto-fit behavior.

Type Parameters

**TSelf**

Parameters

**powerPointTextBox TSelf required**

The instance.

**value OfficeIMO.PowerPoint.PowerPointTextAutoFit? required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property             // C# fluent
powerPointTextBox.TextAutoFit = value;    powerPointTextBox.TextAutoFit(value);
```

`public static TSelf TextDirection<TSelf>(TSelf powerPointTextBox, PowerPointTextDirection? value)` [#](#method-textdirection-nullable-officeimo-powerpoint-powerpointtextdirection)

Sets [PowerPointTextBox.TextDirection](/api/powerpoint/officeimo-powerpoint-powerpointtextbox/): Gets or sets the text direction (horizontal/vertical).

Type Parameters

**TSelf**

Parameters

**powerPointTextBox TSelf required**

The instance.

**value OfficeIMO.PowerPoint.PowerPointTextDirection? required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property               // C# fluent
powerPointTextBox.TextDirection = value;    powerPointTextBox.TextDirection(value);
```

`public static TSelf TextMarginBottom<TSelf>(TSelf powerPointTextBox, OfficeLength? value)` [#](#method-textmarginbottom-nullable-officeimo-officelength)

Sets [PowerPointTextBox.TextMarginBottom](/api/powerpoint/officeimo-powerpoint-powerpointtextbox/): Gets or sets the bottom text margin as a physical length.

Type Parameters

**TSelf**

Parameters

**powerPointTextBox TSelf required**

The instance.

**value OfficeIMO.OfficeLength? required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property                  // C# fluent
powerPointTextBox.TextMarginBottom = value;    powerPointTextBox.TextMarginBottom(value);
```

`public static TSelf TextMarginLeft<TSelf>(TSelf powerPointTextBox, OfficeLength? value)` [#](#method-textmarginleft-nullable-officeimo-officelength)

Sets [PowerPointTextBox.TextMarginLeft](/api/powerpoint/officeimo-powerpoint-powerpointtextbox/): Gets or sets the left text margin as a physical length.

Type Parameters

**TSelf**

Parameters

**powerPointTextBox TSelf required**

The instance.

**value OfficeIMO.OfficeLength? required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property                // C# fluent
powerPointTextBox.TextMarginLeft = value;    powerPointTextBox.TextMarginLeft(value);
```

`public static TSelf TextMarginRight<TSelf>(TSelf powerPointTextBox, OfficeLength? value)` [#](#method-textmarginright-nullable-officeimo-officelength)

Sets [PowerPointTextBox.TextMarginRight](/api/powerpoint/officeimo-powerpoint-powerpointtextbox/): Gets or sets the right text margin as a physical length.

Type Parameters

**TSelf**

Parameters

**powerPointTextBox TSelf required**

The instance.

**value OfficeIMO.OfficeLength? required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property                 // C# fluent
powerPointTextBox.TextMarginRight = value;    powerPointTextBox.TextMarginRight(value);
```

`public static TSelf TextMargins<TSelf>(TSelf powerPointTextBox, OfficeLength left, OfficeLength top, OfficeLength right, OfficeLength bottom)` [#](#method-textmargins-officeimo-officelength-officeimo-officelength-officeimo-officelength-officeimo-officelength)

Sets all text margins as a physical length.

Type Parameters

**TSelf**

Parameters

**powerPointTextBox TSelf required**

The instance.

**left OfficeIMO.OfficeLength required**

The value.

**top OfficeIMO.OfficeLength required**

The value.

**right OfficeIMO.OfficeLength required**

The value.

**bottom OfficeIMO.OfficeLength required**

The value.

Returns

`TSelf` The same instance.

`public static TSelf TextMarginTop<TSelf>(TSelf powerPointTextBox, OfficeLength? value)` [#](#method-textmargintop-nullable-officeimo-officelength)

Sets [PowerPointTextBox.TextMarginTop](/api/powerpoint/officeimo-powerpoint-powerpointtextbox/): Gets or sets the top text margin as a physical length.

Type Parameters

**TSelf**

Parameters

**powerPointTextBox TSelf required**

The instance.

**value OfficeIMO.OfficeLength? required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property               // C# fluent
powerPointTextBox.TextMarginTop = value;    powerPointTextBox.TextMarginTop(value);
```

`public static TSelf TextVerticalAlignment<TSelf>(TSelf powerPointTextBox, PowerPointTextVerticalAlignment? value)` [#](#method-textverticalalignment-nullable-officeimo-powerpoint-powerpointtextverticalalignment)

Sets [PowerPointTextBox.TextVerticalAlignment](/api/powerpoint/officeimo-powerpoint-powerpointtextbox/): Gets or sets the vertical anchoring of text inside the textbox.

Type Parameters

**TSelf**

Parameters

**powerPointTextBox TSelf required**

The instance.

**value OfficeIMO.PowerPoint.PowerPointTextVerticalAlignment? required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property                       // C# fluent
powerPointTextBox.TextVerticalAlignment = value;    powerPointTextBox.TextVerticalAlignment(value);
```

`public static TSelf Text<TSelf>(TSelf powerPointTextBox, string value)` [#](#method-text-string)

Sets [PowerPointTextBox.Text](/api/powerpoint/officeimo-powerpoint-powerpointtextbox/): Text contained in the textbox.

Type Parameters

**TSelf**

Parameters

**powerPointTextBox TSelf required**

The instance.

**value string required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property      // C# fluent
powerPointTextBox.Text = value;    powerPointTextBox.Text(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:0297401D9769610DAEB1E67834D9CB68D48903E947549F77577516982EBD7316 -->
