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
Properties
Color
Returns or sets the primary color of the font.
public Color Color { get; set; }
Property Value
Font
Returns internal font.
public XlsFont Font { get; }
Property Value
FontIndex
public int FontIndex { get; }
Property Value
FontName
Returns or sets the font name. Read / write string.
public string FontName { get; set; }
Property Value
Index
Returns index of the font. Read-only.
public int Index { get; }
Property Value
IsAutoColor
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
IsReadOnly
Indicates whether font is read-only.
public bool IsReadOnly { 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
MacOSOutlineFont
True if the font is an outline font. Read / write Boolean.
public bool MacOSOutlineFont { get; set; }
Property Value
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
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
Workbook
Returns workbook.
public XlsWorkbook Workbook { get; }
Property Value
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
XlsWorkbookparent
objectdicFontIndexes
IDictionary
Returns
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
ThemeColorTypetint
double
Returns
SetThemeColor(ThemeColorType, double)
public void SetThemeColor(ThemeColorType type, double tint)
Parameters
type
ThemeColorTypetint
double
Events
AfterChangeEvent
public event EventHandler AfterChangeEvent