Background
Background
概述
Background 是 Aspose.Slides FOSS 中用于 Python 的一个类。继承自:PVIObject、IBackground。
表示幻灯片的背景。
此类提供 8 个方法,用于在 Python 程序中处理 Background 对象。可用的方法包括:as_i_fill_param_source、as_i_slide_component、effect_format、fill_format、get_effective、style_color、style_index、type。在安装 Aspose.Slides FOSS for Python 包后,所有公共成员均可被任何 Python 应用访问。属性:as_i_fill_param_source、as_i_presentation_component、as_i_slide_component、effect_format、fill_format、presentation,以及另外 4 项。
属性
| 名称 | 类型 | 访问 | 描述 |
|---|---|---|---|
type | BackgroundType | 读写 | 返回一种背景填充类型。 |
fill_format | IFillFormat | 读取 | 返回一个用于 BackgroundType.OwnBackground 填充的 FillFormat。 |
effect_format | IEffectFormat | 读取 | 返回一个 EffectFormat 用于 BackgroundType。OwnBackground 填充。 |
style_color | IColorFormat | 读取 | 返回一个 ColorFormat 用于 BackgroundType。主题填充。 |
style_index | int | 读写 | 返回一个 BackgroundType 的索引。主题填充在背景主题集合中。 |
as_i_slide_component | ISlideComponent | 读取 | 获取 as i slide 组件。 |
as_i_fill_param_source | IFillParamSource | 读取 | 获取 as i fill 参数源。 |
as_i_presentation_component | IPresentationComponent | 读取 | 允许获取基础 IPresentationComponent 接口。 |
slide | IBaseSlide | 读取 | 获取幻灯片。 |
presentation | IPresentation | 读取 | 获取演示。 |
方法
| 签名 | 描述 |
|---|---|
get_effective() → IBackgroundEffectiveData | 返回有效的背景数据,解析自 layout/master 的继承。 |
type() → BackgroundType | 返回背景填充类型 |
fill_format() → IFillFormat | 当背景使用其自身填充时,返回填充格式 |
effect_format() → IEffectFormat | 返回带有自身填充的背景的效果格式 |
style_color() → IColorFormat | 返回主题背景填充的颜色格式 |
style_index() → int | 返回主题集合中主题背景的索引 |
as_i_slide_component() → ISlideComponent | 为背景提供 ISlideComponent 接口 |
as_i_fill_param_source() → IFillParamSource | 为后台提供 IFillParamSource 接口 |