# RtfStyleFluent

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

Class 

`OfficeIMO.Rtf`

**Namespace**

`OfficeIMO.Rtf`

**Assembly**

`OfficeIMO.Rtf`

**Modifiers**

static

The fluent methods of [RtfStyle](/api/rtf/officeimo-rtf-rtfstyle/), 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
- RtfStyleFluent

Filter members 

Show inherited

## Methods

`public static RtfStyle Additive(RtfStyle rtfStyle, bool value = true)` [#](#method-additive-officeimo-rtf-rtfstyle-boolean)

Sets [RtfStyle.Additive](/api/rtf/officeimo-rtf-rtfstyle/): Whether the style is marked as additive.

Parameters

**rtfStyle OfficeIMO.Rtf.RtfStyle required**

The instance.

**value bool = true optional**

The value; true when omitted.

Returns

`RtfStyle` The same instance.

Examples

```csharp
// C# initializer or property    // C# fluent
rtfStyle.Additive = value;       rtfStyle.Additive(value);
```

`public static RtfStyle AdjustRightIndent(RtfStyle rtfStyle, bool? value = true)` [#](#method-adjustrightindent-officeimo-rtf-rtfstyle-nullable-system-boolean)

Sets [RtfStyle.AdjustRightIndent](/api/rtf/officeimo-rtf-rtfstyle/): Optional automatic right-indent adjustment setting carried by the stylesheet entry.

Parameters

**rtfStyle OfficeIMO.Rtf.RtfStyle required**

The instance.

**value bool? = true optional**

The value; true when omitted.

Returns

`RtfStyle` The same instance.

Examples

```csharp
// C# initializer or property          // C# fluent
rtfStyle.AdjustRightIndent = value;    rtfStyle.AdjustRightIndent(value);
```

`public static RtfStyle AutoHyphenation(RtfStyle rtfStyle, bool? value = true)` [#](#method-autohyphenation-officeimo-rtf-rtfstyle-nullable-system-boolean)

Sets [RtfStyle.AutoHyphenation](/api/rtf/officeimo-rtf-rtfstyle/): Optional paragraph automatic hyphenation setting carried by the stylesheet entry.

Parameters

**rtfStyle OfficeIMO.Rtf.RtfStyle required**

The instance.

**value bool? = true optional**

The value; true when omitted.

Returns

`RtfStyle` The same instance.

Examples

```csharp
// C# initializer or property        // C# fluent
rtfStyle.AutoHyphenation = value;    rtfStyle.AutoHyphenation(value);
```

`public static RtfStyle AutoUpdate(RtfStyle rtfStyle, bool value = true)` [#](#method-autoupdate-officeimo-rtf-rtfstyle-boolean)

Sets [RtfStyle.AutoUpdate](/api/rtf/officeimo-rtf-rtfstyle/): Whether this style automatically updates from document content.

Parameters

**rtfStyle OfficeIMO.Rtf.RtfStyle required**

The instance.

**value bool = true optional**

The value; true when omitted.

Returns

`RtfStyle` The same instance.

Examples

```csharp
// C# initializer or property    // C# fluent
rtfStyle.AutoUpdate = value;     rtfStyle.AutoUpdate(value);
```

`public static RtfStyle BackgroundColorIndex(RtfStyle rtfStyle, int? value)` [#](#method-backgroundcolorindex-officeimo-rtf-rtfstyle-nullable-system-int32)

Sets [RtfStyle.BackgroundColorIndex](/api/rtf/officeimo-rtf-rtfstyle/): Optional paragraph background color table index carried by the stylesheet entry.

Parameters

**rtfStyle OfficeIMO.Rtf.RtfStyle required**

The instance.

**value int? required**

The value.

Returns

`RtfStyle` The same instance.

Examples

```csharp
// C# initializer or property             // C# fluent
rtfStyle.BackgroundColorIndex = value;    rtfStyle.BackgroundColorIndex(value);
```

`public static RtfStyle BasedOnStyleId(RtfStyle rtfStyle, int? value)` [#](#method-basedonstyleid-officeimo-rtf-rtfstyle-nullable-system-int32)

Sets [RtfStyle.BasedOnStyleId](/api/rtf/officeimo-rtf-rtfstyle/): Optional base style id.

Parameters

**rtfStyle OfficeIMO.Rtf.RtfStyle required**

The instance.

**value int? required**

The value.

Returns

`RtfStyle` The same instance.

Examples

```csharp
// C# initializer or property       // C# fluent
rtfStyle.BasedOnStyleId = value;    rtfStyle.BasedOnStyleId(value);
```

`public static RtfStyle Bold(RtfStyle rtfStyle, bool? value = true)` [#](#method-bold-officeimo-rtf-rtfstyle-nullable-system-boolean)

Sets [RtfStyle.Bold](/api/rtf/officeimo-rtf-rtfstyle/): Optional direct bold setting carried by the stylesheet entry.

Parameters

**rtfStyle OfficeIMO.Rtf.RtfStyle required**

The instance.

**value bool? = true optional**

The value; true when omitted.

Returns

`RtfStyle` The same instance.

Examples

```csharp
// C# initializer or property    // C# fluent
rtfStyle.Bold = value;           rtfStyle.Bold(value);
```

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

Sets paragraph border formatting for one stylesheet side.

Parameters

**rtfStyle OfficeIMO.Rtf.RtfStyle 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

`RtfStyle` The same instance.

`public static RtfStyle BottomBorder(RtfStyle rtfStyle, Action<RtfParagraphBorder> configure)` [#](#method-bottomborder-officeimo-rtf-rtfstyle-action-officeimo-rtf-rtfparagraphborder)

Configures [RtfStyle.BottomBorder](/api/rtf/officeimo-rtf-rtfstyle/) in place: Bottom paragraph border carried by the stylesheet entry.

Parameters

**rtfStyle OfficeIMO.Rtf.RtfStyle required**

The instance.

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

Configures the value.

Returns

`RtfStyle` The same instance.

`public static RtfStyle Compose(RtfStyle rtfStyle, bool value = true)` [#](#method-compose-officeimo-rtf-rtfstyle-boolean)

Sets [RtfStyle.Compose](/api/rtf/officeimo-rtf-rtfstyle/): Whether this style is marked as an e-mail compose style.

Parameters

**rtfStyle OfficeIMO.Rtf.RtfStyle required**

The instance.

**value bool = true optional**

The value; true when omitted.

Returns

`RtfStyle` The same instance.

Examples

```csharp
// C# initializer or property    // C# fluent
rtfStyle.Compose = value;        rtfStyle.Compose(value);
```

`public static RtfStyle ContextualSpacing(RtfStyle rtfStyle, bool? value = true)` [#](#method-contextualspacing-officeimo-rtf-rtfstyle-nullable-system-boolean)

Sets [RtfStyle.ContextualSpacing](/api/rtf/officeimo-rtf-rtfstyle/): Optional contextual spacing setting carried by the stylesheet entry.

Parameters

**rtfStyle OfficeIMO.Rtf.RtfStyle required**

The instance.

**value bool? = true optional**

The value; true when omitted.

Returns

`RtfStyle` The same instance.

Examples

```csharp
// C# initializer or property          // C# fluent
rtfStyle.ContextualSpacing = value;    rtfStyle.ContextualSpacing(value);
```

`public static RtfStyle FirstLineIndentTwips(RtfStyle rtfStyle, int? value)` [#](#method-firstlineindenttwips-officeimo-rtf-rtfstyle-nullable-system-int32)

Sets [RtfStyle.FirstLineIndentTwips](/api/rtf/officeimo-rtf-rtfstyle/): Optional first-line paragraph indentation in twips carried by the stylesheet entry.

Parameters

**rtfStyle OfficeIMO.Rtf.RtfStyle required**

The instance.

**value int? required**

The value.

Returns

`RtfStyle` The same instance.

Examples

```csharp
// C# initializer or property             // C# fluent
rtfStyle.FirstLineIndentTwips = value;    rtfStyle.FirstLineIndentTwips(value);
```

`public static RtfStyle FontId(RtfStyle rtfStyle, int? value)` [#](#method-fontid-officeimo-rtf-rtfstyle-nullable-system-int32)

Sets [RtfStyle.FontId](/api/rtf/officeimo-rtf-rtfstyle/): Optional direct font id carried by the stylesheet entry.

Parameters

**rtfStyle OfficeIMO.Rtf.RtfStyle required**

The instance.

**value int? required**

The value.

Returns

`RtfStyle` The same instance.

Examples

```csharp
// C# initializer or property    // C# fluent
rtfStyle.FontId = value;         rtfStyle.FontId(value);
```

`public static RtfStyle FontSize(RtfStyle rtfStyle, double? value)` [#](#method-fontsize-officeimo-rtf-rtfstyle-nullable-system-double)

Sets [RtfStyle.FontSize](/api/rtf/officeimo-rtf-rtfstyle/): Optional direct font size in points carried by the stylesheet entry.

Parameters

**rtfStyle OfficeIMO.Rtf.RtfStyle required**

The instance.

**value double? required**

The value.

Returns

`RtfStyle` The same instance.

Examples

```csharp
// C# initializer or property    // C# fluent
rtfStyle.FontSize = value;       rtfStyle.FontSize(value);
```

`public static RtfStyle ForegroundColorIndex(RtfStyle rtfStyle, int? value)` [#](#method-foregroundcolorindex-officeimo-rtf-rtfstyle-nullable-system-int32)

Sets [RtfStyle.ForegroundColorIndex](/api/rtf/officeimo-rtf-rtfstyle/): Optional direct foreground color table index carried by the stylesheet entry.

Parameters

**rtfStyle OfficeIMO.Rtf.RtfStyle required**

The instance.

**value int? required**

The value.

Returns

`RtfStyle` The same instance.

Examples

```csharp
// C# initializer or property             // C# fluent
rtfStyle.ForegroundColorIndex = value;    rtfStyle.ForegroundColorIndex(value);
```

`public static RtfStyle Frame(RtfStyle rtfStyle, Action<RtfParagraphFrame> configure)` [#](#method-frame-officeimo-rtf-rtfstyle-action-officeimo-rtf-rtfparagraphframe)

Configures absolute positioning frame metadata for this stylesheet entry.

Parameters

**rtfStyle OfficeIMO.Rtf.RtfStyle required**

The instance.

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

The value.

Returns

`RtfStyle` The same instance.

`public static RtfStyle Hidden(RtfStyle rtfStyle, bool value = true)` [#](#method-hidden-officeimo-rtf-rtfstyle-boolean)

Sets [RtfStyle.Hidden](/api/rtf/officeimo-rtf-rtfstyle/): Whether this style is hidden from style lists.

Parameters

**rtfStyle OfficeIMO.Rtf.RtfStyle required**

The instance.

**value bool = true optional**

The value; true when omitted.

Returns

`RtfStyle` The same instance.

Examples

```csharp
// C# initializer or property    // C# fluent
rtfStyle.Hidden = value;         rtfStyle.Hidden(value);
```

`public static RtfStyle HighlightColorIndex(RtfStyle rtfStyle, int? value)` [#](#method-highlightcolorindex-officeimo-rtf-rtfstyle-nullable-system-int32)

Sets [RtfStyle.HighlightColorIndex](/api/rtf/officeimo-rtf-rtfstyle/): Optional direct highlight color table index carried by the stylesheet entry.

Parameters

**rtfStyle OfficeIMO.Rtf.RtfStyle required**

The instance.

**value int? required**

The value.

Returns

`RtfStyle` The same instance.

Examples

```csharp
// C# initializer or property            // C# fluent
rtfStyle.HighlightColorIndex = value;    rtfStyle.HighlightColorIndex(value);
```

`public static RtfStyle Italic(RtfStyle rtfStyle, bool? value = true)` [#](#method-italic-officeimo-rtf-rtfstyle-nullable-system-boolean)

Sets [RtfStyle.Italic](/api/rtf/officeimo-rtf-rtfstyle/): Optional direct italic setting carried by the stylesheet entry.

Parameters

**rtfStyle OfficeIMO.Rtf.RtfStyle required**

The instance.

**value bool? = true optional**

The value; true when omitted.

Returns

`RtfStyle` The same instance.

Examples

```csharp
// C# initializer or property    // C# fluent
rtfStyle.Italic = value;         rtfStyle.Italic(value);
```

`public static RtfStyle KeepLinesTogether(RtfStyle rtfStyle, bool? value = true)` [#](#method-keeplinestogether-officeimo-rtf-rtfstyle-nullable-system-boolean)

Sets [RtfStyle.KeepLinesTogether](/api/rtf/officeimo-rtf-rtfstyle/): Optional keep-lines-together setting carried by the stylesheet entry.

Parameters

**rtfStyle OfficeIMO.Rtf.RtfStyle required**

The instance.

**value bool? = true optional**

The value; true when omitted.

Returns

`RtfStyle` The same instance.

Examples

```csharp
// C# initializer or property          // C# fluent
rtfStyle.KeepLinesTogether = value;    rtfStyle.KeepLinesTogether(value);
```

`public static RtfStyle KeepWithNext(RtfStyle rtfStyle, bool? value = true)` [#](#method-keepwithnext-officeimo-rtf-rtfstyle-nullable-system-boolean)

Sets [RtfStyle.KeepWithNext](/api/rtf/officeimo-rtf-rtfstyle/): Optional keep-with-next setting carried by the stylesheet entry.

Parameters

**rtfStyle OfficeIMO.Rtf.RtfStyle required**

The instance.

**value bool? = true optional**

The value; true when omitted.

Returns

`RtfStyle` The same instance.

Examples

```csharp
// C# initializer or property     // C# fluent
rtfStyle.KeepWithNext = value;    rtfStyle.KeepWithNext(value);
```

KeyCode 2 overloads

`public static RtfStyle KeyCode(RtfStyle rtfStyle, RtfStyleKeyCode? value)` [#](#method-keycode-officeimo-rtf-rtfstyle-officeimo-rtf-rtfstylekeycode)

Sets [RtfStyle.KeyCode](/api/rtf/officeimo-rtf-rtfstyle/): Optional shortcut key metadata from the stylesheet {\*\keycode ...} group.

Parameters

**rtfStyle OfficeIMO.Rtf.RtfStyle required**

The instance.

**value OfficeIMO.Rtf.RtfStyleKeyCode? required**

The value.

Returns

`RtfStyle` The same instance.

Examples

```csharp
// C# initializer or property    // C# fluent
rtfStyle.KeyCode = value;        rtfStyle.KeyCode(value);
```

`public static RtfStyle KeyCode(RtfStyle rtfStyle, Action<RtfStyleKeyCode> configure)` [#](#method-keycode-officeimo-rtf-rtfstyle-action-officeimo-rtf-rtfstylekeycode)

Configures [RtfStyle.KeyCode](/api/rtf/officeimo-rtf-rtfstyle/) in place (creating it when not set): Optional shortcut key metadata from the stylesheet {\*\keycode ...} group.

Parameters

**rtfStyle OfficeIMO.Rtf.RtfStyle required**

The instance.

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

Configures the value.

Returns

`RtfStyle` The same instance.

`public static RtfStyle Kind(RtfStyle rtfStyle, RtfStyleKind value)` [#](#method-kind-officeimo-rtf-rtfstyle-officeimo-rtf-rtfstylekind)

Sets [RtfStyle.Kind](/api/rtf/officeimo-rtf-rtfstyle/): Style kind.

Parameters

**rtfStyle OfficeIMO.Rtf.RtfStyle required**

The instance.

**value OfficeIMO.Rtf.RtfStyleKind required**

The value.

Returns

`RtfStyle` The same instance.

Examples

```csharp
// C# initializer or property    // C# fluent
rtfStyle.Kind = value;           rtfStyle.Kind(value);
```

`public static RtfStyle LeftBorder(RtfStyle rtfStyle, Action<RtfParagraphBorder> configure)` [#](#method-leftborder-officeimo-rtf-rtfstyle-action-officeimo-rtf-rtfparagraphborder)

Configures [RtfStyle.LeftBorder](/api/rtf/officeimo-rtf-rtfstyle/) in place: Left paragraph border carried by the stylesheet entry.

Parameters

**rtfStyle OfficeIMO.Rtf.RtfStyle required**

The instance.

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

Configures the value.

Returns

`RtfStyle` The same instance.

`public static RtfStyle LeftIndentTwips(RtfStyle rtfStyle, int? value)` [#](#method-leftindenttwips-officeimo-rtf-rtfstyle-nullable-system-int32)

Sets [RtfStyle.LeftIndentTwips](/api/rtf/officeimo-rtf-rtfstyle/): Optional left paragraph indentation in twips carried by the stylesheet entry.

Parameters

**rtfStyle OfficeIMO.Rtf.RtfStyle required**

The instance.

**value int? required**

The value.

Returns

`RtfStyle` The same instance.

Examples

```csharp
// C# initializer or property        // C# fluent
rtfStyle.LeftIndentTwips = value;    rtfStyle.LeftIndentTwips(value);
```

`public static RtfStyle LegacyNumbering(RtfStyle rtfStyle, Action<RtfLegacyNumbering> configure)` [#](#method-legacynumbering-officeimo-rtf-rtfstyle-action-officeimo-rtf-rtflegacynumbering)

Configures Word 6/95 legacy paragraph numbering metadata for this style.

Parameters

**rtfStyle OfficeIMO.Rtf.RtfStyle required**

The instance.

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

The value.

Returns

`RtfStyle` The same instance.

`public static RtfStyle LineSpacingMultiple(RtfStyle rtfStyle, bool? value = true)` [#](#method-linespacingmultiple-officeimo-rtf-rtfstyle-nullable-system-boolean)

Sets [RtfStyle.LineSpacingMultiple](/api/rtf/officeimo-rtf-rtfstyle/): Optional line spacing multiplier flag carried by the stylesheet entry.

Parameters

**rtfStyle OfficeIMO.Rtf.RtfStyle required**

The instance.

**value bool? = true optional**

The value; true when omitted.

Returns

`RtfStyle` The same instance.

Examples

```csharp
// C# initializer or property            // C# fluent
rtfStyle.LineSpacingMultiple = value;    rtfStyle.LineSpacingMultiple(value);
```

`public static RtfStyle LineSpacingTwips(RtfStyle rtfStyle, int? value)` [#](#method-linespacingtwips-officeimo-rtf-rtfstyle-nullable-system-int32)

Sets [RtfStyle.LineSpacingTwips](/api/rtf/officeimo-rtf-rtfstyle/): Optional raw RTF line spacing value carried by the stylesheet entry.

Parameters

**rtfStyle OfficeIMO.Rtf.RtfStyle required**

The instance.

**value int? required**

The value.

Returns

`RtfStyle` The same instance.

Examples

```csharp
// C# initializer or property         // C# fluent
rtfStyle.LineSpacingTwips = value;    rtfStyle.LineSpacingTwips(value);
```

`public static RtfStyle LinkedStyleId(RtfStyle rtfStyle, int? value)` [#](#method-linkedstyleid-officeimo-rtf-rtfstyle-nullable-system-int32)

Sets [RtfStyle.LinkedStyleId](/api/rtf/officeimo-rtf-rtfstyle/): Optional linked style id.

Parameters

**rtfStyle OfficeIMO.Rtf.RtfStyle required**

The instance.

**value int? required**

The value.

Returns

`RtfStyle` The same instance.

Examples

```csharp
// C# initializer or property      // C# fluent
rtfStyle.LinkedStyleId = value;    rtfStyle.LinkedStyleId(value);
```

`public static RtfStyle ListId(RtfStyle rtfStyle, int? value)` [#](#method-listid-officeimo-rtf-rtfstyle-nullable-system-int32)

Sets [RtfStyle.ListId](/api/rtf/officeimo-rtf-rtfstyle/): Optional list-instance reference inherited by paragraphs using this style.

Parameters

**rtfStyle OfficeIMO.Rtf.RtfStyle required**

The instance.

**value int? required**

The value.

Returns

`RtfStyle` The same instance.

Examples

```csharp
// C# initializer or property    // C# fluent
rtfStyle.ListId = value;         rtfStyle.ListId(value);
```

`public static RtfStyle ListLevel(RtfStyle rtfStyle, int? value)` [#](#method-listlevel-officeimo-rtf-rtfstyle-nullable-system-int32)

Sets [RtfStyle.ListLevel](/api/rtf/officeimo-rtf-rtfstyle/): Optional zero-based list level inherited by paragraphs using this style.

Parameters

**rtfStyle OfficeIMO.Rtf.RtfStyle required**

The instance.

**value int? required**

The value.

Returns

`RtfStyle` The same instance.

Examples

```csharp
// C# initializer or property    // C# fluent
rtfStyle.ListLevel = value;      rtfStyle.ListLevel(value);
```

`public static RtfStyle Locked(RtfStyle rtfStyle, bool value = true)` [#](#method-locked-officeimo-rtf-rtfstyle-boolean)

Sets [RtfStyle.Locked](/api/rtf/officeimo-rtf-rtfstyle/): Whether this style is locked against modification.

Parameters

**rtfStyle OfficeIMO.Rtf.RtfStyle required**

The instance.

**value bool = true optional**

The value; true when omitted.

Returns

`RtfStyle` The same instance.

Examples

```csharp
// C# initializer or property    // C# fluent
rtfStyle.Locked = value;         rtfStyle.Locked(value);
```

`public static RtfStyle Name(RtfStyle rtfStyle, string value)` [#](#method-name-officeimo-rtf-rtfstyle-string)

Sets [RtfStyle.Name](/api/rtf/officeimo-rtf-rtfstyle/): Human-readable style name.

Parameters

**rtfStyle OfficeIMO.Rtf.RtfStyle required**

The instance.

**value string required**

The value.

Returns

`RtfStyle` The same instance.

Examples

```csharp
// C# initializer or property    // C# fluent
rtfStyle.Name = value;           rtfStyle.Name(value);
```

`public static RtfStyle NextStyleId(RtfStyle rtfStyle, int? value)` [#](#method-nextstyleid-officeimo-rtf-rtfstyle-nullable-system-int32)

Sets [RtfStyle.NextStyleId](/api/rtf/officeimo-rtf-rtfstyle/): Optional next paragraph style id.

Parameters

**rtfStyle OfficeIMO.Rtf.RtfStyle required**

The instance.

**value int? required**

The value.

Returns

`RtfStyle` The same instance.

Examples

```csharp
// C# initializer or property    // C# fluent
rtfStyle.NextStyleId = value;    rtfStyle.NextStyleId(value);
```

`public static RtfStyle OutlineLevel(RtfStyle rtfStyle, int? value)` [#](#method-outlinelevel-officeimo-rtf-rtfstyle-nullable-system-int32)

Sets [RtfStyle.OutlineLevel](/api/rtf/officeimo-rtf-rtfstyle/): Optional paragraph outline level carried by the stylesheet entry.

Parameters

**rtfStyle OfficeIMO.Rtf.RtfStyle required**

The instance.

**value int? required**

The value.

Returns

`RtfStyle` The same instance.

Examples

```csharp
// C# initializer or property     // C# fluent
rtfStyle.OutlineLevel = value;    rtfStyle.OutlineLevel(value);
```

`public static RtfStyle PageBreakBefore(RtfStyle rtfStyle, bool? value = true)` [#](#method-pagebreakbefore-officeimo-rtf-rtfstyle-nullable-system-boolean)

Sets [RtfStyle.PageBreakBefore](/api/rtf/officeimo-rtf-rtfstyle/): Optional page-break-before setting carried by the stylesheet entry.

Parameters

**rtfStyle OfficeIMO.Rtf.RtfStyle required**

The instance.

**value bool? = true optional**

The value; true when omitted.

Returns

`RtfStyle` The same instance.

Examples

```csharp
// C# initializer or property        // C# fluent
rtfStyle.PageBreakBefore = value;    rtfStyle.PageBreakBefore(value);
```

`public static RtfStyle ParagraphAlignment(RtfStyle rtfStyle, RtfTextAlignment? value)` [#](#method-paragraphalignment-officeimo-rtf-rtfstyle-nullable-officeimo-rtf-rtftextalignment)

Sets [RtfStyle.ParagraphAlignment](/api/rtf/officeimo-rtf-rtfstyle/): Optional direct paragraph alignment carried by the stylesheet entry.

Parameters

**rtfStyle OfficeIMO.Rtf.RtfStyle required**

The instance.

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

The value.

Returns

`RtfStyle` The same instance.

Examples

```csharp
// C# initializer or property           // C# fluent
rtfStyle.ParagraphAlignment = value;    rtfStyle.ParagraphAlignment(value);
```

`public static RtfStyle ParagraphDirection(RtfStyle rtfStyle, RtfTextDirection? value)` [#](#method-paragraphdirection-officeimo-rtf-rtfstyle-nullable-officeimo-rtf-rtftextdirection)

Sets [RtfStyle.ParagraphDirection](/api/rtf/officeimo-rtf-rtfstyle/): Optional direct paragraph text direction carried by the stylesheet entry.

Parameters

**rtfStyle OfficeIMO.Rtf.RtfStyle required**

The instance.

**value OfficeIMO.Rtf.RtfTextDirection? required**

The value.

Returns

`RtfStyle` The same instance.

Examples

```csharp
// C# initializer or property           // C# fluent
rtfStyle.ParagraphDirection = value;    rtfStyle.ParagraphDirection(value);
```

`public static RtfStyle Personal(RtfStyle rtfStyle, bool value = true)` [#](#method-personal-officeimo-rtf-rtfstyle-boolean)

Sets [RtfStyle.Personal](/api/rtf/officeimo-rtf-rtfstyle/): Whether this style is marked as a personal e-mail style.

Parameters

**rtfStyle OfficeIMO.Rtf.RtfStyle required**

The instance.

**value bool = true optional**

The value; true when omitted.

Returns

`RtfStyle` The same instance.

Examples

```csharp
// C# initializer or property    // C# fluent
rtfStyle.Personal = value;       rtfStyle.Personal(value);
```

`public static RtfStyle Priority(RtfStyle rtfStyle, int? value)` [#](#method-priority-officeimo-rtf-rtfstyle-nullable-system-int32)

Sets [RtfStyle.Priority](/api/rtf/officeimo-rtf-rtfstyle/): Optional style priority.

Parameters

**rtfStyle OfficeIMO.Rtf.RtfStyle required**

The instance.

**value int? required**

The value.

Returns

`RtfStyle` The same instance.

Examples

```csharp
// C# initializer or property    // C# fluent
rtfStyle.Priority = value;       rtfStyle.Priority(value);
```

`public static RtfStyle QuickFormat(RtfStyle rtfStyle, bool value = true)` [#](#method-quickformat-officeimo-rtf-rtfstyle-boolean)

Sets [RtfStyle.QuickFormat](/api/rtf/officeimo-rtf-rtfstyle/): Whether this style appears in quick style galleries.

Parameters

**rtfStyle OfficeIMO.Rtf.RtfStyle required**

The instance.

**value bool = true optional**

The value; true when omitted.

Returns

`RtfStyle` The same instance.

Examples

```csharp
// C# initializer or property    // C# fluent
rtfStyle.QuickFormat = value;    rtfStyle.QuickFormat(value);
```

`public static RtfStyle Reply(RtfStyle rtfStyle, bool value = true)` [#](#method-reply-officeimo-rtf-rtfstyle-boolean)

Sets [RtfStyle.Reply](/api/rtf/officeimo-rtf-rtfstyle/): Whether this style is marked as an e-mail reply style.

Parameters

**rtfStyle OfficeIMO.Rtf.RtfStyle required**

The instance.

**value bool = true optional**

The value; true when omitted.

Returns

`RtfStyle` The same instance.

Examples

```csharp
// C# initializer or property    // C# fluent
rtfStyle.Reply = value;          rtfStyle.Reply(value);
```

`public static RtfStyle RevisionSaveId(RtfStyle rtfStyle, int? value)` [#](#method-revisionsaveid-officeimo-rtf-rtfstyle-nullable-system-int32)

Sets [RtfStyle.RevisionSaveId](/api/rtf/officeimo-rtf-rtfstyle/): Optional style revision save id.

Parameters

**rtfStyle OfficeIMO.Rtf.RtfStyle required**

The instance.

**value int? required**

The value.

Returns

`RtfStyle` The same instance.

Examples

```csharp
// C# initializer or property       // C# fluent
rtfStyle.RevisionSaveId = value;    rtfStyle.RevisionSaveId(value);
```

`public static RtfStyle RightBorder(RtfStyle rtfStyle, Action<RtfParagraphBorder> configure)` [#](#method-rightborder-officeimo-rtf-rtfstyle-action-officeimo-rtf-rtfparagraphborder)

Configures [RtfStyle.RightBorder](/api/rtf/officeimo-rtf-rtfstyle/) in place: Right paragraph border carried by the stylesheet entry.

Parameters

**rtfStyle OfficeIMO.Rtf.RtfStyle required**

The instance.

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

Configures the value.

Returns

`RtfStyle` The same instance.

`public static RtfStyle RightIndentTwips(RtfStyle rtfStyle, int? value)` [#](#method-rightindenttwips-officeimo-rtf-rtfstyle-nullable-system-int32)

Sets [RtfStyle.RightIndentTwips](/api/rtf/officeimo-rtf-rtfstyle/): Optional right paragraph indentation in twips carried by the stylesheet entry.

Parameters

**rtfStyle OfficeIMO.Rtf.RtfStyle required**

The instance.

**value int? required**

The value.

Returns

`RtfStyle` The same instance.

Examples

```csharp
// C# initializer or property         // C# fluent
rtfStyle.RightIndentTwips = value;    rtfStyle.RightIndentTwips(value);
```

`public static RtfStyle SemiHidden(RtfStyle rtfStyle, bool value = true)` [#](#method-semihidden-officeimo-rtf-rtfstyle-boolean)

Sets [RtfStyle.SemiHidden](/api/rtf/officeimo-rtf-rtfstyle/): Whether this style is semi-hidden.

Parameters

**rtfStyle OfficeIMO.Rtf.RtfStyle required**

The instance.

**value bool = true optional**

The value; true when omitted.

Returns

`RtfStyle` The same instance.

Examples

```csharp
// C# initializer or property    // C# fluent
rtfStyle.SemiHidden = value;     rtfStyle.SemiHidden(value);
```

`public static RtfStyle ShadingForegroundColorIndex(RtfStyle rtfStyle, int? value)` [#](#method-shadingforegroundcolorindex-officeimo-rtf-rtfstyle-nullable-system-int32)

Sets [RtfStyle.ShadingForegroundColorIndex](/api/rtf/officeimo-rtf-rtfstyle/): Optional paragraph pattern foreground color table index carried by the stylesheet entry.

Parameters

**rtfStyle OfficeIMO.Rtf.RtfStyle required**

The instance.

**value int? required**

The value.

Returns

`RtfStyle` The same instance.

Examples

```csharp
// C# initializer or property                    // C# fluent
rtfStyle.ShadingForegroundColorIndex = value;    rtfStyle.ShadingForegroundColorIndex(value);
```

`public static RtfStyle ShadingPattern(RtfStyle rtfStyle, RtfShadingPattern value)` [#](#method-shadingpattern-officeimo-rtf-rtfstyle-officeimo-rtf-rtfshadingpattern)

Sets [RtfStyle.ShadingPattern](/api/rtf/officeimo-rtf-rtfstyle/): Optional paragraph shading pattern carried by the stylesheet entry.

Parameters

**rtfStyle OfficeIMO.Rtf.RtfStyle required**

The instance.

**value OfficeIMO.Rtf.RtfShadingPattern required**

The value.

Returns

`RtfStyle` The same instance.

Examples

```csharp
// C# initializer or property       // C# fluent
rtfStyle.ShadingPattern = value;    rtfStyle.ShadingPattern(value);
```

`public static RtfStyle ShadingPatternPercent(RtfStyle rtfStyle, int? value)` [#](#method-shadingpatternpercent-officeimo-rtf-rtfstyle-nullable-system-int32)

Sets [RtfStyle.ShadingPatternPercent](/api/rtf/officeimo-rtf-rtfstyle/): Optional raw paragraph shading percentage carried by the stylesheet entry.

Parameters

**rtfStyle OfficeIMO.Rtf.RtfStyle required**

The instance.

**value int? required**

The value.

Returns

`RtfStyle` The same instance.

Examples

```csharp
// C# initializer or property              // C# fluent
rtfStyle.ShadingPatternPercent = value;    rtfStyle.ShadingPatternPercent(value);
```

`public static RtfStyle SnapToLineGrid(RtfStyle rtfStyle, bool? value = true)` [#](#method-snaptolinegrid-officeimo-rtf-rtfstyle-nullable-system-boolean)

Sets [RtfStyle.SnapToLineGrid](/api/rtf/officeimo-rtf-rtfstyle/): Optional snap-to-line-grid setting carried by the stylesheet entry.

Parameters

**rtfStyle OfficeIMO.Rtf.RtfStyle required**

The instance.

**value bool? = true optional**

The value; true when omitted.

Returns

`RtfStyle` The same instance.

Examples

```csharp
// C# initializer or property       // C# fluent
rtfStyle.SnapToLineGrid = value;    rtfStyle.SnapToLineGrid(value);
```

`public static RtfStyle SpaceAfterAuto(RtfStyle rtfStyle, bool? value = true)` [#](#method-spaceafterauto-officeimo-rtf-rtfstyle-nullable-system-boolean)

Sets [RtfStyle.SpaceAfterAuto](/api/rtf/officeimo-rtf-rtfstyle/): Optional automatic space-after setting carried by the stylesheet entry.

Parameters

**rtfStyle OfficeIMO.Rtf.RtfStyle required**

The instance.

**value bool? = true optional**

The value; true when omitted.

Returns

`RtfStyle` The same instance.

Examples

```csharp
// C# initializer or property       // C# fluent
rtfStyle.SpaceAfterAuto = value;    rtfStyle.SpaceAfterAuto(value);
```

`public static RtfStyle SpaceAfterTwips(RtfStyle rtfStyle, int? value)` [#](#method-spaceaftertwips-officeimo-rtf-rtfstyle-nullable-system-int32)

Sets [RtfStyle.SpaceAfterTwips](/api/rtf/officeimo-rtf-rtfstyle/): Optional space after paragraph in twips carried by the stylesheet entry.

Parameters

**rtfStyle OfficeIMO.Rtf.RtfStyle required**

The instance.

**value int? required**

The value.

Returns

`RtfStyle` The same instance.

Examples

```csharp
// C# initializer or property        // C# fluent
rtfStyle.SpaceAfterTwips = value;    rtfStyle.SpaceAfterTwips(value);
```

`public static RtfStyle SpaceBeforeAuto(RtfStyle rtfStyle, bool? value = true)` [#](#method-spacebeforeauto-officeimo-rtf-rtfstyle-nullable-system-boolean)

Sets [RtfStyle.SpaceBeforeAuto](/api/rtf/officeimo-rtf-rtfstyle/): Optional automatic space-before setting carried by the stylesheet entry.

Parameters

**rtfStyle OfficeIMO.Rtf.RtfStyle required**

The instance.

**value bool? = true optional**

The value; true when omitted.

Returns

`RtfStyle` The same instance.

Examples

```csharp
// C# initializer or property        // C# fluent
rtfStyle.SpaceBeforeAuto = value;    rtfStyle.SpaceBeforeAuto(value);
```

`public static RtfStyle SpaceBeforeTwips(RtfStyle rtfStyle, int? value)` [#](#method-spacebeforetwips-officeimo-rtf-rtfstyle-nullable-system-int32)

Sets [RtfStyle.SpaceBeforeTwips](/api/rtf/officeimo-rtf-rtfstyle/): Optional space before paragraph in twips carried by the stylesheet entry.

Parameters

**rtfStyle OfficeIMO.Rtf.RtfStyle required**

The instance.

**value int? required**

The value.

Returns

`RtfStyle` The same instance.

Examples

```csharp
// C# initializer or property         // C# fluent
rtfStyle.SpaceBeforeTwips = value;    rtfStyle.SpaceBeforeTwips(value);
```

`public static RtfStyle SuppressLineNumbers(RtfStyle rtfStyle, bool? value = true)` [#](#method-suppresslinenumbers-officeimo-rtf-rtfstyle-nullable-system-boolean)

Sets [RtfStyle.SuppressLineNumbers](/api/rtf/officeimo-rtf-rtfstyle/): Optional line-number suppression setting carried by the stylesheet entry.

Parameters

**rtfStyle OfficeIMO.Rtf.RtfStyle required**

The instance.

**value bool? = true optional**

The value; true when omitted.

Returns

`RtfStyle` The same instance.

Examples

```csharp
// C# initializer or property            // C# fluent
rtfStyle.SuppressLineNumbers = value;    rtfStyle.SuppressLineNumbers(value);
```

`public static RtfStyle TableRowFormat(RtfStyle rtfStyle, Action<RtfTableRow> configure)` [#](#method-tablerowformat-officeimo-rtf-rtfstyle-action-officeimo-rtf-rtftablerow)

Configures [RtfStyle.TableRowFormat](/api/rtf/officeimo-rtf-rtfstyle/) in place: Table row and cell formatting carried by a table stylesheet entry.

Parameters

**rtfStyle OfficeIMO.Rtf.RtfStyle required**

The instance.

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

Configures the value.

Returns

`RtfStyle` The same instance.

`public static RtfStyle TextHidden(RtfStyle rtfStyle, bool? value = true)` [#](#method-texthidden-officeimo-rtf-rtfstyle-nullable-system-boolean)

Sets [RtfStyle.TextHidden](/api/rtf/officeimo-rtf-rtfstyle/): Optional hidden-text formatting represented by \v. This is separate from style-list visibility.

Parameters

**rtfStyle OfficeIMO.Rtf.RtfStyle required**

The instance.

**value bool? = true optional**

The value; true when omitted.

Returns

`RtfStyle` The same instance.

Examples

```csharp
// C# initializer or property    // C# fluent
rtfStyle.TextHidden = value;     rtfStyle.TextHidden(value);
```

`public static RtfStyle TopBorder(RtfStyle rtfStyle, Action<RtfParagraphBorder> configure)` [#](#method-topborder-officeimo-rtf-rtfstyle-action-officeimo-rtf-rtfparagraphborder)

Configures [RtfStyle.TopBorder](/api/rtf/officeimo-rtf-rtfstyle/) in place: Top paragraph border carried by the stylesheet entry.

Parameters

**rtfStyle OfficeIMO.Rtf.RtfStyle required**

The instance.

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

Configures the value.

Returns

`RtfStyle` The same instance.

`public static RtfStyle UnderlineStyle(RtfStyle rtfStyle, RtfUnderlineStyle? value)` [#](#method-underlinestyle-officeimo-rtf-rtfstyle-nullable-officeimo-rtf-rtfunderlinestyle)

Sets [RtfStyle.UnderlineStyle](/api/rtf/officeimo-rtf-rtfstyle/): Optional direct underline setting carried by the stylesheet entry.

Parameters

**rtfStyle OfficeIMO.Rtf.RtfStyle required**

The instance.

**value OfficeIMO.Rtf.RtfUnderlineStyle? required**

The value.

Returns

`RtfStyle` The same instance.

Examples

```csharp
// C# initializer or property       // C# fluent
rtfStyle.UnderlineStyle = value;    rtfStyle.UnderlineStyle(value);
```

`public static RtfStyle UnhideWhenUsed(RtfStyle rtfStyle, bool value = true)` [#](#method-unhidewhenused-officeimo-rtf-rtfstyle-boolean)

Sets [RtfStyle.UnhideWhenUsed](/api/rtf/officeimo-rtf-rtfstyle/): Whether this style is unhidden after use.

Parameters

**rtfStyle OfficeIMO.Rtf.RtfStyle required**

The instance.

**value bool = true optional**

The value; true when omitted.

Returns

`RtfStyle` The same instance.

Examples

```csharp
// C# initializer or property       // C# fluent
rtfStyle.UnhideWhenUsed = value;    rtfStyle.UnhideWhenUsed(value);
```

`public static RtfStyle WidowControl(RtfStyle rtfStyle, bool? value = true)` [#](#method-widowcontrol-officeimo-rtf-rtfstyle-nullable-system-boolean)

Sets [RtfStyle.WidowControl](/api/rtf/officeimo-rtf-rtfstyle/): Optional widow/orphan control setting carried by the stylesheet entry.

Parameters

**rtfStyle OfficeIMO.Rtf.RtfStyle required**

The instance.

**value bool? = true optional**

The value; true when omitted.

Returns

`RtfStyle` The same instance.

Examples

```csharp
// C# initializer or property     // C# fluent
rtfStyle.WidowControl = value;    rtfStyle.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:2C34971699172E19930890460D404DC62CBD3B87655A2E6058B2CB5B89B335BA -->
