Skip to main content

XlFont Members

Contains the cell font attributes.

Constructors

Name Description
XlFont() Initializes a new instance of the XlFont class with the default settings.

Properties

Name Description
Bold Gets or sets the value indicating whether the cell content is formatted as bold. Inherited from XlFontBase.
Charset Gets or sets the basic set of characters associated with the current font. Inherited from XlFontBase.
Color Gets or sets the color of the font applied to the cell content.
Condense Compatibility setting. Gets or sets a value indicating whether the cell font is condensed. Inherited from XlFontBase.
Extend Compatibility setting. Gets or sets a value indicating whether the cell font is extended. Inherited from XlFontBase.
FontFamily Gets or sets the font family of the font applied to cell content.
Italic Gets or sets the value indicating whether the cell content is formatted as italic. Inherited from XlFontBase.
Name Gets or sets the name of the font applied to the cell content. Inherited from XlFontBase.
Outline Compatibility setting. Gets or sets the value indicating whether the cell content is formatted as an outline. Inherited from XlFontBase.
SchemeStyle Gets or sets the font scheme for the current font. Inherited from XlFontBase.
Script Formats the cell content as subscript or superscript. Inherited from XlFontBase.
Shadow Compatibility setting. Gets or sets a value indicating whether the cell font is formatted as shadowed. Inherited from XlFontBase.
Size Gets or sets the size of the font applied to the cell content. Inherited from XlFontBase.
StrikeThrough Gets or sets the value indicating whether the cell content is formatted as strikethrough. Inherited from XlFontBase.
Underline Gets or sets the type of underline applied to the cell content. Inherited from XlFontBase.

Methods

Name Description
BodyFont() static Returns the XlFont object corresponding to the body font used in the current document theme.
Clone() Creates a copy of the current XlFont object.
CopyFrom(XlFont) Copies the appropriate properties of the specified object into the current instance of the XlFont class.
CopyFrom(XlFontBase) Copies the appropriate properties of the specified object into the current object of the XlFontBase type. Inherited from XlFontBase.
CustomFont(String, Double, XlColor) static Creates the XlFont object that specifies a custom font with the given face name, size and color.
CustomFont(String, Double) static Creates the XlFont object that specifies a custom font with the given face name and size.
CustomFont(String) static Creates the XlFont object that specifies a custom font with the given face name.
Equals(Object, Object) static Determines whether the specified object instances are considered equal. Inherited from Object.
Equals(Object) Determines whether the specified object is equal to the current XlFont instance.
GetHashCode() Gets the hash code (a number) that corresponds to the value of the current XlFont object.
GetType() Gets the Type of the current instance. Inherited from Object.
HeadingsFont() static Returns the XlFont object corresponding to the heading font used in the current document theme.
MemberwiseClone() protected Creates a shallow copy of the current Object. Inherited from Object.
ReferenceEquals(Object, Object) static Determines whether the specified Object instances are the same instance. Inherited from Object.
ToString() Returns a string that represents the current object. Inherited from Object.
See Also