Class ExcelFont
public class ExcelFont : IFont, IExcelApplication, IOptimizedUpdate
- Inheritance
-
ExcelFont
- Implements
- Inherited Members
Properties
Color
Returns or sets the primary color of the font.
public Color Color { get; set; }
Property Value
FontName
Returns or sets the font name. Read / write string.
public string FontName { get; set; }
Property Value
IsAutoColor
Indicates whether color is automatically selected. Read-only.
public bool IsAutoColor { get; }
Property Value
IsBold
True if the font is bold.
public bool IsBold { get; set; }
Property Value
IsItalic
True if the font style is italic. Read / write Boolean.
public bool IsItalic { get; set; }
Property Value
IsStrikethrough
True if the font is struck through with a horizontal line. Read / write Boolean
public bool IsStrikethrough { get; set; }
Property Value
IsSubscript
True if the font is formatted as subscript. False by default. Read / write Boolean.
public bool IsSubscript { get; set; }
Property Value
IsSuperscript
True if the font is formatted as superscript. False by default. Read/write Boolean
public bool IsSuperscript { get; set; }
Property Value
KnownColor
Returns or sets the primary excel color of the object.
public ExcelColors KnownColor { get; set; }
Property Value
Parent
public object Parent { get; }
Property Value
Size
Returns or sets the size of the font. Read / write integer.
public double Size { get; set; }
Property Value
StrikethroughType
public string StrikethroughType { get; set; }
Property Value
Underline
Returns or sets the type of underline applied to the font.
public FontUnderlineType Underline { get; set; }
Property Value
VerticalAlignment
public FontVertialAlignmentType VerticalAlignment { get; set; }
Property Value
Methods
BeginUpdate()
public void BeginUpdate()
EndUpdate()
public void EndUpdate()
GetThemeColor(out ThemeColorType, out double)
Get the theme color.
public bool GetThemeColor(out ThemeColorType type, out double tint)
Parameters
type
ThemeColorTypetheme color type
tint
double
Returns
Remarks
If the color is a theme color, true returned, is not then false will be returned.
SetThemeColor(ThemeColorType, double)
Set the theme color.
public void SetThemeColor(ThemeColorType type, double tint)
Parameters
type
ThemeColorTypetheme color type
tint
double