RtfRunFluent
OfficeIMO.Rtf
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
- The instance.
public static RtfRun Bold(RtfRun rtfRun, bool value = true) #Enables bold formatting.
Parameters
- rtfRun OfficeIMO.Rtf.RtfRun
- The instance.
- value bool = true
- The value.
public static RtfRun CapsStyle(RtfRun rtfRun, RtfCapsStyle capsStyle) #Sets the run capitalization effect.
Parameters
- rtfRun OfficeIMO.Rtf.RtfRun
- The instance.
- capsStyle OfficeIMO.Rtf.RtfCapsStyle
- The value.
public static RtfRun CharacterBackgroundColor(RtfRun rtfRun, int? colorIndex) #Sets character background shading to a one-based color table index.
Parameters
- rtfRun OfficeIMO.Rtf.RtfRun
- The instance.
- colorIndex int?
- The value.
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
- The instance.
- value int?
- The value.
Examples
// C# initializer or property // C# fluent
rtfRun.CharacterBackgroundColorIndex = value; rtfRun.CharacterBackgroundColorIndex(value);public static RtfRun CharacterBorder(RtfRun rtfRun, RtfParagraphBorderStyle style, int? width = null, int? colorIndex = null) #Sets the character border formatting.
Parameters
- rtfRun OfficeIMO.Rtf.RtfRun
- The instance.
- style OfficeIMO.Rtf.RtfParagraphBorderStyle
- The value.
- width int? = null
- The value.
- colorIndex int? = null
- The value.
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
- The instance.
- configure System.Action<OfficeIMO.Rtf.RtfCharacterBorder>
- Configures the value.
public static RtfRun CharacterOffsetHalfPoints(RtfRun rtfRun, int halfPoints) #Sets signed baseline offset in half-points.
Parameters
- rtfRun OfficeIMO.Rtf.RtfRun
- The instance.
- halfPoints int
- The value.
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
- The instance.
- value int?
- The value.
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
- The instance.
- value int?
- The value.
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
- The instance.
- percent int
- The value.
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
- The instance.
- value int?
- The value.
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
- The instance.
- backgroundColorIndex int?
- The value.
- foregroundColorIndex int? = null
- The value.
- patternPercent int? = null
- The value.
- pattern OfficeIMO.Rtf.RtfShadingPattern = None
- The value.
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
- The instance.
- value int?
- The value.
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
- The instance.
- value OfficeIMO.Rtf.RtfShadingPattern
- The value.
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
- The instance.
- value int?
- The value.
Examples
// C# initializer or property // C# fluent
rtfRun.CharacterShadingPatternPercent = value; rtfRun.CharacterShadingPatternPercent(value);public static RtfRun CharacterSpacingTwips(RtfRun rtfRun, int spacingTwips) #Sets character spacing in twips.
Parameters
- rtfRun OfficeIMO.Rtf.RtfRun
- The instance.
- spacingTwips int
- The value.
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
- The instance.
- value int?
- The value.
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
- The instance.
- authorIndex int? = null
- The value.
- timestampValue int? = null
- The value.
public static RtfRun DeletionRevisionSaveId(RtfRun rtfRun, int? value) #Sets RtfRun.DeletionRevisionSaveId: Deletion revision save identifier represented by \delrsid.
Parameters
- rtfRun OfficeIMO.Rtf.RtfRun
- The instance.
- value int?
- The value.
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
- The instance.
- value bool? = true
- The value; true when omitted.
Examples
// C# initializer or property // C# fluent
rtfRun.DirectBold = value; rtfRun.DirectBold(value);public static RtfRun Direction(RtfRun rtfRun, RtfTextDirection? direction) #Sets explicit run text direction.
Parameters
- rtfRun OfficeIMO.Rtf.RtfRun
- The instance.
- direction OfficeIMO.Rtf.RtfTextDirection?
- The value.
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
- The instance.
- value bool? = true
- The value; true when omitted.
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
- The instance.
- value OfficeIMO.Rtf.RtfUnderlineStyle?
- The value.
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
- The instance.
- value bool = true
- The value.
public static RtfRun Emboss(RtfRun rtfRun, bool value = true) #Enables embossed text formatting.
Parameters
- rtfRun OfficeIMO.Rtf.RtfRun
- The instance.
- value bool = true
- The value.
public static RtfRun FontId(RtfRun rtfRun, int? value) #Sets RtfRun.FontId: Optional font id.
Parameters
- rtfRun OfficeIMO.Rtf.RtfRun
- The instance.
- value int?
- The value.
Examples
// C# initializer or property // C# fluent
rtfRun.FontId = value; rtfRun.FontId(value);public static RtfRun FontSize(RtfRun rtfRun, double points) #Sets the run font size in points.
Parameters
- rtfRun OfficeIMO.Rtf.RtfRun
- The instance.
- points double
- The value.
public static RtfRun FontSize(RtfRun rtfRun, double? value) #Sets RtfRun.FontSize: Optional font size in points.
Parameters
- rtfRun OfficeIMO.Rtf.RtfRun
- The instance.
- value double?
- The value.
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
- The instance.
- colorIndex int
- The value.
public static RtfRun ForegroundColorIndex(RtfRun rtfRun, int? value) #Sets RtfRun.ForegroundColorIndex: Optional foreground color index.
Parameters
- rtfRun OfficeIMO.Rtf.RtfRun
- The instance.
- value int?
- The value.
Examples
// C# initializer or property // C# fluent
rtfRun.ForegroundColorIndex = value; rtfRun.ForegroundColorIndex(value);public static RtfRun HighlightColor(RtfRun rtfRun, int colorIndex) #Sets the highlight color table index.
Parameters
- rtfRun OfficeIMO.Rtf.RtfRun
- The instance.
- colorIndex int
- The value.
public static RtfRun HighlightColorIndex(RtfRun rtfRun, int? value) #Sets RtfRun.HighlightColorIndex: Optional background highlight color index.
Parameters
- rtfRun OfficeIMO.Rtf.RtfRun
- The instance.
- value int?
- The value.
Examples
// C# initializer or property // C# fluent
rtfRun.HighlightColorIndex = value; rtfRun.HighlightColorIndex(value);public static RtfRun Hyperlink(RtfRun rtfRun, Uri uri) #Marks the run as a hyperlink.
Parameters
- rtfRun OfficeIMO.Rtf.RtfRun
- The instance.
- uri System.Uri
- The value.
public static RtfRun Imprint(RtfRun rtfRun, bool value = true) #Enables engraved/imprinted text formatting.
Parameters
- rtfRun OfficeIMO.Rtf.RtfRun
- The instance.
- value bool = true
- The value.
public static RtfRun InsertedRevision(RtfRun rtfRun, int? authorIndex = null, int? timestampValue = null) #Marks the run as tracked inserted text.
Parameters
- rtfRun OfficeIMO.Rtf.RtfRun
- The instance.
- authorIndex int? = null
- The value.
- timestampValue int? = null
- The value.
public static RtfRun InsertionRevisionSaveId(RtfRun rtfRun, int? value) #Sets RtfRun.InsertionRevisionSaveId: Insertion revision save identifier represented by \insrsid.
Parameters
- rtfRun OfficeIMO.Rtf.RtfRun
- The instance.
- value int?
- The value.
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
- The instance.
- value bool = true
- The value.
public static RtfRun KerningHalfPoints(RtfRun rtfRun, int halfPoints) #Sets the kerning threshold in half-points.
Parameters
- rtfRun OfficeIMO.Rtf.RtfRun
- The instance.
- halfPoints int
- The value.
public static RtfRun KerningHalfPoints(RtfRun rtfRun, int? value) #Sets RtfRun.KerningHalfPoints: Optional kerning threshold in half-points.
Parameters
- rtfRun OfficeIMO.Rtf.RtfRun
- The instance.
- value int?
- The value.
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
- The instance.
- languageId int
- The value.
public static RtfRun LanguageId(RtfRun rtfRun, int? value) #Sets RtfRun.LanguageId: Optional run language LCID represented by \lang.
Parameters
- rtfRun OfficeIMO.Rtf.RtfRun
- The instance.
- value int?
- The value.
Examples
// C# initializer or property // C# fluent
rtfRun.LanguageId = value; rtfRun.LanguageId(value);public static RtfRun Note(RtfRun rtfRun, RtfNote note) #Attaches a footnote or annotation to this run.
Parameters
- rtfRun OfficeIMO.Rtf.RtfRun
- The instance.
- note OfficeIMO.Rtf.RtfNote
- The value.
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
- The instance.
- configure System.Action<OfficeIMO.Rtf.RtfNote>
- Configures the value.
public static RtfRun Outline(RtfRun rtfRun, bool value = true) #Enables outline text formatting.
Parameters
- rtfRun OfficeIMO.Rtf.RtfRun
- The instance.
- value bool = true
- The value.
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
- The instance.
- value int?
- The value.
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
- The instance.
- value OfficeIMO.Rtf.RtfRevisionKind
- The value.
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
- The instance.
- character int? = null
- The value.
- insertion int? = null
- The value.
- deletion int? = null
- The value.
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
- The instance.
- value int?
- The value.
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
- The instance.
- value bool = true
- The value.
public static RtfRun Strikethrough(RtfRun rtfRun, bool value = true) #Enables strike-through formatting.
Parameters
- rtfRun OfficeIMO.Rtf.RtfRun
- The instance.
- value bool = true
- The value.
public static RtfRun Style(RtfRun rtfRun, int styleId) #Sets the character style id.
Parameters
- rtfRun OfficeIMO.Rtf.RtfRun
- The instance.
- styleId int
- The value.
public static RtfRun StyleId(RtfRun rtfRun, int? value) #Sets RtfRun.StyleId: Optional character stylesheet id.
Parameters
- rtfRun OfficeIMO.Rtf.RtfRun
- The instance.
- value int?
- The value.
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
- The instance.
public static RtfRun Superscript(RtfRun rtfRun) #Marks the run as superscript text.
Parameters
- rtfRun OfficeIMO.Rtf.RtfRun
- The instance.
public static RtfRun Text(RtfRun rtfRun, string value) #Sets RtfRun.Text: Run text.
Parameters
- rtfRun OfficeIMO.Rtf.RtfRun
- The instance.
- value string
- The value.
Examples
// C# initializer or property // C# fluent
rtfRun.Text = value; rtfRun.Text(value);public static RtfRun Underline(RtfRun rtfRun, bool value = true) #Enables underline formatting.
Parameters
- rtfRun OfficeIMO.Rtf.RtfRun
- The instance.
- value bool = true
- The value.
public static RtfRun UnderlineColor(RtfRun rtfRun, int colorIndex) #Sets the underline color table index.
Parameters
- rtfRun OfficeIMO.Rtf.RtfRun
- The instance.
- colorIndex int
- The value.
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
- The instance.
- value int?
- The value.
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
- The instance.
- value OfficeIMO.Rtf.RtfUnderlineStyle
- The value.
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
- The instance.
- value bool = true
- The value; true when omitted.
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
- The instance.
- value OfficeIMO.Rtf.RtfVerticalPosition
- The value.
Examples
// C# initializer or property // C# fluent
rtfRun.VerticalPosition = value; rtfRun.VerticalPosition(value);