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

ColorScheme.Name 属性 (发布服务器)ColorScheme.Name Property (Publisher)

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

返回一个字符串值,该值指示指定的对象的名称。只读的。Returns a String value indicating the name of the specified object. Read-only.

语法Syntax

表达式名称expression. Name

_expression_A 变量,表示添加的配色方案。_expression_A variable that represents a ColorScheme object.

注解Remarks

可用于对象的名称一起使用Item方法或Item属性返回对对象的引用,如果Item方法或属性的包含对象的集合使用variant 类型的值参数。例如,如果某个形状的Name属性的值为矩形 2,然后.Shapes("Rectangle 2")将返回到该形状的引用。You can use an object's name in conjunction with the Item method or Item property to return a reference to the object if the Item method or property for the collection that contains the object takes a Variant argument. For example, if the value of the Name property for a shape is Rectangle 2, then .Shapes("Rectangle 2") will return a reference to that shape.

Name属性是艺术型边框BorderArtFormat标签对象的默认属性。The Name property is the default property for the BorderArt, BorderArtFormat, and Label objects.

示例Example

本示例报告活动出版物的配色方案的名称。This example reports the name of the color scheme for the active publication.

MsgBox "The current color scheme is " _ 
 &; ActiveDocument.ColorScheme.Name &; "."
© 2018 Microsoft