PicoXLSX Library Documentation
StyleFont Class |
Class representing a Font entry. The Font entry is used to define text formatting
Inheritance Hierarchy
Namespace: PicoXLSX
Assembly: PicoXLSX (in PicoXLSX.dll) Version: 2.4.0.0 (2.4.0)
Syntax
C#
public class Font : AbstractStyle
The StyleFont type exposes the following members.
Constructors
Properties
Name | Description | |
---|---|---|
Bold |
Gets or sets whether the font is bold. If true, the font is declared as bold
| |
Charset |
Gets or sets the char set of the Font (Default is empty)
| |
ColorTheme |
Gets or sets the font color theme (Default is 1)
| |
ColorValue |
Gets or sets the font color (default is empty)
| |
DoubleUnderline |
Gets or sets whether the font has a double underline. If true, the font is declared with a double underline
| |
Family |
Gets or sets the font family (Default is 2)
| |
Hash |
Gets the unique hash of the object
(Inherited from AbstractStyle.) | |
InternalID |
Gets or sets the internal ID for sorting purpose in the Excel style document (nullable)
(Inherited from AbstractStyle.) | |
IsDefaultFont |
Gets whether the font is equals the default font
| |
Italic |
Gets or sets whether the font is italic. If true, the font is declared as italic
| |
Name |
Gets or sets the font name (Default is Calibri)
| |
Scheme |
Gets or sets the font scheme (Default is minor)
| |
Size |
Gets or sets the font size. Valid range is from 8 to 75
| |
Strike |
Gets or sets whether the font is struck through. If true, the font is declared as strike-through
| |
Underline |
Gets or sets whether the font is underlined. If true, the font is declared as underlined
| |
VerticalAlign |
Gets or sets the alignment of the font (Default is none)
|
Methods
Name | Description | |
---|---|---|
CalculateHash |
Override method to calculate the hash of this component
(Overrides AbstractStyleCalculateHash.) | |
CompareTo |
Method to compare two objects for sorting purpose
(Inherited from AbstractStyle.) | |
Copy |
Method to copy the current object to a new one without casting
(Overrides AbstractStyleCopy.) | |
CopyFont |
Method to copy the current object to a new one with casting
| |
CopyPropertiesT |
Internal method to copy altered properties from a source object. The decision whether a property is copied is dependent on a untouched reference object
(Inherited from AbstractStyle.) | |
Equals(Object) | (Inherited from Object.) | |
Equals(AbstractStyle) |
Method to compare two objects for sorting purpose
(Inherited from AbstractStyle.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ToString |
Override toString method
(Overrides ObjectToString.) |
Fields
Name | Description | |
---|---|---|
DEFAULTFONT |
Default font family as constant
|
See Also