[]
Gets the number of IStyle objects in the collection.
This count includes the named styles available in the workbook, such as built-in styles and any custom styles added to the collection.
int Count { get; }
ReadOnly Property Count As Integer
IStyleCollection styles = workbook.Styles;
styles.Add("DataStyle");
int count = styles.Count;