WorksheetModel
概述
WorksheetModel 是 Aspose.Cells FOSS 中用于 Java 的类。
表示 Excel 文件中工作表的模型。
此类提供 23 个方法,用于在 Java 程序中操作 WorksheetModel 对象。可用的方法包括:WorksheetModel、getAutoFilter、getCells、getCharts、getColumns、getComments、getConditionalFormattings、getHyperlinks、getListObjects、getMergeRegions、getName、getPageSetup,以及另外 11 个方法。安装 Aspose.Cells FOSS for Java 包后,所有导出的成员均可被任何 Java 应用访问。属性有:autoFilter、cells、charts、columns、comments、conditionalFormattings,以及另外 13 项。
描述
WorksheetModel 是 Aspose.Cells FOSS 库中用于 Java 的类,提供 22 个方法和 19 个属性供编程使用。
核心功能包括:string;sheetvisibility;map<celladdress, cellrecord>。这些操作使开发者能够将 worksheetmodel 功能直接集成到 Java 应用中。
该类还提供了 name 属性(返回名称)、visibility 属性(返回可见性)以及 cells 属性(返回单元格)。
实例通过唯一的构造函数创建,该构造函数使用默认值初始化对象。
属性
| 名称 | 类型 | 访问 | 描述 |
|---|---|---|---|
name | String | 读取 | 返回名称。 |
visibility | SheetVisibility | 读取 | 返回可见性。 |
cells | Map<CellAddress, CellRecord> | 读取 | 返回单元格。 |
rows | Map<Integer, RowModel> | 读取 | 返回行。 |
columns | List<ColumnRangeModel> | 读取 | 返回列。 |
mergeRegions | List<MergeRegion> | 读取 | 返回合并区域。 |
hyperlinks | List<HyperlinkModel> | 读取 | 返回超链接。 |
validations | List<ValidationModel> | 读取 | 返回验证。 |
conditionalFormattings | List<ConditionalFormattingModel> | 读取 | 返回条件格式。 |
pageSetup | PageSetupModel | 读取 | 返回页面设置。 |
view | WorksheetViewModel | 读取 | 返回视图。 |
protection | WorksheetProtectionModel | 读取 | 返回保护。 |
autoFilter | AutoFilterModel | 读取 | 返回自动过滤器。 |
tabColor | ColorValue | 读取 | 返回选项卡颜色。 |
comments | List<CommentModel> | 读取 | 获取注释。 |
pictures | List<PictureModel> | 读取 | 获取图片。 |
shapes | List<ShapeModel> | 读取 | 获取形状。 |
charts | List<ChartModel> | 读取 | 获取图表。 |
listObjects | List<ListObjectModel> | 读取 | 获取列表对象。 |
方法
| 签名 | 描述 |
|---|---|
WorksheetModel(name: String) | 初始化一个新的 WorksheetModel 实例。 |
getName() → String | 返回名称。 |
setName(name: String) | 设置名称。 |
getVisibility() → SheetVisibility | 返回可见性。 |
setVisibility(visibility: SheetVisibility) | 设置可见性。 |
getCells() → Map<CellAddress, CellRecord> | 返回单元格。 |
getRows() → Map<Integer, RowModel> | 返回行。 |
getColumns() → List<ColumnRangeModel> | 返回列。 |
getMergeRegions() → List<MergeRegion> | 返回合并区域。 |
getHyperlinks() → List<HyperlinkModel> | 返回超链接。 |
getValidations() → List<ValidationModel> | 返回验证。 |
getConditionalFormattings() → List<ConditionalFormattingModel> | 返回条件格式。 |
getPageSetup() → PageSetupModel | 返回页面设置。 |
getView() → WorksheetViewModel | 返回视图。 |
getProtection() → WorksheetProtectionModel | 返回保护。 |
getAutoFilter() → AutoFilterModel | 返回自动过滤器。 |
getTabColor() → ColorValue | 返回标签页颜色。 |
setTabColor(tabColor: ColorValue) | 设置选项卡颜色。 |
getComments() → List<CommentModel> | 返回评论。 |
getPictures() → List<PictureModel> | 返回图片。 |
getShapes() → List<ShapeModel> | 返回形状。 |
getCharts() → List<ChartModel> | 返回图表。 |
getListObjects() → List<ListObjectModel> | 返回列表对象。 |