DataLabel
DataLabel
Overview
DataLabel 是Python的Aspose.Slides FOSS中的一个类. 继承人: IDataLabel.
表示一个系列数据点标签.
这个类提供了在Python程序中使用DataLabel 对象的3种方法. 有的方法包括: add_text_frame_for_overriding, get_actual_label_text, hide. 在安装Python包的Aspose.Slides FOSS后,所有公众成员都可以访问任何 Python 应用程序. 特性: actual_height, actual_width, actual_x, actual_y, as_i_chart_component, as_i_presentation_component,另外15个.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
chart | `` | Read | 得到了图表. |
slide | `` | Read | 得到了滑梯. |
presentation | `` | Read | 得到了演示. |
is_visible | bool | Read | 当任何 show_* 标志设置在此标签或系列默认时,则是真. |
data_label_format | 'IDataLabelFormat' | Read | 标签的格式. |
text_format | 'IChartTextFormat' | Read | 图表文本格式. |
x | float | 阅读/写作 | 得到或设置x. |
y | float | 阅读/写作 | 得到或设置y. |
width | float | 阅读/写作 | 得到或设置宽度. |
height | float | 阅读/写作 | 得到或设置高度. |
right | float | Read | 得到了正确的. |
bottom | float | Read | 得到了底部. |
text_frame_for_overriding | 'ITextFrame' | Read | 覆盖该标签的文本框,或没有. |
value_from_cell | 'IChartDataCell' | 阅读/写作 | 值作为标签文本的工作簿单元格. |
as_i_chart_component | IChartComponent | Read | 允许获得基本的 IChartComponent 接口. |
as_i_slide_component | ISlideComponent | Read | 得到了作为i滑动组件. |
as_i_presentation_component | IPresentationComponent | Read | 得到了作为i的表达组件. |
actual_x | float | Read | 指定图表元素的实际x位置 (左) 与图片上角左右. |
actual_y | float | Read | 指定图表元素的实际顶部与图片上左角相对. |
actual_width | float | Read | 指定图表元素的实际宽度. |
actual_height | float | Read | 指定图表元素的实际高度. |
Methods
| Signature | Description |
|---|---|
add_text_frame_for_overriding(text: str) → 'ITextFrame' | 创建或用初始文本替换重点的文字框. |
get_actual_label_text() → str | 如果存在,则返回明确的覆盖文本. |
hide() | 隐藏这个标签,设置 <c:delete val=‘1’/>. |