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

Colors.Item 属性 (Visio)Colors.Item Property (Visio)

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

从集合中返回一个对象。Item属性是默认属性为所有集合,以及路径选择对象。只读的。Returns an object from a collection. The Item property is the default property for all collections, and for the Path and Selection objects. Read-only.

语法Syntax

表达式项目索引expression . Item( Index )

表达式_一个表示颜色集合的变量。_expression A variable that represents a Colors collection.

参数Parameters

名称Name必需/可选Required/Optional数据类型Data Type说明Description
IndexIndex必需RequiredLongLong包含要检索的对象的索引。Contains the index of the object to retrieve.

返回值Return Value

ColorColor

注解Remarks

当从集合中检索对象,您可以省略表达式中的Item ,因为它是所有集合的默认属性。下面的语句等效于上面给出的语法示例:When retrieving objects from a collection, you can omit Item from the expression because it is the default property for all collections. The following statement is equivalent to the syntax example given above:

objRet = object(index )
© 2018 Microsoft