Skip to main content

XlFont Methods

Contains the cell font attributes.
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