Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

RtfRunFluent

OfficeIMO.Rtf

Namespace
OfficeIMO.Rtf
Assembly
OfficeIMO.Rtf
Modifiers
static

The fluent methods of RtfRun, 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
  • RtfRunFluent

Methods

public static RtfRun Baseline(RtfRun rtfRun) #

Resets the run to normal baseline text.

Parameters

rtfRun OfficeIMO.Rtf.RtfRun required
The instance.

Returns

RtfRun The same instance.
public static RtfRun Bold(RtfRun rtfRun, bool value = true) #

Enables bold formatting.

Parameters

rtfRun OfficeIMO.Rtf.RtfRun required
The instance.
value bool = true optional
The value.

Returns

RtfRun The same instance.
public static RtfRun CapsStyle(RtfRun rtfRun, RtfCapsStyle capsStyle) #

Sets the run capitalization effect.

Parameters

rtfRun OfficeIMO.Rtf.RtfRun required
The instance.
capsStyle OfficeIMO.Rtf.RtfCapsStyle required
The value.

Returns

RtfRun The same instance.
public static RtfRun CharacterBackgroundColor(RtfRun rtfRun, int? colorIndex) #

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

Parameters

rtfRun OfficeIMO.Rtf.RtfRun required
The instance.
colorIndex int? required
The value.

Returns

RtfRun The same instance.
public static RtfRun CharacterBackgroundColorIndex(RtfRun rtfRun, int? value) #

Sets RtfRun.CharacterBackgroundColorIndex: One-based color table index used by character background shading.

Parameters

rtfRun OfficeIMO.Rtf.RtfRun required
The instance.
value int? required
The value.

Returns

RtfRun The same instance.

Examples

// C# initializer or property                    // C# fluent
rtfRun.CharacterBackgroundColorIndex = value;    rtfRun.CharacterBackgroundColorIndex(value);
CharacterBorder 2 overloads
public static RtfRun CharacterBorder(RtfRun rtfRun, RtfParagraphBorderStyle style, int? width = null, int? colorIndex = null) #

Sets the character border formatting.

Parameters

rtfRun OfficeIMO.Rtf.RtfRun required
The instance.
style OfficeIMO.Rtf.RtfParagraphBorderStyle required
The value.
width int? = null optional
The value.
colorIndex int? = null optional
The value.

Returns

RtfRun The same instance.
public static RtfRun CharacterBorder(RtfRun rtfRun, Action<RtfCharacterBorder> configure) #

Configures RtfRun.CharacterBorder in place: Character border metadata represented by \chbrdr and following border controls.

Parameters

rtfRun OfficeIMO.Rtf.RtfRun required
The instance.
configure System.Action<OfficeIMO.Rtf.RtfCharacterBorder> required
Configures the value.

Returns

RtfRun The same instance.
CharacterOffsetHalfPoints 2 overloads
public static RtfRun CharacterOffsetHalfPoints(RtfRun rtfRun, int halfPoints) #

Sets signed baseline offset in half-points.

Parameters

rtfRun OfficeIMO.Rtf.RtfRun required
The instance.
halfPoints int required
The value.

Returns

RtfRun The same instance.
public static RtfRun CharacterOffsetHalfPoints(RtfRun rtfRun, int? value) #

Sets RtfRun.CharacterOffsetHalfPoints: Optional signed baseline offset in half-points. Positive values raise text and negative values lower it.

Parameters

rtfRun OfficeIMO.Rtf.RtfRun required
The instance.
value int? required
The value.

Returns

RtfRun The same instance.

Examples

// C# initializer or property                // C# fluent
rtfRun.CharacterOffsetHalfPoints = value;    rtfRun.CharacterOffsetHalfPoints(value);
public static RtfRun CharacterRevisionSaveId(RtfRun rtfRun, int? value) #

Sets RtfRun.CharacterRevisionSaveId: Character revision save identifier represented by \charrsid.

Parameters

rtfRun OfficeIMO.Rtf.RtfRun required
The instance.
value int? required
The value.

Returns

RtfRun The same instance.

Examples

// C# initializer or property              // C# fluent
rtfRun.CharacterRevisionSaveId = value;    rtfRun.CharacterRevisionSaveId(value);
public static RtfRun CharacterScale(RtfRun rtfRun, int percent) #

Sets character scale percentage.

Parameters

rtfRun OfficeIMO.Rtf.RtfRun required
The instance.
percent int required
The value.

Returns

RtfRun The same instance.
public static RtfRun CharacterScalePercent(RtfRun rtfRun, int? value) #

Sets RtfRun.CharacterScalePercent: Optional character scale percentage. A null value uses the document default of 100 percent.

Parameters

rtfRun OfficeIMO.Rtf.RtfRun required
The instance.
value int? required
The value.

Returns

RtfRun The same instance.

Examples

// C# initializer or property            // C# fluent
rtfRun.CharacterScalePercent = value;    rtfRun.CharacterScalePercent(value);
public static RtfRun CharacterShading(RtfRun rtfRun, int? backgroundColorIndex, int? foregroundColorIndex = null, int? patternPercent = null, RtfShadingPattern pattern = None) #

Sets character shading color and pattern metadata.

Parameters

rtfRun OfficeIMO.Rtf.RtfRun 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

RtfRun The same instance.
public static RtfRun CharacterShadingForegroundColorIndex(RtfRun rtfRun, int? value) #

Sets RtfRun.CharacterShadingForegroundColorIndex: One-based color table index used by character pattern foreground shading.

Parameters

rtfRun OfficeIMO.Rtf.RtfRun required
The instance.
value int? required
The value.

Returns

RtfRun The same instance.

Examples

// C# initializer or property                           // C# fluent
rtfRun.CharacterShadingForegroundColorIndex = value;    rtfRun.CharacterShadingForegroundColorIndex(value);
public static RtfRun CharacterShadingPattern(RtfRun rtfRun, RtfShadingPattern value) #

Sets RtfRun.CharacterShadingPattern: Named RTF character shading pattern.

Parameters

rtfRun OfficeIMO.Rtf.RtfRun required
The instance.
value OfficeIMO.Rtf.RtfShadingPattern required
The value.

Returns

RtfRun The same instance.

Examples

// C# initializer or property              // C# fluent
rtfRun.CharacterShadingPattern = value;    rtfRun.CharacterShadingPattern(value);
public static RtfRun CharacterShadingPatternPercent(RtfRun rtfRun, int? value) #

Sets RtfRun.CharacterShadingPatternPercent: Raw RTF \chshdng value, where 10000 represents 100 percent.

Parameters

rtfRun OfficeIMO.Rtf.RtfRun required
The instance.
value int? required
The value.

Returns

RtfRun The same instance.

Examples

// C# initializer or property                     // C# fluent
rtfRun.CharacterShadingPatternPercent = value;    rtfRun.CharacterShadingPatternPercent(value);
CharacterSpacingTwips 2 overloads
public static RtfRun CharacterSpacingTwips(RtfRun rtfRun, int spacingTwips) #

Sets character spacing in twips.

Parameters

rtfRun OfficeIMO.Rtf.RtfRun required
The instance.
spacingTwips int required
The value.

Returns

RtfRun The same instance.
public static RtfRun CharacterSpacingTwips(RtfRun rtfRun, int? value) #

Sets RtfRun.CharacterSpacingTwips: Optional character spacing in twips. Positive values expand text and negative values condense it.

Parameters

rtfRun OfficeIMO.Rtf.RtfRun required
The instance.
value int? required
The value.

Returns

RtfRun The same instance.

Examples

// C# initializer or property            // C# fluent
rtfRun.CharacterSpacingTwips = value;    rtfRun.CharacterSpacingTwips(value);
public static RtfRun DeletedRevision(RtfRun rtfRun, int? authorIndex = null, int? timestampValue = null) #

Marks the run as tracked deleted text.

Parameters

rtfRun OfficeIMO.Rtf.RtfRun required
The instance.
authorIndex int? = null optional
The value.
timestampValue int? = null optional
The value.

Returns

RtfRun The same instance.
public static RtfRun DeletionRevisionSaveId(RtfRun rtfRun, int? value) #

Sets RtfRun.DeletionRevisionSaveId: Deletion revision save identifier represented by \delrsid.

Parameters

rtfRun OfficeIMO.Rtf.RtfRun required
The instance.
value int? required
The value.

Returns

RtfRun The same instance.

Examples

// C# initializer or property             // C# fluent
rtfRun.DeletionRevisionSaveId = value;    rtfRun.DeletionRevisionSaveId(value);
public static RtfRun DirectBold(RtfRun rtfRun, bool? value = true) #

Sets RtfRun.DirectBold: Authored Bold override. Null inherits from the selected style; an explicit default clears that style value.

Parameters

rtfRun OfficeIMO.Rtf.RtfRun required
The instance.
value bool? = true optional
The value; true when omitted.

Returns

RtfRun The same instance.

Examples

// C# initializer or property    // C# fluent
rtfRun.DirectBold = value;       rtfRun.DirectBold(value);
public static RtfRun DirectHidden(RtfRun rtfRun, bool? value = true) #

Sets RtfRun.DirectHidden: Authored hidden-text override. Null inherits; false makes text visible beneath a hidden-text style.

Parameters

rtfRun OfficeIMO.Rtf.RtfRun required
The instance.
value bool? = true optional
The value; true when omitted.

Returns

RtfRun The same instance.

Examples

// C# initializer or property    // C# fluent
rtfRun.DirectHidden = value;     rtfRun.DirectHidden(value);
public static RtfRun Direction(RtfRun rtfRun, RtfTextDirection? direction) #

Sets explicit run text direction.

Parameters

rtfRun OfficeIMO.Rtf.RtfRun required
The instance.
direction OfficeIMO.Rtf.RtfTextDirection? required
The value.

Returns

RtfRun The same instance.
public static RtfRun DirectItalic(RtfRun rtfRun, bool? value = true) #

Sets RtfRun.DirectItalic: Authored Italic override. Null inherits from the selected style; an explicit default clears that style value.

Parameters

rtfRun OfficeIMO.Rtf.RtfRun required
The instance.
value bool? = true optional
The value; true when omitted.

Returns

RtfRun The same instance.

Examples

// C# initializer or property    // C# fluent
rtfRun.DirectItalic = value;     rtfRun.DirectItalic(value);
public static RtfRun DirectUnderlineStyle(RtfRun rtfRun, RtfUnderlineStyle? value) #

Sets RtfRun.DirectUnderlineStyle: Authored UnderlineStyle override. Null inherits from the selected style; an explicit default clears that style value.

Parameters

rtfRun OfficeIMO.Rtf.RtfRun required
The instance.
value OfficeIMO.Rtf.RtfUnderlineStyle? required
The value.

Returns

RtfRun The same instance.

Examples

// C# initializer or property           // C# fluent
rtfRun.DirectUnderlineStyle = value;    rtfRun.DirectUnderlineStyle(value);
public static RtfRun DoubleStrikethrough(RtfRun rtfRun, bool value = true) #

Enables double strike-through formatting.

Parameters

rtfRun OfficeIMO.Rtf.RtfRun required
The instance.
value bool = true optional
The value.

Returns

RtfRun The same instance.
public static RtfRun Emboss(RtfRun rtfRun, bool value = true) #

Enables embossed text formatting.

Parameters

rtfRun OfficeIMO.Rtf.RtfRun required
The instance.
value bool = true optional
The value.

Returns

RtfRun The same instance.
public static RtfRun FontId(RtfRun rtfRun, int? value) #

Sets RtfRun.FontId: Optional font id.

Parameters

rtfRun OfficeIMO.Rtf.RtfRun required
The instance.
value int? required
The value.

Returns

RtfRun The same instance.

Examples

// C# initializer or property    // C# fluent
rtfRun.FontId = value;           rtfRun.FontId(value);
FontSize 2 overloads
public static RtfRun FontSize(RtfRun rtfRun, double points) #

Sets the run font size in points.

Parameters

rtfRun OfficeIMO.Rtf.RtfRun required
The instance.
points double required
The value.

Returns

RtfRun The same instance.
public static RtfRun FontSize(RtfRun rtfRun, double? value) #

Sets RtfRun.FontSize: Optional font size in points.

Parameters

rtfRun OfficeIMO.Rtf.RtfRun required
The instance.
value double? required
The value.

Returns

RtfRun The same instance.

Examples

// C# initializer or property    // C# fluent
rtfRun.FontSize = value;         rtfRun.FontSize(value);
public static RtfRun ForegroundColor(RtfRun rtfRun, int colorIndex) #

Sets the foreground color table index.

Parameters

rtfRun OfficeIMO.Rtf.RtfRun required
The instance.
colorIndex int required
The value.

Returns

RtfRun The same instance.
public static RtfRun ForegroundColorIndex(RtfRun rtfRun, int? value) #

Sets RtfRun.ForegroundColorIndex: Optional foreground color index.

Parameters

rtfRun OfficeIMO.Rtf.RtfRun required
The instance.
value int? required
The value.

Returns

RtfRun The same instance.

Examples

// C# initializer or property           // C# fluent
rtfRun.ForegroundColorIndex = value;    rtfRun.ForegroundColorIndex(value);
public static RtfRun Hidden(RtfRun rtfRun, bool value = true) #

Enables hidden text formatting.

Parameters

rtfRun OfficeIMO.Rtf.RtfRun required
The instance.
value bool = true optional
The value.

Returns

RtfRun The same instance.
public static RtfRun HighlightColor(RtfRun rtfRun, int colorIndex) #

Sets the highlight color table index.

Parameters

rtfRun OfficeIMO.Rtf.RtfRun required
The instance.
colorIndex int required
The value.

Returns

RtfRun The same instance.
public static RtfRun HighlightColorIndex(RtfRun rtfRun, int? value) #

Sets RtfRun.HighlightColorIndex: Optional background highlight color index.

Parameters

rtfRun OfficeIMO.Rtf.RtfRun required
The instance.
value int? required
The value.

Returns

RtfRun The same instance.

Examples

// C# initializer or property          // C# fluent
rtfRun.HighlightColorIndex = value;    rtfRun.HighlightColorIndex(value);
public static RtfRun Imprint(RtfRun rtfRun, bool value = true) #

Enables engraved/imprinted text formatting.

Parameters

rtfRun OfficeIMO.Rtf.RtfRun required
The instance.
value bool = true optional
The value.

Returns

RtfRun The same instance.
public static RtfRun InsertedRevision(RtfRun rtfRun, int? authorIndex = null, int? timestampValue = null) #

Marks the run as tracked inserted text.

Parameters

rtfRun OfficeIMO.Rtf.RtfRun required
The instance.
authorIndex int? = null optional
The value.
timestampValue int? = null optional
The value.

Returns

RtfRun The same instance.
public static RtfRun InsertionRevisionSaveId(RtfRun rtfRun, int? value) #

Sets RtfRun.InsertionRevisionSaveId: Insertion revision save identifier represented by \insrsid.

Parameters

rtfRun OfficeIMO.Rtf.RtfRun required
The instance.
value int? required
The value.

Returns

RtfRun The same instance.

Examples

// C# initializer or property              // C# fluent
rtfRun.InsertionRevisionSaveId = value;    rtfRun.InsertionRevisionSaveId(value);
public static RtfRun Italic(RtfRun rtfRun, bool value = true) #

Enables italic formatting.

Parameters

rtfRun OfficeIMO.Rtf.RtfRun required
The instance.
value bool = true optional
The value.

Returns

RtfRun The same instance.
KerningHalfPoints 2 overloads
public static RtfRun KerningHalfPoints(RtfRun rtfRun, int halfPoints) #

Sets the kerning threshold in half-points.

Parameters

rtfRun OfficeIMO.Rtf.RtfRun required
The instance.
halfPoints int required
The value.

Returns

RtfRun The same instance.
public static RtfRun KerningHalfPoints(RtfRun rtfRun, int? value) #

Sets RtfRun.KerningHalfPoints: Optional kerning threshold in half-points.

Parameters

rtfRun OfficeIMO.Rtf.RtfRun required
The instance.
value int? required
The value.

Returns

RtfRun The same instance.

Examples

// C# initializer or property        // C# fluent
rtfRun.KerningHalfPoints = value;    rtfRun.KerningHalfPoints(value);
public static RtfRun Language(RtfRun rtfRun, int languageId) #

Sets the run language LCID.

Parameters

rtfRun OfficeIMO.Rtf.RtfRun required
The instance.
languageId int required
The value.

Returns

RtfRun The same instance.
public static RtfRun LanguageId(RtfRun rtfRun, int? value) #

Sets RtfRun.LanguageId: Optional run language LCID represented by \lang.

Parameters

rtfRun OfficeIMO.Rtf.RtfRun required
The instance.
value int? required
The value.

Returns

RtfRun The same instance.

Examples

// C# initializer or property    // C# fluent
rtfRun.LanguageId = value;       rtfRun.LanguageId(value);
Note 2 overloads
public static RtfRun Note(RtfRun rtfRun, RtfNote note) #

Attaches a footnote or annotation to this run.

Parameters

rtfRun OfficeIMO.Rtf.RtfRun required
The instance.
note OfficeIMO.Rtf.RtfNote required
The value.

Returns

RtfRun The same instance.
public static RtfRun Note(RtfRun rtfRun, Action<RtfNote> configure) #

Configures RtfRun.Note in place: Optional footnote or annotation emitted immediately after this run.

Parameters

rtfRun OfficeIMO.Rtf.RtfRun required
The instance.
configure System.Action<OfficeIMO.Rtf.RtfNote> required
Configures the value.

Returns

RtfRun The same instance.
public static RtfRun Outline(RtfRun rtfRun, bool value = true) #

Enables outline text formatting.

Parameters

rtfRun OfficeIMO.Rtf.RtfRun required
The instance.
value bool = true optional
The value.

Returns

RtfRun The same instance.
public static RtfRun RevisionAuthorIndex(RtfRun rtfRun, int? value) #

Sets RtfRun.RevisionAuthorIndex: Optional zero-based index into the document revision author table.

Parameters

rtfRun OfficeIMO.Rtf.RtfRun required
The instance.
value int? required
The value.

Returns

RtfRun The same instance.

Examples

// C# initializer or property          // C# fluent
rtfRun.RevisionAuthorIndex = value;    rtfRun.RevisionAuthorIndex(value);
public static RtfRun RevisionKind(RtfRun rtfRun, RtfRevisionKind value) #

Sets RtfRun.RevisionKind: Optional tracked revision marker for this run.

Parameters

rtfRun OfficeIMO.Rtf.RtfRun required
The instance.
value OfficeIMO.Rtf.RtfRevisionKind required
The value.

Returns

RtfRun The same instance.

Examples

// C# initializer or property    // C# fluent
rtfRun.RevisionKind = value;     rtfRun.RevisionKind(value);
public static RtfRun RevisionSaveIds(RtfRun rtfRun, int? character = null, int? insertion = null, int? deletion = null) #

Sets run-level revision save identifiers.

Parameters

rtfRun OfficeIMO.Rtf.RtfRun required
The instance.
character int? = null optional
The value.
insertion int? = null optional
The value.
deletion int? = null optional
The value.

Returns

RtfRun The same instance.
public static RtfRun RevisionTimestampValue(RtfRun rtfRun, int? value) #

Sets RtfRun.RevisionTimestampValue: Optional raw RTF DTTM revision timestamp value from \revdttm.

Parameters

rtfRun OfficeIMO.Rtf.RtfRun required
The instance.
value int? required
The value.

Returns

RtfRun The same instance.

Examples

// C# initializer or property             // C# fluent
rtfRun.RevisionTimestampValue = value;    rtfRun.RevisionTimestampValue(value);
public static RtfRun Shadow(RtfRun rtfRun, bool value = true) #

Enables shadow text formatting.

Parameters

rtfRun OfficeIMO.Rtf.RtfRun required
The instance.
value bool = true optional
The value.

Returns

RtfRun The same instance.
public static RtfRun Strikethrough(RtfRun rtfRun, bool value = true) #

Enables strike-through formatting.

Parameters

rtfRun OfficeIMO.Rtf.RtfRun required
The instance.
value bool = true optional
The value.

Returns

RtfRun The same instance.
public static RtfRun Style(RtfRun rtfRun, int styleId) #

Sets the character style id.

Parameters

rtfRun OfficeIMO.Rtf.RtfRun required
The instance.
styleId int required
The value.

Returns

RtfRun The same instance.
public static RtfRun StyleId(RtfRun rtfRun, int? value) #

Sets RtfRun.StyleId: Optional character stylesheet id.

Parameters

rtfRun OfficeIMO.Rtf.RtfRun required
The instance.
value int? required
The value.

Returns

RtfRun The same instance.

Examples

// C# initializer or property    // C# fluent
rtfRun.StyleId = value;          rtfRun.StyleId(value);
public static RtfRun Subscript(RtfRun rtfRun) #

Marks the run as subscript text.

Parameters

rtfRun OfficeIMO.Rtf.RtfRun required
The instance.

Returns

RtfRun The same instance.
public static RtfRun Superscript(RtfRun rtfRun) #

Marks the run as superscript text.

Parameters

rtfRun OfficeIMO.Rtf.RtfRun required
The instance.

Returns

RtfRun The same instance.
public static RtfRun Text(RtfRun rtfRun, string value) #

Sets RtfRun.Text: Run text.

Parameters

rtfRun OfficeIMO.Rtf.RtfRun required
The instance.
value string required
The value.

Returns

RtfRun The same instance.

Examples

// C# initializer or property    // C# fluent
rtfRun.Text = value;             rtfRun.Text(value);
Underline 2 overloads
public static RtfRun Underline(RtfRun rtfRun, bool value = true) #

Enables underline formatting.

Parameters

rtfRun OfficeIMO.Rtf.RtfRun required
The instance.
value bool = true optional
The value.

Returns

RtfRun The same instance.
public static RtfRun Underline(RtfRun rtfRun, RtfUnderlineStyle style) #

Sets underline formatting to the requested RTF underline style.

Parameters

rtfRun OfficeIMO.Rtf.RtfRun required
The instance.
style OfficeIMO.Rtf.RtfUnderlineStyle required
The value.

Returns

RtfRun The same instance.
public static RtfRun UnderlineColor(RtfRun rtfRun, int colorIndex) #

Sets the underline color table index.

Parameters

rtfRun OfficeIMO.Rtf.RtfRun required
The instance.
colorIndex int required
The value.

Returns

RtfRun The same instance.
public static RtfRun UnderlineColorIndex(RtfRun rtfRun, int? value) #

Sets RtfRun.UnderlineColorIndex: Optional underline color table index. A null value uses the document default.

Parameters

rtfRun OfficeIMO.Rtf.RtfRun required
The instance.
value int? required
The value.

Returns

RtfRun The same instance.

Examples

// C# initializer or property          // C# fluent
rtfRun.UnderlineColorIndex = value;    rtfRun.UnderlineColorIndex(value);
public static RtfRun UnderlineStyle(RtfRun rtfRun, RtfUnderlineStyle value) #

Sets RtfRun.UnderlineStyle: Underline style for the run.

Parameters

rtfRun OfficeIMO.Rtf.RtfRun required
The instance.
value OfficeIMO.Rtf.RtfUnderlineStyle required
The value.

Returns

RtfRun The same instance.

Examples

// C# initializer or property     // C# fluent
rtfRun.UnderlineStyle = value;    rtfRun.UnderlineStyle(value);
public static RtfRun UseDefaultCharacterFormatting(RtfRun rtfRun, bool value = true) #

Sets RtfRun.UseDefaultCharacterFormatting: Whether a native plain reset selects document defaults beneath this run's direct and character-style formatting.

Parameters

rtfRun OfficeIMO.Rtf.RtfRun required
The instance.
value bool = true optional
The value; true when omitted.

Returns

RtfRun The same instance.

Examples

// C# initializer or property                    // C# fluent
rtfRun.UseDefaultCharacterFormatting = value;    rtfRun.UseDefaultCharacterFormatting(value);
public static RtfRun VerticalPosition(RtfRun rtfRun, RtfVerticalPosition value) #

Sets RtfRun.VerticalPosition: Optional superscript or subscript positioning.

Parameters

rtfRun OfficeIMO.Rtf.RtfRun required
The instance.
value OfficeIMO.Rtf.RtfVerticalPosition required
The value.

Returns

RtfRun The same instance.

Examples

// C# initializer or property       // C# fluent
rtfRun.VerticalPosition = value;    rtfRun.VerticalPosition(value);