# PowerPointParagraphScope

Edits one PowerPointParagraph: its fluent methods and keywords, each returning this scope.

Class 

`OfficeIMO.PowerPoint`

**Namespace**

`OfficeIMO.PowerPoint`

**Assembly**

`OfficeIMO.PowerPoint`

**Modifiers**

sealed

Edits one [PowerPointParagraph](/api/powerpoint/officeimo-powerpoint-powerpointparagraph/): its fluent methods and keywords, each returning this scope.

## Inheritance

- object
- PowerPointParagraphScope

## Usage

Explore 28 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

### Returned or exposed by 25

- Method [PowerPointParagraphScope.Alignment](/api/powerpoint/officeimo-powerpoint-powerpointparagraphscope/#method-alignment-officeimo-powerpoint-powerpointtextalignment)
- Method [PowerPointParagraphScope.BackgroundColor](/api/powerpoint/officeimo-powerpoint-powerpointparagraphscope/#method-backgroundcolor-officeimo-officecolor)
- Method [PowerPointParagraphScope.Bold](/api/powerpoint/officeimo-powerpoint-powerpointparagraphscope/#method-bold-boolean)
- Method [PowerPointParagraphScope.Bullet](/api/powerpoint/officeimo-powerpoint-powerpointparagraphscope/#method-bullet-char)
- Method [PowerPointParagraphScope.BulletFontFamily](/api/powerpoint/officeimo-powerpoint-powerpointparagraphscope/#method-bulletfontfamily-string)
- Method [PowerPointParagraphScope.BulletSize](/api/powerpoint/officeimo-powerpoint-powerpointparagraphscope/#method-bulletsize-nullable-officeimo-officelength)
- Method [PowerPointParagraphScope.BulletSizePercent](/api/powerpoint/officeimo-powerpoint-powerpointparagraphscope/#method-bulletsizepercent-nullable-system-int32)
- Method [PowerPointParagraphScope.Color](/api/powerpoint/officeimo-powerpoint-powerpointparagraphscope/#method-color-officeimo-officecolor)
- Method [PowerPointParagraphScope.FontFamily](/api/powerpoint/officeimo-powerpoint-powerpointparagraphscope/#method-fontfamily-string)
- Method [PowerPointParagraphScope.FontSize](/api/powerpoint/officeimo-powerpoint-powerpointparagraphscope/#method-fontsize-officeimo-officelength)
- Method [PowerPointParagraphScope.Hanging](/api/powerpoint/officeimo-powerpoint-powerpointparagraphscope/#method-hanging-officeimo-officelength)
- Method [PowerPointParagraphScope.Indent](/api/powerpoint/officeimo-powerpoint-powerpointparagraphscope/#method-indent-officeimo-officelength)
- Method [PowerPointParagraphScope.Italic](/api/powerpoint/officeimo-powerpoint-powerpointparagraphscope/#method-italic-boolean)
- Method [PowerPointParagraphScope.LeftMargin](/api/powerpoint/officeimo-powerpoint-powerpointparagraphscope/#method-leftmargin-officeimo-officelength)
- Method [PowerPointParagraphScope.Level](/api/powerpoint/officeimo-powerpoint-powerpointparagraphscope/#method-level-int32)
- Method [PowerPointParagraphScope.LineSpacing](/api/powerpoint/officeimo-powerpoint-powerpointparagraphscope/#method-linespacing-nullable-officeimo-officelength)
- Method [PowerPointParagraphScope.LineSpacingMultiplier](/api/powerpoint/officeimo-powerpoint-powerpointparagraphscope/#method-linespacingmultiplier-nullable-system-double)
- Method [PowerPointParagraphScope.Numbered](/api/powerpoint/officeimo-powerpoint-powerpointparagraphscope/#method-numbered-officeimo-powerpoint-powerpointnumberingscheme-int32)
- Method [PowerPointParagraphScope.RightToLeft](/api/powerpoint/officeimo-powerpoint-powerpointparagraphscope/#method-righttoleft-nullable-system-boolean)
- Method [PowerPointParagraphScope.SpaceAfter](/api/powerpoint/officeimo-powerpoint-powerpointparagraphscope/#method-spaceafter-nullable-officeimo-officelength)
- Method [PowerPointParagraphScope.SpaceBefore](/api/powerpoint/officeimo-powerpoint-powerpointparagraphscope/#method-spacebefore-officeimo-officelength)
- Method [PowerPointParagraphScope.Strikethrough](/api/powerpoint/officeimo-powerpoint-powerpointparagraphscope/#method-strikethrough-boolean)
- Method [PowerPointParagraphScope.TabStops](/api/powerpoint/officeimo-powerpoint-powerpointparagraphscope/#method-tabstops-collections-generic-ienumerable-officeimo-powerpoint-powerpointtabstop)
- Method [PowerPointParagraphScope.Text](/api/powerpoint/officeimo-powerpoint-powerpointparagraphscope/#method-text-string-action-officeimo-powerpoint-powerpointtextrunscope)
- Method [PowerPointParagraphScope.Underline](/api/powerpoint/officeimo-powerpoint-powerpointparagraphscope/#method-underline-boolean)

### Accepted by parameters 3

- Method [PowerPointTextBoxScope.Bullet](/api/powerpoint/officeimo-powerpoint-powerpointtextboxscope/#method-bullet-string-action-officeimo-powerpoint-powerpointparagraphscope) parameter `configure`
- Method [PowerPointTextBoxScope.NumberedItem](/api/powerpoint/officeimo-powerpoint-powerpointtextboxscope/#method-numbereditem-string-officeimo-powerpoint-powerpointnumberingscheme-int32-action-officeimo-powerpoint-powerpointparagraphscope) parameter `configure`
- Method [PowerPointTextBoxScope.Paragraph](/api/powerpoint/officeimo-powerpoint-powerpointtextboxscope/#method-paragraph-string-action-officeimo-powerpoint-powerpointparagraphscope) parameter `configure`

Filter members 

Show inherited

## Methods

Alignment 2 overloads

`public PowerPointParagraphScope Alignment(PowerPointTextAlignment alignment)` [#](#method-alignment-officeimo-powerpoint-powerpointtextalignment)

Sets paragraph alignment and returns the paragraph for chaining.

Parameters

**alignment OfficeIMO.PowerPoint.PowerPointTextAlignment required**

The value.

Returns

`PowerPointParagraphScope` The same scope.

`public PowerPointParagraphScope Alignment(PowerPointTextAlignment? value)` [#](#method-alignment-nullable-officeimo-powerpoint-powerpointtextalignment)

Sets [PowerPointParagraph.Alignment](/api/powerpoint/officeimo-powerpoint-powerpointparagraph/): Gets or sets paragraph alignment.

Parameters

**value OfficeIMO.PowerPoint.PowerPointTextAlignment? required**

The value.

Returns

`PowerPointParagraphScope` The same scope.

`public PowerPointParagraphScope BackgroundColor(OfficeColor color)` [#](#method-backgroundcolor-officeimo-officecolor)

Sets the background (highlight) color of every run in the paragraph and returns the paragraph for chaining. Use the run returned by [PowerPointParagraph.AddText](/api/powerpoint/officeimo-powerpoint-powerpointparagraph/) to format a single run.

Parameters

**color OfficeIMO.OfficeColor required**

The value.

Returns

`PowerPointParagraphScope` The same scope.

`public PowerPointParagraphScope Bold(bool isBold = true)` [#](#method-bold-boolean)

Sets the bold property of every run in the paragraph and returns the paragraph for chaining. Use the run returned by [PowerPointParagraph.AddText](/api/powerpoint/officeimo-powerpoint-powerpointparagraph/) to format a single run.

Parameters

**isBold bool = true optional**

The value.

Returns

`PowerPointParagraphScope` The same scope.

`public PowerPointParagraphScope Bullet(char bulletChar = '•')` [#](#method-bullet-char)

Applies a character bullet to the paragraph.

Parameters

**bulletChar char = '•' optional**

The value.

Returns

`PowerPointParagraphScope` The same scope.

`public PowerPointParagraphScope BulletFontFamily(string fontFamily)` [#](#method-bulletfontfamily-string)

Sets the bullet font and returns the paragraph for chaining.

Parameters

**fontFamily string required**

The value.

Returns

`PowerPointParagraphScope` The same scope.

BulletSize 2 overloads

`public PowerPointParagraphScope BulletSize(OfficeLength size)` [#](#method-bulletsize-officeimo-officelength)

Sets the bullet size and returns the paragraph for chaining.

Parameters

**size OfficeIMO.OfficeLength required**

The value.

Returns

`PowerPointParagraphScope` The same scope.

`public PowerPointParagraphScope BulletSize(OfficeLength? value)` [#](#method-bulletsize-nullable-officeimo-officelength)

Sets [PowerPointParagraph.BulletSize](/api/powerpoint/officeimo-powerpoint-powerpointparagraph/): Gets or sets the bullet size as a physical length.

Parameters

**value OfficeIMO.OfficeLength? required**

The value.

Returns

`PowerPointParagraphScope` The same scope.

BulletSizePercent 2 overloads

`public PowerPointParagraphScope BulletSizePercent(int percent)` [#](#method-bulletsizepercent-int32)

Sets the bullet size in percent (100 = 100%) and returns the paragraph for chaining.

Parameters

**percent int required**

The value.

Returns

`PowerPointParagraphScope` The same scope.

`public PowerPointParagraphScope BulletSizePercent(int? value)` [#](#method-bulletsizepercent-nullable-system-int32)

Sets [PowerPointParagraph.BulletSizePercent](/api/powerpoint/officeimo-powerpoint-powerpointparagraph/): Gets or sets the bullet size in percent (100 = 100%).

Parameters

**value int? required**

The value.

Returns

`PowerPointParagraphScope` The same scope.

`public PowerPointParagraphScope Color(OfficeColor color)` [#](#method-color-officeimo-officecolor)

Sets the color of every run in the paragraph and returns the paragraph for chaining. Use the run returned by [PowerPointParagraph.AddText](/api/powerpoint/officeimo-powerpoint-powerpointparagraph/) to format a single run.

Parameters

**color OfficeIMO.OfficeColor required**

The value.

Returns

`PowerPointParagraphScope` The same scope.

`public PowerPointParagraphScope FontFamily(string fontFamily)` [#](#method-fontfamily-string)

Sets the font family of every run in the paragraph and returns the paragraph for chaining. Use the run returned by [PowerPointParagraph.AddText](/api/powerpoint/officeimo-powerpoint-powerpointparagraph/) to format a single run.

Parameters

**fontFamily string required**

The value.

Returns

`PowerPointParagraphScope` The same scope.

`public PowerPointParagraphScope FontSize(OfficeLength size)` [#](#method-fontsize-officeimo-officelength)

Sets the font size of every run in the paragraph and returns the paragraph for chaining. Use the run returned by [PowerPointParagraph.AddText](/api/powerpoint/officeimo-powerpoint-powerpointparagraph/) to format a single run.

Parameters

**size OfficeIMO.OfficeLength required**

The value.

Returns

`PowerPointParagraphScope` The same scope.

`public PowerPointParagraphScope Hanging(OfficeLength value)` [#](#method-hanging-officeimo-officelength)

Sets a hanging indent and returns the paragraph for chaining.

Parameters

**value OfficeIMO.OfficeLength required**

The value.

Returns

`PowerPointParagraphScope` The same scope.

Indent 2 overloads

`public PowerPointParagraphScope Indent(OfficeLength value)` [#](#method-indent-officeimo-officelength)

Sets indentation and returns the paragraph for chaining.

Parameters

**value OfficeIMO.OfficeLength required**

The value.

Returns

`PowerPointParagraphScope` The same scope.

`public PowerPointParagraphScope Indent(OfficeLength? value)` [#](#method-indent-nullable-officeimo-officelength)

Sets [PowerPointParagraph.Indent](/api/powerpoint/officeimo-powerpoint-powerpointparagraph/): Gets or sets paragraph indentation as a physical length.

Parameters

**value OfficeIMO.OfficeLength? required**

The value.

Returns

`PowerPointParagraphScope` The same scope.

`public PowerPointParagraphScope Italic(bool isItalic = true)` [#](#method-italic-boolean)

Sets the italic property of every run in the paragraph and returns the paragraph for chaining. Use the run returned by [PowerPointParagraph.AddText](/api/powerpoint/officeimo-powerpoint-powerpointparagraph/) to format a single run.

Parameters

**isItalic bool = true optional**

The value.

Returns

`PowerPointParagraphScope` The same scope.

LeftMargin 2 overloads

`public PowerPointParagraphScope LeftMargin(OfficeLength value)` [#](#method-leftmargin-officeimo-officelength)

Sets left margin and returns the paragraph for chaining.

Parameters

**value OfficeIMO.OfficeLength required**

The value.

Returns

`PowerPointParagraphScope` The same scope.

`public PowerPointParagraphScope LeftMargin(OfficeLength? value)` [#](#method-leftmargin-nullable-officeimo-officelength)

Sets [PowerPointParagraph.LeftMargin](/api/powerpoint/officeimo-powerpoint-powerpointparagraph/): Gets or sets paragraph left margin as a physical length.

Parameters

**value OfficeIMO.OfficeLength? required**

The value.

Returns

`PowerPointParagraphScope` The same scope.

Level 2 overloads

`public PowerPointParagraphScope Level(int level)` [#](#method-level-int32)

Sets the bullet/list level and returns the paragraph for chaining.

Parameters

**level int required**

The value.

Returns

`PowerPointParagraphScope` The same scope.

`public PowerPointParagraphScope Level(int? value)` [#](#method-level-nullable-system-int32)

Sets [PowerPointParagraph.Level](/api/powerpoint/officeimo-powerpoint-powerpointparagraph/): Gets or sets the bullet/list level (0-8).

Parameters

**value int? required**

The value.

Returns

`PowerPointParagraphScope` The same scope.

LineSpacing 2 overloads

`public PowerPointParagraphScope LineSpacing(OfficeLength value)` [#](#method-linespacing-officeimo-officelength)

Sets line spacing and returns the paragraph for chaining.

Parameters

**value OfficeIMO.OfficeLength required**

The value.

Returns

`PowerPointParagraphScope` The same scope.

`public PowerPointParagraphScope LineSpacing(OfficeLength? value)` [#](#method-linespacing-nullable-officeimo-officelength)

Sets [PowerPointParagraph.LineSpacing](/api/powerpoint/officeimo-powerpoint-powerpointparagraph/): Gets or sets line spacing as a physical length.

Parameters

**value OfficeIMO.OfficeLength? required**

The value.

Returns

`PowerPointParagraphScope` The same scope.

LineSpacingMultiplier 2 overloads

`public PowerPointParagraphScope LineSpacingMultiplier(double multiplier)` [#](#method-linespacingmultiplier-double)

Sets line spacing as a multiplier (1.0 = 100%) and returns the paragraph for chaining.

Parameters

**multiplier double required**

The value.

Returns

`PowerPointParagraphScope` The same scope.

`public PowerPointParagraphScope LineSpacingMultiplier(double? value)` [#](#method-linespacingmultiplier-nullable-system-double)

Sets [PowerPointParagraph.LineSpacingMultiplier](/api/powerpoint/officeimo-powerpoint-powerpointparagraph/): Gets or sets line spacing as a multiplier (1.0 = 100%).

Parameters

**value double? required**

The value.

Returns

`PowerPointParagraphScope` The same scope.

Numbered 3 overloads

`public PowerPointParagraphScope Numbered(PowerPointNumberingScheme style, int startAt = 1)` [#](#method-numbered-officeimo-powerpoint-powerpointnumberingscheme-int32)

Applies an auto-numbered bullet to the paragraph.

Parameters

**style OfficeIMO.PowerPoint.PowerPointNumberingScheme required**

The value.

**startAt int = 1 optional**

The value.

Returns

`PowerPointParagraphScope` The same scope.

`public PowerPointParagraphScope Numbered(PowerPointNumberingScheme style)` [#](#method-numbered-officeimo-powerpoint-powerpointnumberingscheme)

Applies an auto-numbered bullet to the paragraph without resetting the start value.

Parameters

**style OfficeIMO.PowerPoint.PowerPointNumberingScheme required**

The value.

Returns

`PowerPointParagraphScope` The same scope.

`public PowerPointParagraphScope Numbered(int startAt = 1)` [#](#method-numbered-int32)

Applies a default auto-numbered bullet (Arabic period) to the paragraph.

Parameters

**startAt int = 1 optional**

The value.

Returns

`PowerPointParagraphScope` The same scope.

`public PowerPointParagraphScope RightToLeft(bool? value = true)` [#](#method-righttoleft-nullable-system-boolean)

Sets [PowerPointParagraph.RightToLeft](/api/powerpoint/officeimo-powerpoint-powerpointparagraph/): Gets or sets the explicit right-to-left paragraph direction.

Parameters

**value bool? = true optional**

The value; true when omitted.

Returns

`PowerPointParagraphScope` The same scope.

SpaceAfter 2 overloads

`public PowerPointParagraphScope SpaceAfter(OfficeLength value)` [#](#method-spaceafter-officeimo-officelength)

Sets space after the paragraph and returns the paragraph for chaining.

Parameters

**value OfficeIMO.OfficeLength required**

The value.

Returns

`PowerPointParagraphScope` The same scope.

`public PowerPointParagraphScope SpaceAfter(OfficeLength? value)` [#](#method-spaceafter-nullable-officeimo-officelength)

Sets [PowerPointParagraph.SpaceAfter](/api/powerpoint/officeimo-powerpoint-powerpointparagraph/): Gets or sets space after the paragraph as a physical length.

Parameters

**value OfficeIMO.OfficeLength? required**

The value.

Returns

`PowerPointParagraphScope` The same scope.

SpaceBefore 2 overloads

`public PowerPointParagraphScope SpaceBefore(OfficeLength value)` [#](#method-spacebefore-officeimo-officelength)

Sets space before the paragraph and returns the paragraph for chaining.

Parameters

**value OfficeIMO.OfficeLength required**

The value.

Returns

`PowerPointParagraphScope` The same scope.

`public PowerPointParagraphScope SpaceBefore(OfficeLength? value)` [#](#method-spacebefore-nullable-officeimo-officelength)

Sets [PowerPointParagraph.SpaceBefore](/api/powerpoint/officeimo-powerpoint-powerpointparagraph/): Gets or sets space before the paragraph as a physical length.

Parameters

**value OfficeIMO.OfficeLength? required**

The value.

Returns

`PowerPointParagraphScope` The same scope.

`public PowerPointParagraphScope Strikethrough(bool strikethrough = true)` [#](#method-strikethrough-boolean)

Sets the strikethrough property of every run in the paragraph and returns the paragraph for chaining. Use the run returned by [PowerPointParagraph.AddText](/api/powerpoint/officeimo-powerpoint-powerpointparagraph/) to format a single run.

Parameters

**strikethrough bool = true optional**

The value.

Returns

`PowerPointParagraphScope` The same scope.

`public PowerPointParagraphScope TabStops(IEnumerable<PowerPointTabStop> tabStops)` [#](#method-tabstops-collections-generic-ienumerable-officeimo-powerpoint-powerpointtabstop)

Replaces up to 32 explicit tab stops. An empty sequence removes locally configured stops.

Parameters

**tabStops System.Collections.Generic.IEnumerable<OfficeIMO.PowerPoint.PowerPointTabStop> required**

The value.

Returns

`PowerPointParagraphScope` The same scope.

`public PowerPointParagraphScope Text(string text, Action<PowerPointTextRunScope>? configure = null)` [#](#method-text-string-action-officeimo-powerpoint-powerpointtextrunscope)

Appends text as a new run and returns that run. Formatting the returned run formats only that text; line breaks in text stay part of the same run.

Parameters

**text string required**

The value.

**configure System.Action<OfficeIMO.PowerPoint.PowerPointTextRunScope>? = null optional**

Configures the new item through its scope.

Returns

`PowerPointParagraphScope` The same scope.

`public PowerPointParagraphScope Underline(bool underline = true)` [#](#method-underline-boolean)

Sets the underline property of every run in the paragraph and returns the paragraph for chaining. Use the run returned by [PowerPointParagraph.AddText](/api/powerpoint/officeimo-powerpoint-powerpointparagraph/) to format a single run.

Parameters

**underline bool = true optional**

The value.

Returns

`PowerPointParagraphScope` The same scope.

## 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?`

## Properties

`public PowerPointParagraph Model { get; }` [#](#property-model)

The [PowerPointParagraph](/api/powerpoint/officeimo-powerpoint-powerpointparagraph/) this scope edits, for plain C# inside a lambda.

<!-- PowerForge markdown artifact sha256:A0D0C915E704404CCBF7A04FAAC9D63E7893A93916E3291932C77C765A381C66 -->
