Table of Contents

Class FontWrapper

Namespace
Spire.Xls.Core.Spreadsheet
Assembly
Spire.XLS.dll
public class FontWrapper : CommonWrapper, ICloneParent, IInternalFont, IFont, IExcelApplication, IOptimizedUpdate
Inheritance
FontWrapper
Implements
Inherited Members

Constructors

FontWrapper()

public FontWrapper()

FontWrapper(XlsFont)

public FontWrapper(XlsFont font)

Parameters

font XlsFont

FontWrapper(XlsFont, bool, bool)

public FontWrapper(XlsFont font, bool bReadOnly, bool bRaiseEvents)

Parameters

font XlsFont
bReadOnly bool
bRaiseEvents bool

Properties

Color

Returns or sets the primary color of the font.

public Color Color { get; set; }

Property Value

Color

Font

Returns internal font.

public XlsFont Font { get; }

Property Value

XlsFont

FontIndex

public int FontIndex { get; }

Property Value

int

FontName

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

public string FontName { get; set; }

Property Value

string

Index

Returns index of the font. Read-only.

public int Index { get; }

Property Value

int

IsAutoColor

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

IsReadOnly

Indicates whether font is read-only.

public bool IsReadOnly { 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

MacOSOutlineFont

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

public 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.

public bool MacOSShadow { get; set; }

Property Value

bool

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

Workbook

Returns workbook.

public XlsWorkbook Workbook { get; }

Property Value

XlsWorkbook

Methods

BeginUpdate()

public override void BeginUpdate()

Clone(XlsWorkbook, object, IDictionary)

[Obsolete("the method is implemented")]
public FontWrapper Clone(XlsWorkbook book, object parent, IDictionary dicFontIndexes)

Parameters

book XlsWorkbook
parent object
dicFontIndexes IDictionary

Returns

FontWrapper

ColorObjectUpdate()

public void ColorObjectUpdate()

EndUpdate()

public override void EndUpdate()

GetThemeColor(out ThemeColorType, out double)

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

Parameters

type ThemeColorType
tint double

Returns

bool

SetThemeColor(ThemeColorType, double)

public void SetThemeColor(ThemeColorType type, double tint)

Parameters

type ThemeColorType
tint double

Events

AfterChangeEvent

public event EventHandler AfterChangeEvent

Event Type

EventHandler