StyleValue

概述

StyleValue 是 Aspose.Cells FOSS 中用于 Java 的一个类。

表示具有各种格式属性的样式值。

此类提供 20 个方法,用于在 Java 程序中处理 StyleValue 对象。可用的方法包括:clone、getAlignment、getBackgroundColor、getBorders、getDefault、getFont、getForegroundColor、getNumberFormat、getPattern、getProtection、getRawFillXml、setAlignment,以及另外 8 个方法。安装 Aspose.Cells FOSS for Java 包后,所有导出成员对任何 Java 应用程序均可访问。属性:alignment、backgroundColor、borders、default、font、foregroundColor,以及另外 4 项。

描述

StyleValue 是 Aspose.Cells FOSS 库中用于 Java 的一个类,提供 20 个方法和 10 个属性以供编程使用。

核心功能包括:stylevalue;fontvalue;fillpatternkind。这些操作使开发者能够将 stylevalue 功能直接集成到 Java 应用程序中。

该类还提供 default 属性(获取默认样式值),font 属性(返回字体),以及 pattern 属性(返回图案)。

属性

名称类型访问描述
defaultStyleValue读取获取默认样式值。
fontFontValue读取返回字体。
patternFillPatternKind读取返回模式。
foregroundColorColorValue读取返回前景颜色。
backgroundColorColorValue读取返回背景颜色。
bordersBordersValue读取返回边界。
alignmentAlignmentValue读取返回对齐方式。
protectionProtectionValue读取返回保护。
numberFormatNumberFormatValue读取返回数字格式。
rawFillXmlString读取获取原始填充 xml。

方法

签名描述
getDefault() → StyleValue获取默认样式值。
getFont() → FontValue返回字体。
setFont(font: FontValue)设置字体。
getPattern() → FillPatternKind返回模式。
setPattern(pattern: FillPatternKind)设置模式。
getForegroundColor() → ColorValue返回前景颜色。
setForegroundColor(foregroundColor: ColorValue)设置前景颜色。
getBackgroundColor() → ColorValue返回背景颜色。
setBackgroundColor(backgroundColor: ColorValue)设置背景颜色。
getBorders() → BordersValue返回边界。
setBorders(borders: BordersValue)设置边框。
getAlignment() → AlignmentValue返回对齐方式。
setAlignment(alignment: AlignmentValue)设置对齐方式。
getProtection() → ProtectionValue返回保护。
setProtection(protection: ProtectionValue)设置保护。
getNumberFormat() → NumberFormatValue返回数字格式。
setNumberFormat(numberFormat: NumberFormatValue)设置数字格式。
getRawFillXml() → String返回原始填充 XML。
setRawFillXml(rawFillXml: String)设置原始填充 xml 值。
clone() → StyleValue创建此实例的副本。

另请参阅

 中文