Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

RtfStyleFluent

OfficeIMO.Rtf

Namespace
OfficeIMO.Rtf
Assembly
OfficeIMO.Rtf
Modifiers
static

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, both returning the same instance.

Inheritance

  • object
  • RtfStyleFluent

Methods

public static RtfStyle Additive(RtfStyle rtfStyle, bool value = true) #

Sets RtfStyle.Additive: 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

// C# initializer or property    // C# fluent
rtfStyle.Additive = value;       rtfStyle.Additive(value);
public static RtfStyle AdjustRightIndent(RtfStyle rtfStyle, bool? value = true) #

Sets RtfStyle.AdjustRightIndent: 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

// C# initializer or property          // C# fluent
rtfStyle.AdjustRightIndent = value;    rtfStyle.AdjustRightIndent(value);
public static RtfStyle AutoHyphenation(RtfStyle rtfStyle, bool? value = true) #

Sets RtfStyle.AutoHyphenation: 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

// C# initializer or property        // C# fluent
rtfStyle.AutoHyphenation = value;    rtfStyle.AutoHyphenation(value);
public static RtfStyle AutoUpdate(RtfStyle rtfStyle, bool value = true) #

Sets RtfStyle.AutoUpdate: 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

// C# initializer or property    // C# fluent
rtfStyle.AutoUpdate = value;     rtfStyle.AutoUpdate(value);
public static RtfStyle BackgroundColorIndex(RtfStyle rtfStyle, int? value) #

Sets RtfStyle.BackgroundColorIndex: 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

// C# initializer or property             // C# fluent
rtfStyle.BackgroundColorIndex = value;    rtfStyle.BackgroundColorIndex(value);
public static RtfStyle BasedOnStyleId(RtfStyle rtfStyle, int? value) #

Sets RtfStyle.BasedOnStyleId: Optional base style id.

Parameters

rtfStyle OfficeIMO.Rtf.RtfStyle required
The instance.
value int? required
The value.

Returns

RtfStyle The same instance.

Examples

// C# initializer or property       // C# fluent
rtfStyle.BasedOnStyleId = value;    rtfStyle.BasedOnStyleId(value);
public static RtfStyle Bold(RtfStyle rtfStyle, bool? value = true) #

Sets RtfStyle.Bold: 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

// 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) #

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) #

Configures RtfStyle.BottomBorder 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) #

Sets RtfStyle.Compose: 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

// C# initializer or property    // C# fluent
rtfStyle.Compose = value;        rtfStyle.Compose(value);
public static RtfStyle ContextualSpacing(RtfStyle rtfStyle, bool? value = true) #

Sets RtfStyle.ContextualSpacing: 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

// C# initializer or property          // C# fluent
rtfStyle.ContextualSpacing = value;    rtfStyle.ContextualSpacing(value);
public static RtfStyle FirstLineIndentTwips(RtfStyle rtfStyle, int? value) #

Sets RtfStyle.FirstLineIndentTwips: 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

// C# initializer or property             // C# fluent
rtfStyle.FirstLineIndentTwips = value;    rtfStyle.FirstLineIndentTwips(value);
public static RtfStyle FontId(RtfStyle rtfStyle, int? value) #

Sets RtfStyle.FontId: 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

// C# initializer or property    // C# fluent
rtfStyle.FontId = value;         rtfStyle.FontId(value);
public static RtfStyle FontSize(RtfStyle rtfStyle, double? value) #

Sets RtfStyle.FontSize: 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

// C# initializer or property    // C# fluent
rtfStyle.FontSize = value;       rtfStyle.FontSize(value);
public static RtfStyle ForegroundColorIndex(RtfStyle rtfStyle, int? value) #

Sets RtfStyle.ForegroundColorIndex: 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

// C# initializer or property             // C# fluent
rtfStyle.ForegroundColorIndex = value;    rtfStyle.ForegroundColorIndex(value);
public static RtfStyle Frame(RtfStyle rtfStyle, Action<RtfParagraphFrame> configure) #

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) #

Sets RtfStyle.Hidden: 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

// C# initializer or property    // C# fluent
rtfStyle.Hidden = value;         rtfStyle.Hidden(value);
public static RtfStyle HighlightColorIndex(RtfStyle rtfStyle, int? value) #

Sets RtfStyle.HighlightColorIndex: 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

// C# initializer or property            // C# fluent
rtfStyle.HighlightColorIndex = value;    rtfStyle.HighlightColorIndex(value);
public static RtfStyle Italic(RtfStyle rtfStyle, bool? value = true) #

Sets RtfStyle.Italic: 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

// C# initializer or property    // C# fluent
rtfStyle.Italic = value;         rtfStyle.Italic(value);
public static RtfStyle KeepLinesTogether(RtfStyle rtfStyle, bool? value = true) #

Sets RtfStyle.KeepLinesTogether: 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

// C# initializer or property          // C# fluent
rtfStyle.KeepLinesTogether = value;    rtfStyle.KeepLinesTogether(value);
public static RtfStyle KeepWithNext(RtfStyle rtfStyle, bool? value = true) #

Sets RtfStyle.KeepWithNext: 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

// C# initializer or property     // C# fluent
rtfStyle.KeepWithNext = value;    rtfStyle.KeepWithNext(value);
KeyCode 2 overloads
public static RtfStyle KeyCode(RtfStyle rtfStyle, RtfStyleKeyCode? value) #

Sets RtfStyle.KeyCode: 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

// C# initializer or property    // C# fluent
rtfStyle.KeyCode = value;        rtfStyle.KeyCode(value);
public static RtfStyle KeyCode(RtfStyle rtfStyle, Action<RtfStyleKeyCode> configure) #

Configures RtfStyle.KeyCode 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) #

Sets RtfStyle.Kind: Style kind.

Parameters

rtfStyle OfficeIMO.Rtf.RtfStyle required
The instance.
value OfficeIMO.Rtf.RtfStyleKind required
The value.

Returns

RtfStyle The same instance.

Examples

// C# initializer or property    // C# fluent
rtfStyle.Kind = value;           rtfStyle.Kind(value);
public static RtfStyle LeftBorder(RtfStyle rtfStyle, Action<RtfParagraphBorder> configure) #

Configures RtfStyle.LeftBorder 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) #

Sets RtfStyle.LeftIndentTwips: 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

// C# initializer or property        // C# fluent
rtfStyle.LeftIndentTwips = value;    rtfStyle.LeftIndentTwips(value);
public static RtfStyle LegacyNumbering(RtfStyle rtfStyle, Action<RtfLegacyNumbering> configure) #

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) #

Sets RtfStyle.LineSpacingMultiple: 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

// C# initializer or property            // C# fluent
rtfStyle.LineSpacingMultiple = value;    rtfStyle.LineSpacingMultiple(value);
public static RtfStyle LineSpacingTwips(RtfStyle rtfStyle, int? value) #

Sets RtfStyle.LineSpacingTwips: 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

// C# initializer or property         // C# fluent
rtfStyle.LineSpacingTwips = value;    rtfStyle.LineSpacingTwips(value);
public static RtfStyle LinkedStyleId(RtfStyle rtfStyle, int? value) #

Sets RtfStyle.LinkedStyleId: Optional linked style id.

Parameters

rtfStyle OfficeIMO.Rtf.RtfStyle required
The instance.
value int? required
The value.

Returns

RtfStyle The same instance.

Examples

// C# initializer or property      // C# fluent
rtfStyle.LinkedStyleId = value;    rtfStyle.LinkedStyleId(value);
public static RtfStyle ListId(RtfStyle rtfStyle, int? value) #

Sets RtfStyle.ListId: 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

// C# initializer or property    // C# fluent
rtfStyle.ListId = value;         rtfStyle.ListId(value);
public static RtfStyle ListLevel(RtfStyle rtfStyle, int? value) #

Sets RtfStyle.ListLevel: 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

// C# initializer or property    // C# fluent
rtfStyle.ListLevel = value;      rtfStyle.ListLevel(value);
public static RtfStyle Locked(RtfStyle rtfStyle, bool value = true) #

Sets RtfStyle.Locked: 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

// C# initializer or property    // C# fluent
rtfStyle.Locked = value;         rtfStyle.Locked(value);
public static RtfStyle Name(RtfStyle rtfStyle, string value) #

Sets RtfStyle.Name: Human-readable style name.

Parameters

rtfStyle OfficeIMO.Rtf.RtfStyle required
The instance.
value string required
The value.

Returns

RtfStyle The same instance.

Examples

// C# initializer or property    // C# fluent
rtfStyle.Name = value;           rtfStyle.Name(value);
public static RtfStyle NextStyleId(RtfStyle rtfStyle, int? value) #

Sets RtfStyle.NextStyleId: Optional next paragraph style id.

Parameters

rtfStyle OfficeIMO.Rtf.RtfStyle required
The instance.
value int? required
The value.

Returns

RtfStyle The same instance.

Examples

// C# initializer or property    // C# fluent
rtfStyle.NextStyleId = value;    rtfStyle.NextStyleId(value);
public static RtfStyle OutlineLevel(RtfStyle rtfStyle, int? value) #

Sets RtfStyle.OutlineLevel: 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

// C# initializer or property     // C# fluent
rtfStyle.OutlineLevel = value;    rtfStyle.OutlineLevel(value);
public static RtfStyle PageBreakBefore(RtfStyle rtfStyle, bool? value = true) #

Sets RtfStyle.PageBreakBefore: 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

// C# initializer or property        // C# fluent
rtfStyle.PageBreakBefore = value;    rtfStyle.PageBreakBefore(value);
public static RtfStyle ParagraphAlignment(RtfStyle rtfStyle, RtfTextAlignment? value) #

Sets RtfStyle.ParagraphAlignment: 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

// C# initializer or property           // C# fluent
rtfStyle.ParagraphAlignment = value;    rtfStyle.ParagraphAlignment(value);
public static RtfStyle ParagraphDirection(RtfStyle rtfStyle, RtfTextDirection? value) #

Sets RtfStyle.ParagraphDirection: 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

// C# initializer or property           // C# fluent
rtfStyle.ParagraphDirection = value;    rtfStyle.ParagraphDirection(value);
public static RtfStyle Personal(RtfStyle rtfStyle, bool value = true) #

Sets RtfStyle.Personal: 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

// C# initializer or property    // C# fluent
rtfStyle.Personal = value;       rtfStyle.Personal(value);
public static RtfStyle Priority(RtfStyle rtfStyle, int? value) #

Sets RtfStyle.Priority: Optional style priority.

Parameters

rtfStyle OfficeIMO.Rtf.RtfStyle required
The instance.
value int? required
The value.

Returns

RtfStyle The same instance.

Examples

// C# initializer or property    // C# fluent
rtfStyle.Priority = value;       rtfStyle.Priority(value);
public static RtfStyle QuickFormat(RtfStyle rtfStyle, bool value = true) #

Sets RtfStyle.QuickFormat: 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

// C# initializer or property    // C# fluent
rtfStyle.QuickFormat = value;    rtfStyle.QuickFormat(value);
public static RtfStyle Reply(RtfStyle rtfStyle, bool value = true) #

Sets RtfStyle.Reply: 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

// C# initializer or property    // C# fluent
rtfStyle.Reply = value;          rtfStyle.Reply(value);
public static RtfStyle RevisionSaveId(RtfStyle rtfStyle, int? value) #

Sets RtfStyle.RevisionSaveId: Optional style revision save id.

Parameters

rtfStyle OfficeIMO.Rtf.RtfStyle required
The instance.
value int? required
The value.

Returns

RtfStyle The same instance.

Examples

// C# initializer or property       // C# fluent
rtfStyle.RevisionSaveId = value;    rtfStyle.RevisionSaveId(value);
public static RtfStyle RightBorder(RtfStyle rtfStyle, Action<RtfParagraphBorder> configure) #

Configures RtfStyle.RightBorder 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) #

Sets RtfStyle.RightIndentTwips: 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

// C# initializer or property         // C# fluent
rtfStyle.RightIndentTwips = value;    rtfStyle.RightIndentTwips(value);
public static RtfStyle SemiHidden(RtfStyle rtfStyle, bool value = true) #

Sets RtfStyle.SemiHidden: 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

// C# initializer or property    // C# fluent
rtfStyle.SemiHidden = value;     rtfStyle.SemiHidden(value);
public static RtfStyle ShadingForegroundColorIndex(RtfStyle rtfStyle, int? value) #

Sets RtfStyle.ShadingForegroundColorIndex: 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

// C# initializer or property                    // C# fluent
rtfStyle.ShadingForegroundColorIndex = value;    rtfStyle.ShadingForegroundColorIndex(value);
public static RtfStyle ShadingPattern(RtfStyle rtfStyle, RtfShadingPattern value) #

Sets RtfStyle.ShadingPattern: 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

// C# initializer or property       // C# fluent
rtfStyle.ShadingPattern = value;    rtfStyle.ShadingPattern(value);
public static RtfStyle ShadingPatternPercent(RtfStyle rtfStyle, int? value) #

Sets RtfStyle.ShadingPatternPercent: 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

// C# initializer or property              // C# fluent
rtfStyle.ShadingPatternPercent = value;    rtfStyle.ShadingPatternPercent(value);
public static RtfStyle SnapToLineGrid(RtfStyle rtfStyle, bool? value = true) #

Sets RtfStyle.SnapToLineGrid: 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

// C# initializer or property       // C# fluent
rtfStyle.SnapToLineGrid = value;    rtfStyle.SnapToLineGrid(value);
public static RtfStyle SpaceAfterAuto(RtfStyle rtfStyle, bool? value = true) #

Sets RtfStyle.SpaceAfterAuto: 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

// C# initializer or property       // C# fluent
rtfStyle.SpaceAfterAuto = value;    rtfStyle.SpaceAfterAuto(value);
public static RtfStyle SpaceAfterTwips(RtfStyle rtfStyle, int? value) #

Sets RtfStyle.SpaceAfterTwips: 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

// C# initializer or property        // C# fluent
rtfStyle.SpaceAfterTwips = value;    rtfStyle.SpaceAfterTwips(value);
public static RtfStyle SpaceBeforeAuto(RtfStyle rtfStyle, bool? value = true) #

Sets RtfStyle.SpaceBeforeAuto: 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

// C# initializer or property        // C# fluent
rtfStyle.SpaceBeforeAuto = value;    rtfStyle.SpaceBeforeAuto(value);
public static RtfStyle SpaceBeforeTwips(RtfStyle rtfStyle, int? value) #

Sets RtfStyle.SpaceBeforeTwips: 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

// C# initializer or property         // C# fluent
rtfStyle.SpaceBeforeTwips = value;    rtfStyle.SpaceBeforeTwips(value);
public static RtfStyle SuppressLineNumbers(RtfStyle rtfStyle, bool? value = true) #

Sets RtfStyle.SuppressLineNumbers: 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

// C# initializer or property            // C# fluent
rtfStyle.SuppressLineNumbers = value;    rtfStyle.SuppressLineNumbers(value);
public static RtfStyle TableRowFormat(RtfStyle rtfStyle, Action<RtfTableRow> configure) #

Configures RtfStyle.TableRowFormat 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) #

Sets RtfStyle.TextHidden: 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

// C# initializer or property    // C# fluent
rtfStyle.TextHidden = value;     rtfStyle.TextHidden(value);
public static RtfStyle TopBorder(RtfStyle rtfStyle, Action<RtfParagraphBorder> configure) #

Configures RtfStyle.TopBorder 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) #

Sets RtfStyle.UnderlineStyle: 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

// C# initializer or property       // C# fluent
rtfStyle.UnderlineStyle = value;    rtfStyle.UnderlineStyle(value);
public static RtfStyle UnhideWhenUsed(RtfStyle rtfStyle, bool value = true) #

Sets RtfStyle.UnhideWhenUsed: 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

// C# initializer or property       // C# fluent
rtfStyle.UnhideWhenUsed = value;    rtfStyle.UnhideWhenUsed(value);
public static RtfStyle WidowControl(RtfStyle rtfStyle, bool? value = true) #

Sets RtfStyle.WidowControl: 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

// C# initializer or property     // C# fluent
rtfStyle.WidowControl = value;    rtfStyle.WidowControl(value);