[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.IScenarios.Count

Count Property

Count

Returns the number of objects in the collection.

This property returns the number of IScenario objects in the scenario collection for the current worksheet.

Declaration
int Count { get; }
ReadOnly Property Count As Integer
Examples
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;