Dzwebs.Net

撰写电脑技术杂文十余年

VBA中的ThreeDFormat对象

Admin | 2014-2-1 8:29:04 | 被阅次数 | 6277

温馨提示!

如果未能解决您的问题,请点击搜索;登陆可复制文章,点击登陆

  ThreeDFormat 对象

  代表形状的三维格式。

  使用 ThreeDFormat 对象

  使用 ThreeD 属性可返回一个 ThreeDFormat 对象。以下示例向 myDocument 中添加一个椭圆,然后指定该椭圆被挤压 50 磅的深度且延伸为紫色。

  Set myDocument = ActivePresentation.Slides(1)
  Set myShape = myDocument.Shapes _
      .AddShape(msoShapeOval, 90, 90, 90, 40)
  With myShape.ThreeD
      .Visible = True
      .Depth = 50
      'RGB value for purple
      .ExtrusionColor.RGB = RGB(255, 100, 255)
  End With

  说明:

  不能对某些形状应用三维格式,例如斜截形状或多处间断的路径。对这些形状,ThreeDFormat 对象的大多数属性和方法将失败。


该杂文来自: PowerPoint杂文

上一篇:给PPT幻灯片加密码的方法

下一篇:TimeLine与Timing在PPT中的用法

网站备案号:

网站备案号:滇ICP备11001339号-7

版权属性:

Copyright 2007-2021-forever Inc. all Rights Reserved.

联系方式:

Email:dzwebs@126.com QQ:83539231 访问统计