Class ExcelRichText
A richtext part
Inheritance
Object
ExcelRichText
Inherited Members
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Object.ToString()
Namespace: OfficeOpenXml.Style
Assembly: EPPlus.dll
Syntax
public class ExcelRichText
Properties
Bold
Bold text
Declaration
public bool Bold { get; set; }
Property Value
| Type | Description |
|---|---|
| Boolean |
Charset
Characterset to use
Declaration
public int Charset { get; set; }
Property Value
| Type | Description |
|---|---|
| Int32 |
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 |
|---|---|
| Int32 |
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 |
|---|---|
| Boolean |
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 |
|---|---|
| Boolean |
PreserveSpace
Preserves whitespace. Default true
Declaration
public bool PreserveSpace { get; set; }
Property Value
| Type | Description |
|---|---|
| Boolean |
Size
Font size
Declaration
public float Size { get; set; }
Property Value
| Type | Description |
|---|---|
| Single |
Strike
Strike-out text
Declaration
public bool Strike { get; set; }
Property Value
| Type | Description |
|---|---|
| Boolean |
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 |
|---|---|
| Boolean |
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 |
|---|---|
| Nullable<ExcelVerticalAlignmentFont> |
Methods
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 |
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 |