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 属性(返回图案)。
属性
| 名称 | 类型 | 访问 | 描述 |
|---|---|---|---|
default | StyleValue | 读取 | 获取默认样式值。 |
font | FontValue | 读取 | 返回字体。 |
pattern | FillPatternKind | 读取 | 返回模式。 |
foregroundColor | ColorValue | 读取 | 返回前景颜色。 |
backgroundColor | ColorValue | 读取 | 返回背景颜色。 |
borders | BordersValue | 读取 | 返回边界。 |
alignment | AlignmentValue | 读取 | 返回对齐方式。 |
protection | ProtectionValue | 读取 | 返回保护。 |
numberFormat | NumberFormatValue | 读取 | 返回数字格式。 |
rawFillXml | String | 读取 | 获取原始填充 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 | 创建此实例的副本。 |