GetNPars Method

Build 1501 on 14/Nov/2017  This topic last edited on: 10/Oct/2016, at 13:09

Description

Returns the number of parameters of the style associated with the object (or -1 if no style is associated to the object).

Syntax

object.GetNPars

object

Required. Object name, returned by Text.GetTextStyle and GetParaStyle.

Remarks

This script gets the current text style and display its number of parameters:

Dim objStyle = Text.GetTextStyle

msgbox ("Parameters=" & objStyle.GetNPars)