![]() | Font Class |
public class Font : AbstractStyle
The Font type exposes the following members.
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 = Light 1) |
![]() | 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. To omit the color, an empty string can be set. Empty is also default. |
![]() | 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 whether the font is equal to 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 1 to 409 |
![]() | 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 AbstractStyle.Copy()) |
![]() | CopyFont | Method to copy the current object to a new one with casting |
![]() | CopyProperties<T> |
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) |
Returns whether two instances are the same
(Overrides Object.Equals(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 Object.GetHashCode()) |
![]() | 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 Object.ToString()) |
![]() | 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 Font.SchemeValue) |
![]() ![]() | DEFAULT_MINOR_FONT | The default font name that is declared as Minor Font (See Font.SchemeValue) |
![]() ![]() | DEFAULT_VERTICAL_ALIGN | Default vertical alignment |
![]() ![]() | MAX_FONT_SIZE | Minimum possible font size |
![]() ![]() | MIN_FONT_SIZE | Maximum possible font size |