Returns the number of colors in the color table of the document.
Applies to: Document object
[[Let] countRet =] object.ColorsNum () |
The ColorsNum method syntax has these parts:
Part | Description |
object | Required. An expression that returns an instance of the Document object. |
countRet | Optional. A Long type variable. |
This method always returns a value greater than or equal to 1, because there's always at least one color in the color table of the document. By defalut the color table of a new document contains 256 colors.
See Also |
ColorEntry method, ColorEntry object |