Count: Integer;
The Count method returns the number of style containers in the styles table.
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: