Font

Overview

Font is a class in Aspose.Cells FOSS for .NET.

Represents font.

This class provides 4 methods for working with Font objects in .NET programs. Available methods include: Equals, GetHashCode, ToString. All public members are accessible to any .NET application after installing the Aspose.Cells FOSS for .NET package. Properties: ArgbColor, Color, DoubleSize, IsBold, IsItalic, IsStrikeout, and 3 more.

Properties

NameTypeAccessDescription
NamestringRead/WriteGets or sets the name.
SizedoubleRead/WriteGets or sets the size.
DoubleSizedoubleRead/WriteGets or sets the font size.
UnderlineFontUnderlineTypeRead/WriteGets or sets the font underline type.
IsBoldboolRead/WriteGets or sets a value indicating whether bold.
IsItalicboolRead/WriteGets or sets a value indicating whether italic.
IsStrikeoutboolRead/WriteGets or sets a value indicating whether single strikeout.
ColorColorRead/WriteGets or sets the color.
ArgbColorintRead/WriteGets or sets the color with a 32-bit ARGB value.

Methods

SignatureDescription
Equals(font: Font)Checks whether this font equals to another font instance.
Equals(obj: object)Determines whether the specified object is equal to the current font instance.
GetHashCode()Serves as a hash function for a font object.
ToString()Returns a string that represents the current font object.

See Also

 English