Font

Overview

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

Represents a font with its properties.

Properties

NameTypeAccessDescription
nameStringReadReturns the name.
sizedoubleReadReturns the size.
boldbooleanReadReturns the bold.
italicbooleanReadReturns the italic.
underlinebooleanReadReturns the underline.
strikeThroughbooleanReadReturns the strike through.
colorColorReadReturns the color.

Methods

SignatureDescription
getName()StringReturns the name.
setName(name: String)Sets the name.
getSize()doubleReturns the size.
setSize(size: double)Sets the size.
getBold()booleanReturns the bold.
setBold(bold: boolean)Sets the bold.
getItalic()booleanReturns the italic.
setItalic(italic: boolean)Sets the italic.
getUnderline()booleanReturns the underline.
setUnderline(underline: boolean)Sets the underline.
getStrikeThrough()booleanReturns the strike through.
setStrikeThrough(strikeThrough: boolean)Sets the strike through.
getColor()ColorReturns the color.
setColor(color: Color)Sets the color.
clone()FontCreates a copy of this instance.