IStyleSheet.Count

Syntax

Count: Integer;

Description

The Count method returns the number of style containers in the styles table.

Example

Sub Main;

Var

MB: IMetabase;

StyleSheet: IStyleSheet;

i: Integer;

Begin

MB := MetabaseClass.Active;

StyleSheet := MB.ItemById("Global_Style").Bind As IStyleSheet;

i := StyleSheet.Count;

End Sub Main;

After executing the example the "i" variable contains the number of style containers for the styles table with the Global_Style identifier.

See also:

IStyleSheet