Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

ExcelRichTextRun

OfficeIMO.Excel

Namespace
OfficeIMO.Excel
Assembly
OfficeIMO.Excel
Source revision
273d35d5ba8a with working tree changes
Modifiers
sealed

Describes a run of rich text inside a cell.

Inheritance

  • object
  • ExcelRichTextRun

Usage

Explore 9 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Accepted by parameters 3

Constructors

public ExcelRichTextRun(string text) #

Creates a rich text run with the supplied text.

Parameters

text string required

Methods

public static ExcelRichTextRun Plain(string text) #

Creates a plain rich text run.

Parameters

text string required
public ExcelRichTextRun TransformTextCase(OfficeTextCase textCase, CultureInfo? culture = null) #

Changes the stored run text casing while preserving rich-text formatting.

Parameters

textCase OfficeIMO.Drawing.OfficeTextCase required
culture System.Globalization.CultureInfo? = null optional

Properties

public string Text { get; set; } #

Gets or sets the run text.

public bool Bold { get; set; } #

Gets or sets whether the run is bold.

public bool Italic { get; set; } #

Gets or sets whether the run is italic.

public bool Underline { get; set; } #

Gets or sets whether the run is underlined.

public bool Strikethrough { get; set; } #

Gets or sets whether the run is struck through.

public ExcelUnderlineStyle? UnderlineStyle { get; set; } #

Gets or sets the run underline style.

public OfficeColor? Color { get; set; } #

Gets or sets the literal or theme-based run text color.

public string? FontFamily { get; set; } #

Gets or sets the run typeface family name.

public OfficeLength? FontSize { get; set; } #

Gets or sets the positive physical run font size; null inherits the cell font size.

public ExcelVerticalTextAlignment? VerticalTextAlignment { get; set; } #

Gets or sets the run vertical text alignment.

public bool Outline { get; set; } #

Gets or sets whether the run font uses outline text.

public bool Shadow { get; set; } #

Gets or sets whether the run font uses shadow text.

public bool Condense { get; set; } #

Gets or sets whether the run font uses condensed text.

public bool Extend { get; set; } #

Gets or sets whether the run font uses extended text.

public byte? FontFamilyClassification { get; set; } #

Gets or sets the run font family classification byte.

public byte? FontCharacterSet { get; set; } #

Gets or sets the run font character set byte.