DataLabelCollection
DataLabelCollection
概述
DataLabelCollection 是 Aspose.Slides FOSS 中用于 Python 的一个类。继承自:IDataLabelCollection。
表示图表系列的标签。
此类提供 2 个方法,用于在 Python 程序中处理 DataLabelCollection 对象。可用的方法包括:hide、index_of。在安装 Aspose.Slides FOSS for Python 包后,所有公共成员对任何 Python 应用程序均可访问。属性:as_i_presentation_component、as_i_slide_component、chart、count、count_of_visible_data_labels、default_data_label_format,以及另外 5 项。
属性
| 名称 | 类型 | 访问 | 描述 |
|---|---|---|---|
chart | `` | 读取 | 返回父图表。 |
slide | `` | 读取 | 获取幻灯片。 |
presentation | `` | 读取 | 获取呈现。 |
parent_series | 'IChartSeries' | 读取 | 返回父系列。 |
count | int | 读取 | 父系列中数据点的总数(每个可能都有标签)。 |
count_of_visible_data_labels | int | 读取 | 将渲染文本的标签数量。 |
is_visible | bool | 读取 | 如果在集合默认格式上启用了任何 show_* 标志,则为 true。 |
default_data_label_format | 'IDataLabelFormat' | 读取 | 集合中所有数据标签的默认格式。 |
leader_lines_format | 'IChartLinesFormat' | 读取 | 引导线的线/效果格式。 |
as_i_slide_component | ISlideComponent | 读取 | 允许获取基础 ISlideComponent 接口。 |
as_i_presentation_component | IPresentationComponent | 读取 | 获取 as i 演示组件。 |
方法
| 签名 | 描述 |
|---|---|
hide() | 隐藏所有标签 — 在 <c:dLbls> 上设置 <c:delete val=‘1’/>。 |
index_of(value: 'DataLabel') → int | 此集合中提供的 DataLabel 的索引。 |