Class ExcelRichText
A richtext part
Inherited Members
Namespace: OfficeOpenXml.Style
Assembly: EPPlus.dll
Syntax
public class ExcelRichText
Properties
Bold
Bold text
Declaration
public bool Bold { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
Charset
Characterset to use
Declaration
public int Charset { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
Color
Text color. Also see ColorSettings
Declaration
public Color Color { get; set; }
Property Value
| Type | Description |
|---|---|
| Color |
ColorSettings
Color settings. Color
Declaration
public ExcelRichTextColor ColorSettings { get; set; }
Property Value
| Type | Description |
|---|---|
| ExcelRichTextColor |
Family
Font family
Declaration
public int Family { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
FontName
Name of the font
Declaration
public string FontName { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
HasDefaultValue
Has default value
Declaration
public bool HasDefaultValue { get; }
Property Value
| Type | Description |
|---|---|
| bool |
HtmlText
Returns the rich text item as a html string.
Declaration
public string HtmlText { get; }
Property Value
| Type | Description |
|---|---|
| string |
Italic
Italic text
Declaration
public bool Italic { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
PreserveSpace
Preserves whitespace. Default true
Declaration
public bool PreserveSpace { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
Size
Font size
Declaration
public float Size { get; set; }
Property Value
| Type | Description |
|---|---|
| float |
Strike
Strike-out text
Declaration
public bool Strike { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
Text
The text
Declaration
public string Text { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
UnderLine
Declaration
public bool UnderLine { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
UnderLineType
Underline type of text
Declaration
public ExcelUnderLineType UnderLineType { get; set; }
Property Value
| Type | Description |
|---|---|
| ExcelUnderLineType |
VerticalAlign
Vertical Alignment
Declaration
public ExcelVerticalAlignmentFont? VerticalAlign { get; set; }
Property Value
| Type | Description |
|---|---|
| ExcelVerticalAlignmentFont? |
Methods
GetUVerticalAlignmentFont(string)
Get the underline typ for rich text
Declaration
public static ExcelVerticalAlignmentFont GetUVerticalAlignmentFont(string v)
Parameters
| Type | Name | Description |
|---|---|---|
| string | v |
Returns
| Type | Description |
|---|---|
| ExcelVerticalAlignmentFont | returns excelunderline type |
GetUnderlineType(string)
Get the underline typ for rich text
Declaration
public static ExcelUnderLineType GetUnderlineType(string v)
Parameters
| Type | Name | Description |
|---|---|---|
| string | v |
Returns
| Type | Description |
|---|---|
| ExcelUnderLineType | returns excelunderline type |