Style

Overview

Style is a class in Aspose.Cells FOSS for Typescript. Inherits from: StyleType.

Properties

NameTypeAccessDescription
font: FontRead
fill: FillRead
border: BorderRead
alignment: AlignmentRead
numberFormat: stringRead
protection: ProtectionRead

Methods

SignatureDescription
constructor()
getFont()Font
setFont(font: Font)
getFill()Fill
setFill(fill: Fill)
getBorder()Border
setBorder(border: Border)
getAlignment()Alignment
setAlignment(alignment: Alignment)
setNumberFormat(format: string)
getNumberFormat()string | undefined
setProtection(protection: Protection)
isBold()boolean
setBold(bold: boolean)
isItalic()boolean
setItalic(italic: boolean)
getFontName()string
setFontName(name: string)
getFontSize()number
setFontSize(size: number)
getFontColor()string | undefined
setFontColor(color: string)
getForegroundColor()string | undefined
setForegroundColor(color: string)
getBackgroundColor()string | undefined
setBackgroundColor(color: string)
getHorizontalAlignment()string
setHorizontalAlignment(alignment: Alignment["horizontal"])
getVerticalAlignment()string
setVerticalAlignment(alignment: Alignment["vertical"])
isWrapText()boolean
setWrapText(wrapText: boolean)
isLocked()boolean
setLocked(locked: boolean)
isHidden()boolean
setHidden(hidden: boolean)
toXml()string

See Also