ExcelRichTextRun
OfficeIMO.Excel
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.
Returned or exposed by 6
- Method ExcelCell.GetRichText
- Property ExcelCellInfo.RichTextRuns
- Property ExcelCommentInfo.RichTextRuns
- Property ExcelCommentInspectionInfo.RichTextRuns
- Method ExcelRichTextRun.Plain
- Method ExcelRichTextRun.TransformTextCase
Accepted by parameters 3
- Method ExcelCell.SetRichText
- Method ExcelSheet.SetCommentRichText
- Method ExcelSheet.UpdateCommentsRichText
Constructors
public ExcelRichTextRun(string text) #Creates a rich text run with the supplied text.
Parameters
- text string
Methods
public static ExcelRichTextRun Plain(string text) #Creates a plain rich text run.
Parameters
- text string
Returns
ExcelRichTextRunpublic ExcelRichTextRun TransformTextCase(OfficeTextCase textCase, CultureInfo? culture = null) #Changes the stored run text casing while preserving rich-text formatting.
Parameters
- textCase OfficeIMO.Drawing.OfficeTextCase
- culture System.Globalization.CultureInfo? = null
Returns
ExcelRichTextRunInherited Methods
Properties
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.