Table of contents
TOC
折叠目录
展开目录

PictureFormat.ColorType 属性 (PowerPoint)PictureFormat.ColorType Property (PowerPoint)

office 365 dev account|上次更新日期: 2018/3/13
|
2 参与人员

返回或设置应用于指定的图片或 OLE 对象的颜色转换类型。读/写。Returns or sets the type of color transformation applied to the specified picture or OLE object. Read/write.

语法Syntax

表达式ColorTypeexpression. ColorType

表达式_一个表示PrintOptions对象的变量。_expression A variable that represents a PrintOptions object.

返回值Return Value

可读MsoPictureColorType

注解Remarks

ColorType属性的值可以是其中一个常量。The value of the ColorType property can be one of these MsoPictureColorType constants.

|| |:-----| |msoPictureAutomaticmsoPictureAutomatic| |msoPictureBlackAndWhitemsoPictureBlackAndWhite| |msoPictureGrayscalemsoPictureGrayscale| |msoPictureMixedmsoPictureMixed| |msoPictureWatermarkmsoPictureWatermark|

示例Example

本示例设置的颜色转换为灰度显示的第一个形状上myDocument。第一个形状必须是图片或 OLE 对象。This example sets the color transformation to grayscale for shape one on myDocument. Shape one must be either a picture or an OLE object.

Set myDocument = ActivePresentation.Slides(1)

myDocument.Shapes(1).PictureFormat.ColorType = msoPictureGrayScale

另请参阅See also

概念Concepts

PictureFormat 对象PictureFormat Object

© 2018 Microsoft