Skip to content
本页内容

PresetMaterial (属性)

返回或设置延伸部分的表面材料。MsoPresetMaterial,可读写。

说明

MsoPresetMaterial 可以是下列 MsoPresetMaterial 常量之一。
msoMaterialMatte
msoMaterialMetal
msoMaterialPlastic
msoMaterialWireFrame
msoPresetMaterialMixed

示例

python
#本示例指定第一张工作表中第一个形状的延伸表面为线框
def test():
    worksheet = Worksheets.Item(1)
    threeDFormat = worksheet.Shapes.Item(1).ThreeD
    threeDFormat.Visible = msoTrue
    threeDFormat.PresetMaterial = msoMaterialWireFrame
python
#本示例显示活动工作表中第二个形状延伸表面是否为金属
def test():
    shape = ActiveSheet.Shapes.Item(2)
    print(shape.ThreeD.PresetMaterial == msoMaterialMetal)