Legend
Legend
概述
Legend 是 Aspose.Slides FOSS 中用于 Python 的类。继承自:ILegend。
表示图表的图例属性。
属性:actual_height、actual_width、actual_x、actual_y、as_i_chart_component、as_i_presentation_component,以及另外 15 项。
属性
| 名称 | 类型 | 访问 | 描述 |
|---|---|---|---|
position | LegendPositionType | 读写 | 指定图例在图表上的位置。 |
overlay | bool | 读写 | 决定是否允许其他图表元素与图例重叠。 |
format | IFormat | 读取 | 返回图例的格式。 |
text_format | IChartTextFormat | 读取 | 文本格式。 |
entries | ILegendEntryCollection | 读取 | 获取图例条目。 |
x | float | 读写 | X 坐标为图表宽度的比例。 |
y | float | 读写 | Y 坐标为图表高度的比例。 |
width | float | 读写 | 宽度为图表宽度的比例。 |
height | float | 读写 | 高度占图表高度的比例。 |
right | float | 读取 | 右边界。 |
bottom | float | 读取 | 底部边界。 |
chart | `` | 读取 | 返回父 chart。 |
as_i_chart_component | IChartComponent | 读取 | 允许获取基础 IChartComponent 接口。 |
as_i_slide_component | ISlideComponent | 读取 | 获取 as i slide 组件。 |
slide | IBaseSlide | 读取 | 获取幻灯片。 |
as_i_presentation_component | IPresentationComponent | 读取 | 获取 as i 呈现组件。 |
presentation | IPresentation | 读取 | 获取呈现。 |
actual_x | float | 读取 | 指定图表元素相对于图表左上角的实际 x 位置(左)。 |
actual_y | float | 读取 | 指定图表元素相对于图表左上角的实际顶部位置。 |
actual_width | float | 读取 | 指定图表元素的实际宽度。 |
actual_height | float | 读取 | 指定图表元素的实际高度。 |