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 项。

属性

名称类型访问描述
typeBackgroundType读写返回一种背景填充类型。
fill_formatIFillFormat读取返回一个用于 BackgroundType.OwnBackground 填充的 FillFormat。
effect_formatIEffectFormat读取返回一个 EffectFormat 用于 BackgroundType。OwnBackground 填充。
style_colorIColorFormat读取返回一个 ColorFormat 用于 BackgroundType。主题填充。
style_indexint读写返回一个 BackgroundType 的索引。主题填充在背景主题集合中。
as_i_slide_componentISlideComponent读取获取 as i slide 组件。
as_i_fill_param_sourceIFillParamSource读取获取 as i fill 参数源。
as_i_presentation_componentIPresentationComponent读取允许获取基础 IPresentationComponent 接口。
slideIBaseSlide读取获取幻灯片。
presentationIPresentation读取获取演示。

方法

签名描述
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 接口

另请参阅

 中文