![]() | StyleFont Class |
public class Font : AbstractStyle
The StyleFont type exposes the following members.
Name | Description | |
---|---|---|
![]() | Bold | Gets or sets a value indicating whether 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 = Light) |
![]() | ColorValue | Gets or sets the color code of the font color. The value is expressed as hex string with the format AARRGGBB. AA (Alpha) is usually FF Gets or sets the color code of the font color. The value is expressed as hex string with the format AARRGGBB. AA (Alpha) is usually FF |
![]() | Family | Gets or sets the Family Gets or sets the font family (Default is 2 = Swiss) |
![]() | InternalID |
Gets or sets the internal ID for sorting purpose in the Excel style document (nullable)
(Inherited from AbstractStyle) |
![]() | IsDefaultFont | Gets a value indicating whether IsDefaultFont Gets whether the font is equal to the default font |
![]() | Italic | Gets or sets a value indicating whether 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 1 to 409 |
![]() | Strike | Gets or sets a value indicating whether Strike Gets or sets whether the font is struck through. If true, the font is declared as strike-through |
![]() | Underline | Gets or sets the underline style of the font. If set to none no underline will be applied (default) |
![]() | VerticalAlign | Gets or sets the alignment of the font (Default is none) |
Name | Description | |
---|---|---|
![]() | 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(AbstractStyle) |
Method to compare two objects for sorting purpose
(Inherited from AbstractStyle) |
![]() | Equals(Object) | Determines whether the specified object is equal to the current object. (Inherited from Object) |
![]() | 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 |
Returns a hash code for this instance
(Overrides ObjectGetHashCode) |
![]() | 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) |
![]() | ValidateFontScheme | Validates the font name and sets the scheme automatically |
Name | Description | |
---|---|---|
![]() ![]() | DEFAULT_FONT_FAMILY | Default font family |
![]() ![]() | DEFAULT_FONT_NAME | Default font family as constant |
![]() ![]() | DEFAULT_FONT_SCHEME | Default font scheme |
![]() ![]() | DEFAULT_FONT_SIZE | Default font size |
![]() ![]() | DEFAULT_MAJOR_FONT | The default font name that is declared as Major Font (See StyleFontSchemeValue) |
![]() ![]() | DEFAULT_MINOR_FONT | The default font name that is declared as Minor Font (See StyleFontSchemeValue) |
![]() ![]() | DEFAULT_VERTICAL_ALIGN | Default vertical alignment |
![]() ![]() | MAX_FONT_SIZE | Minimum possible font size |
![]() ![]() | MIN_FONT_SIZE | Maximum possible font size |