Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/

API Reference

Class

ExcelRichTextRun

Namespace OfficeIMO.Excel
Assembly OfficeIMO.Excel
Modifiers sealed

Describes a run of rich text inside a cell.

Inheritance

  • Object
  • ExcelRichTextRun

Usage

Explore 11 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 4

Constructors

public ExcelRichTextRun(String text) #

Creates a rich text run with the supplied text.

Parameters

text System.String requiredposition: 0

Methods

public static ExcelRichTextRun Plain(String text) #
Returns: ExcelRichTextRun

Creates a plain rich text run.

Parameters

text System.String requiredposition: 0
public ExcelRichTextRun TransformTextCase(OfficeTextCase textCase, CultureInfo? culture = null) #
Returns: ExcelRichTextRun

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

Parameters

textCase OfficeIMO.Drawing.OfficeTextCase requiredposition: 0
culture System.Globalization.CultureInfo? = null optionalposition: 1

Properties

public String Text { get; set; } #

Gets or sets the run text.

public Boolean Bold { get; set; } #

Gets or sets whether the run is bold.

public Boolean Italic { get; set; } #

Gets or sets whether the run is italic.

public Boolean Underline { get; set; } #

Gets or sets whether the run is underlined.

public Boolean 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 String? FontColor { get; set; } #

Gets or sets the run font color as a hex value.

public String? FontName { get; set; } #

Gets or sets the run font name.

public Double? FontSize { get; set; } #

Gets or sets the run font size.

public ExcelVerticalTextAlignment? VerticalTextAlignment { get; set; } #

Gets or sets the run vertical text alignment.

public Boolean Outline { get; set; } #

Gets or sets whether the run font uses outline text.

public Boolean Shadow { get; set; } #

Gets or sets whether the run font uses shadow text.

public Boolean Condense { get; set; } #

Gets or sets whether the run font uses condensed text.

public Boolean Extend { get; set; } #

Gets or sets whether the run font uses extended text.

public Byte? FontFamily { 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.