StyleValue

Overview

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

Represents a style value with various formatting properties.

This class provides 20 methods for working with StyleValue objects in Java programs. Available methods include: clone, getAlignment, getBackgroundColor, getBorders, getDefault, getFont, getForegroundColor, getNumberFormat, getPattern, getProtection, getRawFillXml, setAlignment, and 8 additional methods. All exported members are accessible to any Java application after installing the Aspose.Cells FOSS for Java package. Properties: alignment, backgroundColor, borders, default, font, foregroundColor, and 4 more.

Properties

NameTypeAccessDescription
defaultStyleValueReadGets the default style value.
fontFontValueReadReturns the font.
patternFillPatternKindReadReturns the pattern.
foregroundColorColorValueReadReturns the foreground color.
backgroundColorColorValueReadReturns the background color.
bordersBordersValueReadReturns the borders.
alignmentAlignmentValueReadReturns the alignment.
protectionProtectionValueReadReturns the protection.
numberFormatNumberFormatValueReadReturns the number format.
rawFillXmlStringReadGets the raw fill xml.

Methods

SignatureDescription
getDefault()StyleValueGets the default style value.
getFont()FontValueReturns the font.
setFont(font: FontValue)Sets the font.
getPattern()FillPatternKindReturns the pattern.
setPattern(pattern: FillPatternKind)Sets the pattern.
getForegroundColor()ColorValueReturns the foreground color.
setForegroundColor(foregroundColor: ColorValue)Sets the foreground color.
getBackgroundColor()ColorValueReturns the background color.
setBackgroundColor(backgroundColor: ColorValue)Sets the background color.
getBorders()BordersValueReturns the borders.
setBorders(borders: BordersValue)Sets the borders.
getAlignment()AlignmentValueReturns the alignment.
setAlignment(alignment: AlignmentValue)Sets the alignment.
getProtection()ProtectionValueReturns the protection.
setProtection(protection: ProtectionValue)Sets the protection.
getNumberFormat()NumberFormatValueReturns the number format.
setNumberFormat(numberFormat: NumberFormatValue)Sets the number format.
getRawFillXml()StringReturns the raw fill xml.
setRawFillXml(rawFillXml: String)Sets the raw fill xml value.
clone()StyleValueCreates a copy of this instance.

See Also