[]
Returns the number of objects in the collection.
This property returns the number of IScenario objects in the scenario collection for the current worksheet.
int Count { get; }
ReadOnly Property Count As Integer
worksheet.Range["B2"].Value = 0.05;
worksheet.Range["B3"].Value = 0.08;
IRange range = worksheet.Range["B2:B3"];
worksheet.Scenarios.Add("Discount Plan", range);
int count = worksheet.Scenarios.Count;