Table of Contents

Class ExcelFont

Namespace
Spire.Xls
Assembly
Spire.XLS.dll
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

Color

FontName

Returns or sets the font name. Read / write string.

public string FontName { get; set; }

Property Value

string

IsAutoColor

Indicates whether color is automatically selected. Read-only.

public bool IsAutoColor { get; }

Property Value

bool

IsBold

True if the font is bold.

public bool IsBold { get; set; }

Property Value

bool

IsItalic

True if the font style is italic. Read / write Boolean.

public bool IsItalic { get; set; }

Property Value

bool

IsStrikethrough

True if the font is struck through with a horizontal line. Read / write Boolean

public bool IsStrikethrough { get; set; }

Property Value

bool

IsSubscript

True if the font is formatted as subscript. False by default. Read / write Boolean.

public bool IsSubscript { get; set; }

Property Value

bool

IsSuperscript

True if the font is formatted as superscript. False by default. Read/write Boolean

public bool IsSuperscript { get; set; }

Property Value

bool

KnownColor

Returns or sets the primary excel color of the object.

public ExcelColors KnownColor { get; set; }

Property Value

ExcelColors

Parent

public object Parent { get; }

Property Value

object

Size

Returns or sets the size of the font. Read / write integer.

public double Size { get; set; }

Property Value

double

StrikethroughType

public string StrikethroughType { get; set; }

Property Value

string

Underline

Returns or sets the type of underline applied to the font.

public FontUnderlineType Underline { get; set; }

Property Value

FontUnderlineType

VerticalAlignment

public FontVertialAlignmentType VerticalAlignment { get; set; }

Property Value

FontVertialAlignmentType

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 ThemeColorType

theme color type

tint double

Returns

bool

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 ThemeColorType

theme color type

tint double