Click or drag to resize

FontWrapper Class

Represents a wrapper class for handling font properties . This class inherits from CommonWrapper and implements interfaces for font functionality. It provides a structured way to manage font attributes such as font name, size, style, and color.
Inheritance Hierarchy
System Object
Spire.Xls.Core.Spreadsheet CommonWrapper
Spire.Xls.Core.Spreadsheet FontWrapper

Namespace: Spire.Xls.Core.Spreadsheet
Assembly: Spire.XLS (in Spire.XLS.dll) Version: 15.4.0.0 (15.4.0.5046)
Syntax
public class FontWrapper : CommonWrapper, 
	IFont, IExcelApplication, IOptimizedUpdate, IInternalFont

The FontWrapper type exposes the following members.

Constructors
Properties
Name Description
Protected property BeginCallsCount
Returns number of begin update calls that have no corresponding end update. Read-only.
(Inherited from CommonWrapper .)
Public property Color
Returns or sets the primary color of the font.
Public property Font
Returns internal font.
Public property FontIndex
Gets the index of the font.
Public property FontName
Returns or sets the font name. Read / write string.
Public property Index
Returns index of the font. Read-only.
Public property IsAutoColor
Indicates whether color is automatically selected. Read-only.
Public property IsBold
True if the font is bold.
Public property IsItalic
True if the font style is italic. Read / write Boolean.
Public property IsReadOnly
Indicates whether font is read-only.
Public property IsStrikethrough
True if the font is struck through with a horizontal line. Read / write Boolean
Public property IsSubscript
True if the font is formatted as subscript. False by default. Read / write Boolean.
Public property IsSuperscript
True if the font is formatted as superscript. False by default. Read/write Boolean
Public property KnownColor
Returns or sets the primary excel color of the object.
Public property MacOSOutlineFont
True if the font is an outline font. Read / write Boolean.
Public property MacOSShadow
True if the font is a shadow font or if the object has a shadow. Read / write Boolean.
Public property Parent
Gets the parent object of the font.
Public property Size
Returns or sets the size of the font. Read / write integer.
Public property StrikethroughType
Gets or sets the strikethrough type of the font.
Public property Underline
Returns or sets the type of underline applied to the font.
Public property VerticalAlignment
Gets / sets font vertical alignment.
Public property Workbook
Returns workbook.
Top
Methods
Name Description
Public method BeginUpdate
Begins the update process for the control.
(Overrides CommonWrapper BeginUpdate .)
Public method Clone(Object)
Creates a copy of the current object.
(Inherited from CommonWrapper .)
Public method Clone(XlsWorkbook, Object, IDictionary) Obsolete.
Clones the current FontWrapper object.
Public method ColorObjectUpdate
Updates the color of the object by copying the font color to the object's color.
Public method EndUpdate
Ends the update process and raises the AfterChangeEvent event.
(Overrides CommonWrapper EndUpdate .)
Public method Equals
Determines whether the specified object is equal to the current object.
(Inherited from Object .)
Protected method Finalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object .)
Public method GenerateNativeFont
Generates .Net font object corresponding to the current font.
Public method GetHashCode
Serves as the default hash function.
(Inherited from Object .)
Public method GetThemeColor
Get the foreground theme color.
Public method GetType
Gets the Type of the current instance.
(Inherited from Object .)
Protected method MemberwiseClone
Creates a shallow copy of the current Object .
(Inherited from Object .)
Public method SetThemeColor
Set the foreground theme color.
Public method ToString
Returns a string that represents the current object.
(Inherited from Object .)
Top
Events
Name Description
Public event AfterChangeEvent
Event raised after wrapped font changed.
Top
See Also