Table of Contents

Class XlsFont

Namespace
Spire.Xls.Core.Spreadsheet
Assembly
Spire.XLS.dll
public class XlsFont : XlsObject, IFont, IExcelApplication, IOptimizedUpdate, ICloneParent, IDisposable, IComparable
Inheritance
XlsFont
Implements
Derived
Inherited Members

Properties

Color

public Color Color { get; set; }

Property Value

Color

Font

public XlsFont Font { get; }

Property Value

XlsFont

FontName

public string FontName { get; set; }

Property Value

string

IsAutoColor

public bool IsAutoColor { get; }

Property Value

bool

IsBold

public bool IsBold { get; set; }

Property Value

bool

IsItalic

public bool IsItalic { get; set; }

Property Value

bool

IsStrikethrough

public bool IsStrikethrough { get; set; }

Property Value

bool

IsSubscript

public bool IsSubscript { get; set; }

Property Value

bool

IsSuperscript

public bool IsSuperscript { get; set; }

Property Value

bool

KnownColor

public ExcelColors KnownColor { get; set; }

Property Value

ExcelColors

MacOSOutlineFont

True if the font is an outline font. Read/write Boolean.

protected bool MacOSOutlineFont { get; set; }

Property Value

bool

MacOSShadow

True if the font is a shadow font or if the object has a shadow. Read/write Boolean.

protected bool MacOSShadow { get; set; }

Property Value

bool

OColor

Returns color object.

public OColor OColor { get; }

Property Value

OColor

Scheme

public string Scheme { get; set; }

Property Value

string

Size

public double Size { get; set; }

Property Value

double

StrikethroughType

public string StrikethroughType { get; set; }

Property Value

string

Underline

public FontUnderlineType Underline { get; set; }

Property Value

FontUnderlineType

VerticalAlignment

public FontVertialAlignmentType VerticalAlignment { get; set; }

Property Value

FontVertialAlignmentType

Methods

BeginUpdate()

public void BeginUpdate()

Clone(object)

public XlsFont Clone(object parent)

Parameters

parent object

Returns

XlsFont

CompareTo(object)

public int CompareTo(object obj)

Parameters

obj object

Returns

int

EndUpdate()

public void EndUpdate()

GetThemeColor(out ThemeColorType, out double)

public bool GetThemeColor(out ThemeColorType type, out double tint)

Parameters

type ThemeColorType
tint double

Returns

bool

MeasureString(string)

public SizeF MeasureString(string strValue)

Parameters

strValue string

Returns

SizeF

SetThemeColor(ThemeColorType, double)

public void SetThemeColor(ThemeColorType type, double tint)

Parameters

type ThemeColorType
tint double