跳转到内容

SwatchGroups

SwatchGroups

swatchGroups

描述

一组 SwatchGroup 对象的集合。


属性

SwatchGroups.length

swatchGroups.length

描述

集合中对象的数量。

类型

数字;只读。


SwatchGroups.parent

swatchGroups.parent

描述

对象的容器。

类型

对象;只读。


SwatchGroups.typename

swatchGroups.typename

描述

对象的类名。

类型

字符串;只读。


方法

SwatchGroups.add()

swatchGroups.add()

描述

创建一个色板组。

返回值

SwatchGroup


SwatchGroups.getByName()

swatchGroups.getByName(name)

描述

获取集合中第一个具有指定名称的元素。

参数

参数类型描述
name字符串要获取的元素的名称

返回值

SwatchGroup


SwatchGroups.removeAll()

swatchGroups.removeAll()

描述

删除集合中的所有元素。

返回值

无。