# RtfParagraphFluent

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

Class 

`OfficeIMO.Rtf`

**Namespace**

`OfficeIMO.Rtf`

**Assembly**

`OfficeIMO.Rtf`

**Modifiers**

static

The fluent methods of [RtfParagraph](/api/rtf/officeimo-rtf-rtfparagraph/), 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
- RtfParagraphFluent

Filter members 

Show inherited

## Methods

`public static RtfParagraph AdjustRightIndent(RtfParagraph rtfParagraph, bool? enabled = true)` [#](#method-adjustrightindent-officeimo-rtf-rtfparagraph-nullable-system-boolean)

Sets automatic right-indent adjustment for document-grid layouts.

Parameters

**rtfParagraph OfficeIMO.Rtf.RtfParagraph required**

The instance.

**enabled bool? = true optional**

The value.

Returns

`RtfParagraph` The same instance.

`public static RtfParagraph Alignment(RtfParagraph rtfParagraph, RtfTextAlignment alignment)` [#](#method-alignment-officeimo-rtf-rtfparagraph-officeimo-rtf-rtftextalignment)

Sets paragraph alignment.

Parameters

**rtfParagraph OfficeIMO.Rtf.RtfParagraph required**

The instance.

**alignment OfficeIMO.Rtf.RtfTextAlignment required**

The value.

Returns

`RtfParagraph` The same instance.

`public static RtfParagraph AutoHyphenation(RtfParagraph rtfParagraph, bool? value = true)` [#](#method-autohyphenation-officeimo-rtf-rtfparagraph-nullable-system-boolean)

Sets [RtfParagraph.AutoHyphenation](/api/rtf/officeimo-rtf-rtfparagraph/): Paragraph-level automatic hyphenation override represented by \hyphpar.

Parameters

**rtfParagraph OfficeIMO.Rtf.RtfParagraph required**

The instance.

**value bool? = true optional**

The value; true when omitted.

Returns

`RtfParagraph` The same instance.

Examples

```csharp
// C# initializer or property                                          // C# fluent
new global::OfficeIMO.Rtf.RtfParagraph { AutoHyphenation = value };    rtfParagraph.AutoHyphenation(value);
```

`public static RtfParagraph BackgroundColor(RtfParagraph rtfParagraph, int? colorIndex)` [#](#method-backgroundcolor-officeimo-rtf-rtfparagraph-nullable-system-int32)

Sets paragraph background shading to a one-based color table index.

Parameters

**rtfParagraph OfficeIMO.Rtf.RtfParagraph required**

The instance.

**colorIndex int? required**

The value.

Returns

`RtfParagraph` The same instance.

`public static RtfParagraph BackgroundColorIndex(RtfParagraph rtfParagraph, int? value)` [#](#method-backgroundcolorindex-officeimo-rtf-rtfparagraph-nullable-system-int32)

Sets [RtfParagraph.BackgroundColorIndex](/api/rtf/officeimo-rtf-rtfparagraph/): One-based color table index used by paragraph background shading.

Parameters

**rtfParagraph OfficeIMO.Rtf.RtfParagraph required**

The instance.

**value int? required**

The value.

Returns

`RtfParagraph` The same instance.

Examples

```csharp
// C# initializer or property                                               // C# fluent
new global::OfficeIMO.Rtf.RtfParagraph { BackgroundColorIndex = value };    rtfParagraph.BackgroundColorIndex(value);
```

`public static RtfParagraph Border(RtfParagraph rtfParagraph, RtfParagraphBorderSide side, RtfParagraphBorderStyle style, int? width = null, int? colorIndex = null)` [#](#method-border-officeimo-rtf-rtfparagraph-officeimo-rtf-rtfparagraphborderside-officeimo-rtf-rtfparagraphborderstyle-nullable-system-int32-nullable-system-int32)

Sets paragraph border formatting for one side.

Parameters

**rtfParagraph OfficeIMO.Rtf.RtfParagraph required**

The instance.

**side OfficeIMO.Rtf.RtfParagraphBorderSide required**

The value.

**style OfficeIMO.Rtf.RtfParagraphBorderStyle required**

The value.

**width int? = null optional**

The value.

**colorIndex int? = null optional**

The value.

Returns

`RtfParagraph` The same instance.

`public static RtfParagraph BottomBorder(RtfParagraph rtfParagraph, Action<RtfParagraphBorder> configure)` [#](#method-bottomborder-officeimo-rtf-rtfparagraph-action-officeimo-rtf-rtfparagraphborder)

Configures [RtfParagraph.BottomBorder](/api/rtf/officeimo-rtf-rtfparagraph/) in place: Bottom paragraph border.

Parameters

**rtfParagraph OfficeIMO.Rtf.RtfParagraph required**

The instance.

**configure System.Action<OfficeIMO.Rtf.RtfParagraphBorder> required**

Configures the value.

Returns

`RtfParagraph` The same instance.

`public static RtfParagraph ContextualSpacing(RtfParagraph rtfParagraph, bool? enabled = true)` [#](#method-contextualspacing-officeimo-rtf-rtfparagraph-nullable-system-boolean)

Sets contextual paragraph spacing.

Parameters

**rtfParagraph OfficeIMO.Rtf.RtfParagraph required**

The instance.

**enabled bool? = true optional**

The value.

Returns

`RtfParagraph` The same instance.

`public static RtfParagraph DirectAlignment(RtfParagraph rtfParagraph, RtfTextAlignment? value)` [#](#method-directalignment-officeimo-rtf-rtfparagraph-nullable-officeimo-rtf-rtftextalignment)

Sets [RtfParagraph.DirectAlignment](/api/rtf/officeimo-rtf-rtfparagraph/): Authored Alignment override. Null inherits from the selected style; an explicit default clears that style value.

Parameters

**rtfParagraph OfficeIMO.Rtf.RtfParagraph required**

The instance.

**value OfficeIMO.Rtf.RtfTextAlignment? required**

The value.

Returns

`RtfParagraph` The same instance.

Examples

```csharp
// C# initializer or property                                          // C# fluent
new global::OfficeIMO.Rtf.RtfParagraph { DirectAlignment = value };    rtfParagraph.DirectAlignment(value);
```

`public static RtfParagraph Direction(RtfParagraph rtfParagraph, RtfTextDirection? direction)` [#](#method-direction-officeimo-rtf-rtfparagraph-nullable-officeimo-rtf-rtftextdirection)

Sets explicit paragraph text direction.

Parameters

**rtfParagraph OfficeIMO.Rtf.RtfParagraph required**

The instance.

**direction OfficeIMO.Rtf.RtfTextDirection? required**

The value.

Returns

`RtfParagraph` The same instance.

`public static RtfParagraph DirectKeepLinesTogether(RtfParagraph rtfParagraph, bool? value = true)` [#](#method-directkeeplinestogether-officeimo-rtf-rtfparagraph-nullable-system-boolean)

Sets [RtfParagraph.DirectKeepLinesTogether](/api/rtf/officeimo-rtf-rtfparagraph/): Authored KeepLinesTogether override. Null inherits from the selected style; an explicit default clears that style value.

Parameters

**rtfParagraph OfficeIMO.Rtf.RtfParagraph required**

The instance.

**value bool? = true optional**

The value; true when omitted.

Returns

`RtfParagraph` The same instance.

Examples

```csharp
// C# initializer or property                                                  // C# fluent
new global::OfficeIMO.Rtf.RtfParagraph { DirectKeepLinesTogether = value };    rtfParagraph.DirectKeepLinesTogether(value);
```

`public static RtfParagraph DirectKeepWithNext(RtfParagraph rtfParagraph, bool? value = true)` [#](#method-directkeepwithnext-officeimo-rtf-rtfparagraph-nullable-system-boolean)

Sets [RtfParagraph.DirectKeepWithNext](/api/rtf/officeimo-rtf-rtfparagraph/): Authored KeepWithNext override. Null inherits from the selected style; an explicit default clears that style value.

Parameters

**rtfParagraph OfficeIMO.Rtf.RtfParagraph required**

The instance.

**value bool? = true optional**

The value; true when omitted.

Returns

`RtfParagraph` The same instance.

Examples

```csharp
// C# initializer or property                                             // C# fluent
new global::OfficeIMO.Rtf.RtfParagraph { DirectKeepWithNext = value };    rtfParagraph.DirectKeepWithNext(value);
```

`public static RtfParagraph DirectPageBreakBefore(RtfParagraph rtfParagraph, bool? value = true)` [#](#method-directpagebreakbefore-officeimo-rtf-rtfparagraph-nullable-system-boolean)

Sets [RtfParagraph.DirectPageBreakBefore](/api/rtf/officeimo-rtf-rtfparagraph/): Authored PageBreakBefore override. Null inherits from the selected style; an explicit default clears that style value.

Parameters

**rtfParagraph OfficeIMO.Rtf.RtfParagraph required**

The instance.

**value bool? = true optional**

The value; true when omitted.

Returns

`RtfParagraph` The same instance.

Examples

```csharp
// C# initializer or property                                                // C# fluent
new global::OfficeIMO.Rtf.RtfParagraph { DirectPageBreakBefore = value };    rtfParagraph.DirectPageBreakBefore(value);
```

`public static RtfParagraph DirectSuppressLineNumbers(RtfParagraph rtfParagraph, bool? value = true)` [#](#method-directsuppresslinenumbers-officeimo-rtf-rtfparagraph-nullable-system-boolean)

Sets [RtfParagraph.DirectSuppressLineNumbers](/api/rtf/officeimo-rtf-rtfparagraph/): Authored SuppressLineNumbers override. Null inherits from the selected style; an explicit default clears that style value.

Parameters

**rtfParagraph OfficeIMO.Rtf.RtfParagraph required**

The instance.

**value bool? = true optional**

The value; true when omitted.

Returns

`RtfParagraph` The same instance.

Examples

```csharp
// C# initializer or property                                                    // C# fluent
new global::OfficeIMO.Rtf.RtfParagraph { DirectSuppressLineNumbers = value };    rtfParagraph.DirectSuppressLineNumbers(value);
```

`public static RtfParagraph FirstLineIndentTwips(RtfParagraph rtfParagraph, int? value)` [#](#method-firstlineindenttwips-officeimo-rtf-rtfparagraph-nullable-system-int32)

Sets [RtfParagraph.FirstLineIndentTwips](/api/rtf/officeimo-rtf-rtfparagraph/): First-line indentation in twips.

Parameters

**rtfParagraph OfficeIMO.Rtf.RtfParagraph required**

The instance.

**value int? required**

The value.

Returns

`RtfParagraph` The same instance.

Examples

```csharp
// C# initializer or property                                               // C# fluent
new global::OfficeIMO.Rtf.RtfParagraph { FirstLineIndentTwips = value };    rtfParagraph.FirstLineIndentTwips(value);
```

`public static RtfParagraph Frame(RtfParagraph rtfParagraph, Action<RtfParagraphFrame> configure)` [#](#method-frame-officeimo-rtf-rtfparagraph-action-officeimo-rtf-rtfparagraphframe)

Configures absolute positioning frame metadata for this paragraph.

Parameters

**rtfParagraph OfficeIMO.Rtf.RtfParagraph required**

The instance.

**configure System.Action<OfficeIMO.Rtf.RtfParagraphFrame> required**

The value.

Returns

`RtfParagraph` The same instance.

`public static RtfParagraph Indentation(RtfParagraph rtfParagraph, int? leftTwips = null, int? rightTwips = null, int? firstLineTwips = null)` [#](#method-indentation-officeimo-rtf-rtfparagraph-nullable-system-int32-nullable-system-int32-nullable-system-int32)

Sets paragraph indentation in twips.

Parameters

**rtfParagraph OfficeIMO.Rtf.RtfParagraph required**

The instance.

**leftTwips int? = null optional**

The value.

**rightTwips int? = null optional**

The value.

**firstLineTwips int? = null optional**

The value.

Returns

`RtfParagraph` The same instance.

`public static RtfParagraph KeepLinesTogether(RtfParagraph rtfParagraph, bool value = true)` [#](#method-keeplinestogether-officeimo-rtf-rtfparagraph-boolean)

Sets [RtfParagraph.KeepLinesTogether](/api/rtf/officeimo-rtf-rtfparagraph/): Whether all lines in this paragraph should stay together on the same page.

Parameters

**rtfParagraph OfficeIMO.Rtf.RtfParagraph required**

The instance.

**value bool = true optional**

The value; true when omitted.

Returns

`RtfParagraph` The same instance.

Examples

```csharp
// C# initializer or property                                            // C# fluent
new global::OfficeIMO.Rtf.RtfParagraph { KeepLinesTogether = value };    rtfParagraph.KeepLinesTogether(value);
```

`public static RtfParagraph KeepWithNext(RtfParagraph rtfParagraph, bool value = true)` [#](#method-keepwithnext-officeimo-rtf-rtfparagraph-boolean)

Sets [RtfParagraph.KeepWithNext](/api/rtf/officeimo-rtf-rtfparagraph/): Whether this paragraph should stay on the same page as the following paragraph.

Parameters

**rtfParagraph OfficeIMO.Rtf.RtfParagraph required**

The instance.

**value bool = true optional**

The value; true when omitted.

Returns

`RtfParagraph` The same instance.

Examples

```csharp
// C# initializer or property                                       // C# fluent
new global::OfficeIMO.Rtf.RtfParagraph { KeepWithNext = value };    rtfParagraph.KeepWithNext(value);
```

`public static RtfParagraph LeftBorder(RtfParagraph rtfParagraph, Action<RtfParagraphBorder> configure)` [#](#method-leftborder-officeimo-rtf-rtfparagraph-action-officeimo-rtf-rtfparagraphborder)

Configures [RtfParagraph.LeftBorder](/api/rtf/officeimo-rtf-rtfparagraph/) in place: Left paragraph border.

Parameters

**rtfParagraph OfficeIMO.Rtf.RtfParagraph required**

The instance.

**configure System.Action<OfficeIMO.Rtf.RtfParagraphBorder> required**

Configures the value.

Returns

`RtfParagraph` The same instance.

`public static RtfParagraph LeftIndentTwips(RtfParagraph rtfParagraph, int? value)` [#](#method-leftindenttwips-officeimo-rtf-rtfparagraph-nullable-system-int32)

Sets [RtfParagraph.LeftIndentTwips](/api/rtf/officeimo-rtf-rtfparagraph/): Left indentation in twips.

Parameters

**rtfParagraph OfficeIMO.Rtf.RtfParagraph required**

The instance.

**value int? required**

The value.

Returns

`RtfParagraph` The same instance.

Examples

```csharp
// C# initializer or property                                          // C# fluent
new global::OfficeIMO.Rtf.RtfParagraph { LeftIndentTwips = value };    rtfParagraph.LeftIndentTwips(value);
```

`public static RtfParagraph LegacyNumbering(RtfParagraph rtfParagraph, Action<RtfLegacyNumbering> configure)` [#](#method-legacynumbering-officeimo-rtf-rtfparagraph-action-officeimo-rtf-rtflegacynumbering)

Configures Word 6/95 legacy paragraph numbering metadata.

Parameters

**rtfParagraph OfficeIMO.Rtf.RtfParagraph required**

The instance.

**configure System.Action<OfficeIMO.Rtf.RtfLegacyNumbering> required**

The value.

Returns

`RtfParagraph` The same instance.

`public static RtfParagraph LineSpacing(RtfParagraph rtfParagraph, int? lineSpacingTwips, bool? multiple = null)` [#](#method-linespacing-officeimo-rtf-rtfparagraph-nullable-system-int32-nullable-system-boolean)

Sets raw RTF paragraph line spacing controls.

Parameters

**rtfParagraph OfficeIMO.Rtf.RtfParagraph required**

The instance.

**lineSpacingTwips int? required**

The value.

**multiple bool? = null optional**

The value.

Returns

`RtfParagraph` The same instance.

`public static RtfParagraph LineSpacingMultiple(RtfParagraph rtfParagraph, bool? value = true)` [#](#method-linespacingmultiple-officeimo-rtf-rtfparagraph-nullable-system-boolean)

Sets [RtfParagraph.LineSpacingMultiple](/api/rtf/officeimo-rtf-rtfparagraph/): Whether \sl is interpreted as multiple line spacing by \slmult. Null means not specified.

Parameters

**rtfParagraph OfficeIMO.Rtf.RtfParagraph required**

The instance.

**value bool? = true optional**

The value; true when omitted.

Returns

`RtfParagraph` The same instance.

Examples

```csharp
// C# initializer or property                                              // C# fluent
new global::OfficeIMO.Rtf.RtfParagraph { LineSpacingMultiple = value };    rtfParagraph.LineSpacingMultiple(value);
```

`public static RtfParagraph LineSpacingTwips(RtfParagraph rtfParagraph, int? value)` [#](#method-linespacingtwips-officeimo-rtf-rtfparagraph-nullable-system-int32)

Sets [RtfParagraph.LineSpacingTwips](/api/rtf/officeimo-rtf-rtfparagraph/): Raw RTF line spacing value from \sl.

Parameters

**rtfParagraph OfficeIMO.Rtf.RtfParagraph required**

The instance.

**value int? required**

The value.

Returns

`RtfParagraph` The same instance.

Examples

```csharp
// C# initializer or property                                           // C# fluent
new global::OfficeIMO.Rtf.RtfParagraph { LineSpacingTwips = value };    rtfParagraph.LineSpacingTwips(value);
```

`public static RtfParagraph List(RtfParagraph rtfParagraph, int listId = 1, int level = 0, RtfListKind kind = Bullet)` [#](#method-list-officeimo-rtf-rtfparagraph-int32-int32-officeimo-rtf-rtflistkind)

Marks the paragraph as a list item.

Parameters

**rtfParagraph OfficeIMO.Rtf.RtfParagraph required**

The instance.

**listId int = 1 optional**

The value.

**level int = 0 optional**

The value.

**kind OfficeIMO.Rtf.RtfListKind = Bullet optional**

The value.

Returns

`RtfParagraph` The same instance.

`public static RtfParagraph ListDefinitionId(RtfParagraph rtfParagraph, int? value)` [#](#method-listdefinitionid-officeimo-rtf-rtfparagraph-nullable-system-int32)

Sets [RtfParagraph.ListDefinitionId](/api/rtf/officeimo-rtf-rtfparagraph/): Optional list definition id resolved through the list override table.

Parameters

**rtfParagraph OfficeIMO.Rtf.RtfParagraph required**

The instance.

**value int? required**

The value.

Returns

`RtfParagraph` The same instance.

Examples

```csharp
// C# initializer or property                                           // C# fluent
new global::OfficeIMO.Rtf.RtfParagraph { ListDefinitionId = value };    rtfParagraph.ListDefinitionId(value);
```

`public static RtfParagraph ListId(RtfParagraph rtfParagraph, int? value)` [#](#method-listid-officeimo-rtf-rtfparagraph-nullable-system-int32)

Sets [RtfParagraph.ListId](/api/rtf/officeimo-rtf-rtfparagraph/): Optional list id for paragraphs bound to an RTF list override.

Parameters

**rtfParagraph OfficeIMO.Rtf.RtfParagraph required**

The instance.

**value int? required**

The value.

Returns

`RtfParagraph` The same instance.

Examples

```csharp
// C# initializer or property                                 // C# fluent
new global::OfficeIMO.Rtf.RtfParagraph { ListId = value };    rtfParagraph.ListId(value);
```

`public static RtfParagraph ListKind(RtfParagraph rtfParagraph, RtfListKind value)` [#](#method-listkind-officeimo-rtf-rtfparagraph-officeimo-rtf-rtflistkind)

Sets [RtfParagraph.ListKind](/api/rtf/officeimo-rtf-rtfparagraph/): Basic list marker kind.

Parameters

**rtfParagraph OfficeIMO.Rtf.RtfParagraph required**

The instance.

**value OfficeIMO.Rtf.RtfListKind required**

The value.

Returns

`RtfParagraph` The same instance.

Examples

```csharp
// C# initializer or property                                   // C# fluent
new global::OfficeIMO.Rtf.RtfParagraph { ListKind = value };    rtfParagraph.ListKind(value);
```

`public static RtfParagraph ListLevel(RtfParagraph rtfParagraph, int? value)` [#](#method-listlevel-officeimo-rtf-rtfparagraph-nullable-system-int32)

Sets [RtfParagraph.ListLevel](/api/rtf/officeimo-rtf-rtfparagraph/): Optional zero-based list level.

Parameters

**rtfParagraph OfficeIMO.Rtf.RtfParagraph required**

The instance.

**value int? required**

The value.

Returns

`RtfParagraph` The same instance.

Examples

```csharp
// C# initializer or property                                    // C# fluent
new global::OfficeIMO.Rtf.RtfParagraph { ListLevel = value };    rtfParagraph.ListLevel(value);
```

ListText 2 overloads

`public static RtfParagraph ListText(RtfParagraph rtfParagraph, string text)` [#](#method-listtext-officeimo-rtf-rtfparagraph-string)

Sets plain fallback list marker text emitted in a \listtext destination.

Parameters

**rtfParagraph OfficeIMO.Rtf.RtfParagraph required**

The instance.

**text string required**

The value.

Returns

`RtfParagraph` The same instance.

`public static RtfParagraph ListText(RtfParagraph rtfParagraph, Action<RtfParagraph> configure)` [#](#method-listtext-officeimo-rtf-rtfparagraph-action-officeimo-rtf-rtfparagraph)

Configures rich fallback list marker content emitted in a \listtext destination.

Parameters

**rtfParagraph OfficeIMO.Rtf.RtfParagraph required**

The instance.

**configure System.Action<OfficeIMO.Rtf.RtfParagraph> required**

The value.

Returns

`RtfParagraph` The same instance.

`public static RtfParagraph OutlineLevel(RtfParagraph rtfParagraph, int? outlineLevel)` [#](#method-outlinelevel-officeimo-rtf-rtfparagraph-nullable-system-int32)

Sets the paragraph outline level.

Parameters

**rtfParagraph OfficeIMO.Rtf.RtfParagraph required**

The instance.

**outlineLevel int? required**

The value.

Returns

`RtfParagraph` The same instance.

`public static RtfParagraph PageBreakBefore(RtfParagraph rtfParagraph, bool value = true)` [#](#method-pagebreakbefore-officeimo-rtf-rtfparagraph-boolean)

Sets [RtfParagraph.PageBreakBefore](/api/rtf/officeimo-rtf-rtfparagraph/): Whether a page break should be emitted before this paragraph.

Parameters

**rtfParagraph OfficeIMO.Rtf.RtfParagraph required**

The instance.

**value bool = true optional**

The value; true when omitted.

Returns

`RtfParagraph` The same instance.

Examples

```csharp
// C# initializer or property                                          // C# fluent
new global::OfficeIMO.Rtf.RtfParagraph { PageBreakBefore = value };    rtfParagraph.PageBreakBefore(value);
```

`public static RtfParagraph Pagination(RtfParagraph rtfParagraph, bool? pageBreakBefore = null, bool? keepWithNext = null, bool? keepLinesTogether = null, bool? widowControl = null, bool? suppressLineNumbers = null, bool? autoHyphenation = null)` [#](#method-pagination-officeimo-rtf-rtfparagraph-nullable-system-boolean-nullable-system-boolean-nullable-system-boolean-nullable-system-boolean-nullable-system-boolean-nullable-system-boolean)

Sets paragraph pagination controls.

Parameters

**rtfParagraph OfficeIMO.Rtf.RtfParagraph required**

The instance.

**pageBreakBefore bool? = null optional**

The value.

**keepWithNext bool? = null optional**

The value.

**keepLinesTogether bool? = null optional**

The value.

**widowControl bool? = null optional**

The value.

**suppressLineNumbers bool? = null optional**

The value.

**autoHyphenation bool? = null optional**

The value.

Returns

`RtfParagraph` The same instance.

`public static RtfParagraph ParagraphSpacing(RtfParagraph rtfParagraph, int? beforeTwips = null, int? afterTwips = null, bool? beforeAuto = null, bool? afterAuto = null)` [#](#method-paragraphspacing-officeimo-rtf-rtfparagraph-nullable-system-int32-nullable-system-int32-nullable-system-boolean-nullable-system-boolean)

Sets paragraph spacing before and after this paragraph.

Parameters

**rtfParagraph OfficeIMO.Rtf.RtfParagraph required**

The instance.

**beforeTwips int? = null optional**

The value.

**afterTwips int? = null optional**

The value.

**beforeAuto bool? = null optional**

The value.

**afterAuto bool? = null optional**

The value.

Returns

`RtfParagraph` The same instance.

`public static RtfParagraph RevisionSaveId(RtfParagraph rtfParagraph, int? id)` [#](#method-revisionsaveid-officeimo-rtf-rtfparagraph-nullable-system-int32)

Sets the paragraph revision save identifier represented by \pararsid.

Parameters

**rtfParagraph OfficeIMO.Rtf.RtfParagraph required**

The instance.

**id int? required**

The value.

Returns

`RtfParagraph` The same instance.

`public static RtfParagraph RightBorder(RtfParagraph rtfParagraph, Action<RtfParagraphBorder> configure)` [#](#method-rightborder-officeimo-rtf-rtfparagraph-action-officeimo-rtf-rtfparagraphborder)

Configures [RtfParagraph.RightBorder](/api/rtf/officeimo-rtf-rtfparagraph/) in place: Right paragraph border.

Parameters

**rtfParagraph OfficeIMO.Rtf.RtfParagraph required**

The instance.

**configure System.Action<OfficeIMO.Rtf.RtfParagraphBorder> required**

Configures the value.

Returns

`RtfParagraph` The same instance.

`public static RtfParagraph RightIndentTwips(RtfParagraph rtfParagraph, int? value)` [#](#method-rightindenttwips-officeimo-rtf-rtfparagraph-nullable-system-int32)

Sets [RtfParagraph.RightIndentTwips](/api/rtf/officeimo-rtf-rtfparagraph/): Right indentation in twips.

Parameters

**rtfParagraph OfficeIMO.Rtf.RtfParagraph required**

The instance.

**value int? required**

The value.

Returns

`RtfParagraph` The same instance.

Examples

```csharp
// C# initializer or property                                           // C# fluent
new global::OfficeIMO.Rtf.RtfParagraph { RightIndentTwips = value };    rtfParagraph.RightIndentTwips(value);
```

`public static RtfParagraph Shading(RtfParagraph rtfParagraph, int? backgroundColorIndex, int? foregroundColorIndex = null, int? patternPercent = null, RtfShadingPattern pattern = None)` [#](#method-shading-officeimo-rtf-rtfparagraph-nullable-system-int32-nullable-system-int32-nullable-system-int32-officeimo-rtf-rtfshadingpattern)

Sets paragraph shading color and pattern metadata.

Parameters

**rtfParagraph OfficeIMO.Rtf.RtfParagraph required**

The instance.

**backgroundColorIndex int? required**

The value.

**foregroundColorIndex int? = null optional**

The value.

**patternPercent int? = null optional**

The value.

**pattern OfficeIMO.Rtf.RtfShadingPattern = None optional**

The value.

Returns

`RtfParagraph` The same instance.

`public static RtfParagraph ShadingForegroundColorIndex(RtfParagraph rtfParagraph, int? value)` [#](#method-shadingforegroundcolorindex-officeimo-rtf-rtfparagraph-nullable-system-int32)

Sets [RtfParagraph.ShadingForegroundColorIndex](/api/rtf/officeimo-rtf-rtfparagraph/): One-based color table index used by paragraph pattern foreground shading.

Parameters

**rtfParagraph OfficeIMO.Rtf.RtfParagraph required**

The instance.

**value int? required**

The value.

Returns

`RtfParagraph` The same instance.

Examples

```csharp
// C# initializer or property                                                      // C# fluent
new global::OfficeIMO.Rtf.RtfParagraph { ShadingForegroundColorIndex = value };    rtfParagraph.ShadingForegroundColorIndex(value);
```

`public static RtfParagraph ShadingPattern(RtfParagraph rtfParagraph, RtfShadingPattern value)` [#](#method-shadingpattern-officeimo-rtf-rtfparagraph-officeimo-rtf-rtfshadingpattern)

Sets [RtfParagraph.ShadingPattern](/api/rtf/officeimo-rtf-rtfparagraph/): Named RTF shading pattern.

Parameters

**rtfParagraph OfficeIMO.Rtf.RtfParagraph required**

The instance.

**value OfficeIMO.Rtf.RtfShadingPattern required**

The value.

Returns

`RtfParagraph` The same instance.

Examples

```csharp
// C# initializer or property                                         // C# fluent
new global::OfficeIMO.Rtf.RtfParagraph { ShadingPattern = value };    rtfParagraph.ShadingPattern(value);
```

`public static RtfParagraph ShadingPatternPercent(RtfParagraph rtfParagraph, int? value)` [#](#method-shadingpatternpercent-officeimo-rtf-rtfparagraph-nullable-system-int32)

Sets [RtfParagraph.ShadingPatternPercent](/api/rtf/officeimo-rtf-rtfparagraph/): Raw RTF \shading value, where 10000 represents 100 percent.

Parameters

**rtfParagraph OfficeIMO.Rtf.RtfParagraph required**

The instance.

**value int? required**

The value.

Returns

`RtfParagraph` The same instance.

Examples

```csharp
// C# initializer or property                                                // C# fluent
new global::OfficeIMO.Rtf.RtfParagraph { ShadingPatternPercent = value };    rtfParagraph.ShadingPatternPercent(value);
```

`public static RtfParagraph SnapToLineGrid(RtfParagraph rtfParagraph, bool? enabled = true)` [#](#method-snaptolinegrid-officeimo-rtf-rtfparagraph-nullable-system-boolean)

Sets whether paragraph lines snap to the document line grid.

Parameters

**rtfParagraph OfficeIMO.Rtf.RtfParagraph required**

The instance.

**enabled bool? = true optional**

The value.

Returns

`RtfParagraph` The same instance.

`public static RtfParagraph SpaceAfterAuto(RtfParagraph rtfParagraph, bool? value = true)` [#](#method-spaceafterauto-officeimo-rtf-rtfparagraph-nullable-system-boolean)

Sets [RtfParagraph.SpaceAfterAuto](/api/rtf/officeimo-rtf-rtfparagraph/): Whether space after the paragraph is automatically determined by the renderer.

Parameters

**rtfParagraph OfficeIMO.Rtf.RtfParagraph required**

The instance.

**value bool? = true optional**

The value; true when omitted.

Returns

`RtfParagraph` The same instance.

Examples

```csharp
// C# initializer or property                                         // C# fluent
new global::OfficeIMO.Rtf.RtfParagraph { SpaceAfterAuto = value };    rtfParagraph.SpaceAfterAuto(value);
```

`public static RtfParagraph SpaceAfterTwips(RtfParagraph rtfParagraph, int? value)` [#](#method-spaceaftertwips-officeimo-rtf-rtfparagraph-nullable-system-int32)

Sets [RtfParagraph.SpaceAfterTwips](/api/rtf/officeimo-rtf-rtfparagraph/): Space after paragraph in twips.

Parameters

**rtfParagraph OfficeIMO.Rtf.RtfParagraph required**

The instance.

**value int? required**

The value.

Returns

`RtfParagraph` The same instance.

Examples

```csharp
// C# initializer or property                                          // C# fluent
new global::OfficeIMO.Rtf.RtfParagraph { SpaceAfterTwips = value };    rtfParagraph.SpaceAfterTwips(value);
```

`public static RtfParagraph SpaceBeforeAuto(RtfParagraph rtfParagraph, bool? value = true)` [#](#method-spacebeforeauto-officeimo-rtf-rtfparagraph-nullable-system-boolean)

Sets [RtfParagraph.SpaceBeforeAuto](/api/rtf/officeimo-rtf-rtfparagraph/): Whether space before the paragraph is automatically determined by the renderer.

Parameters

**rtfParagraph OfficeIMO.Rtf.RtfParagraph required**

The instance.

**value bool? = true optional**

The value; true when omitted.

Returns

`RtfParagraph` The same instance.

Examples

```csharp
// C# initializer or property                                          // C# fluent
new global::OfficeIMO.Rtf.RtfParagraph { SpaceBeforeAuto = value };    rtfParagraph.SpaceBeforeAuto(value);
```

`public static RtfParagraph SpaceBeforeTwips(RtfParagraph rtfParagraph, int? value)` [#](#method-spacebeforetwips-officeimo-rtf-rtfparagraph-nullable-system-int32)

Sets [RtfParagraph.SpaceBeforeTwips](/api/rtf/officeimo-rtf-rtfparagraph/): Space before paragraph in twips.

Parameters

**rtfParagraph OfficeIMO.Rtf.RtfParagraph required**

The instance.

**value int? required**

The value.

Returns

`RtfParagraph` The same instance.

Examples

```csharp
// C# initializer or property                                           // C# fluent
new global::OfficeIMO.Rtf.RtfParagraph { SpaceBeforeTwips = value };    rtfParagraph.SpaceBeforeTwips(value);
```

`public static RtfParagraph Style(RtfParagraph rtfParagraph, int styleId)` [#](#method-style-officeimo-rtf-rtfparagraph-int32)

Sets the paragraph style id.

Parameters

**rtfParagraph OfficeIMO.Rtf.RtfParagraph required**

The instance.

**styleId int required**

The value.

Returns

`RtfParagraph` The same instance.

`public static RtfParagraph StyleId(RtfParagraph rtfParagraph, int? value)` [#](#method-styleid-officeimo-rtf-rtfparagraph-nullable-system-int32)

Sets [RtfParagraph.StyleId](/api/rtf/officeimo-rtf-rtfparagraph/): Optional paragraph stylesheet id.

Parameters

**rtfParagraph OfficeIMO.Rtf.RtfParagraph required**

The instance.

**value int? required**

The value.

Returns

`RtfParagraph` The same instance.

Examples

```csharp
// C# initializer or property                                  // C# fluent
new global::OfficeIMO.Rtf.RtfParagraph { StyleId = value };    rtfParagraph.StyleId(value);
```

`public static RtfParagraph SuppressLineNumbers(RtfParagraph rtfParagraph, bool value = true)` [#](#method-suppresslinenumbers-officeimo-rtf-rtfparagraph-boolean)

Sets [RtfParagraph.SuppressLineNumbers](/api/rtf/officeimo-rtf-rtfparagraph/): Whether line numbering is suppressed for this paragraph.

Parameters

**rtfParagraph OfficeIMO.Rtf.RtfParagraph required**

The instance.

**value bool = true optional**

The value; true when omitted.

Returns

`RtfParagraph` The same instance.

Examples

```csharp
// C# initializer or property                                              // C# fluent
new global::OfficeIMO.Rtf.RtfParagraph { SuppressLineNumbers = value };    rtfParagraph.SuppressLineNumbers(value);
```

`public static RtfParagraph TopBorder(RtfParagraph rtfParagraph, Action<RtfParagraphBorder> configure)` [#](#method-topborder-officeimo-rtf-rtfparagraph-action-officeimo-rtf-rtfparagraphborder)

Configures [RtfParagraph.TopBorder](/api/rtf/officeimo-rtf-rtfparagraph/) in place: Top paragraph border.

Parameters

**rtfParagraph OfficeIMO.Rtf.RtfParagraph required**

The instance.

**configure System.Action<OfficeIMO.Rtf.RtfParagraphBorder> required**

Configures the value.

Returns

`RtfParagraph` The same instance.

`public static RtfParagraph WidowControl(RtfParagraph rtfParagraph, bool? value = true)` [#](#method-widowcontrol-officeimo-rtf-rtfparagraph-nullable-system-boolean)

Sets [RtfParagraph.WidowControl](/api/rtf/officeimo-rtf-rtfparagraph/): Explicit paragraph widow/orphan control. Null means not specified.

Parameters

**rtfParagraph OfficeIMO.Rtf.RtfParagraph required**

The instance.

**value bool? = true optional**

The value; true when omitted.

Returns

`RtfParagraph` The same instance.

Examples

```csharp
// C# initializer or property                                       // C# fluent
new global::OfficeIMO.Rtf.RtfParagraph { WidowControl = value };    rtfParagraph.WidowControl(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:7EB155F8946EFDFC5F749F212614B42199524EE33C8B9AD7E59C0A3533B2611A -->
