Skip to content
本页内容

PresetTexture (属性)

返回指定填充的预设纹理。MsoPresetTexture,只读。

说明

使用 PresetTextured方法可设置填充的预设纹理。

示例

python
#本示例显示第一张工作表中第一个形状填充的预设纹理是否为水滴纹理
def test():
    fillFormat = Application.Worksheets.Item(1).Shapes.Item(1).Fill
    print(fillFormat.PresetTexture == msoTextureWaterDroplets)
python
#本示例判断活动工作表中第二个形状的预设纹理
def test():
    fillFormat = ActiveSheet.Shapes.Item(2).Fill
    if fillFormat.PresetTexture == msoPresetTextureMixed:
        print("未使用纹理")
    else:
        print("其它纹理")