Returns the number of the styles in the style collection of the document.
Applies to: Document object
[[Let] countRet =] object.StylesNum () |
The StyelsNum 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. |
If there are no styles in the style collection of the document, the StylesNum method returns 0.
See Also |
AddStyle method, FindStyle method, RemoveStyle method, RemoveStyleByName method, RenameStyle method, Style method, StyleByName method, Style object |