Style.Font Class

PicoXLSX

PicoXLSX

StyleFont Class

Class representing a Font entry. The Font entry is used to define text formatting
Inheritance Hierarchy
SystemObject  PicoXLSXAbstractStyle
    PicoXLSXStyleFont

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
  NameDescription
Public methodStyleFont
Default constructor
Top
Properties
  NameDescription
Public propertyBold
Gets or sets whether the font is bold. If true, the font is declared as bold
Public propertyCharset
Gets or sets the char set of the Font (Default is empty)
Public propertyColorTheme
Gets or sets the font color theme (Default is 1)
Public propertyColorValue
Gets or sets the font color (default is empty)
Public propertyDoubleUnderline
Gets or sets whether the font has a double underline. If true, the font is declared with a double underline
Public propertyFamily
Gets or sets the font family (Default is 2)
Public propertyHash
Gets the unique hash of the object
(Inherited from AbstractStyle.)
Public propertyInternalID
Gets or sets the internal ID for sorting purpose in the Excel style document (nullable)
(Inherited from AbstractStyle.)
Public propertyIsDefaultFont
Gets whether the font is equals the default font
Public propertyItalic
Gets or sets whether the font is italic. If true, the font is declared as italic
Public propertyName
Gets or sets the font name (Default is Calibri)
Public propertyScheme
Gets or sets the font scheme (Default is minor)
Public propertySize
Gets or sets the font size. Valid range is from 8 to 75
Public propertyStrike
Gets or sets whether the font is struck through. If true, the font is declared as strike-through
Public propertyUnderline
Gets or sets whether the font is underlined. If true, the font is declared as underlined
Public propertyVerticalAlign
Gets or sets the alignment of the font (Default is none)
Top
Methods
  NameDescription
Public methodCalculateHash
Override method to calculate the hash of this component
(Overrides AbstractStyleCalculateHash.)
Public methodCompareTo
Method to compare two objects for sorting purpose
(Inherited from AbstractStyle.)
Public methodCopy
Method to copy the current object to a new one without casting
(Overrides AbstractStyleCopy.)
Public methodCopyFont
Method to copy the current object to a new one with casting
Protected methodCopyPropertiesT
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.)
Public methodEquals(Object)
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public methodEquals(AbstractStyle)
Method to compare two objects for sorting purpose
(Inherited from AbstractStyle.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Override toString method
(Overrides ObjectToString.)
Top
Fields
  NameDescription
Public fieldStatic memberDEFAULTFONT
Default font family as constant
Top
See Also