[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.IScenario.Comment

Comment Property

Comment

Gets or sets the comment text associated with the scenario.

Use this property to retrieve or update the descriptive text assigned to the scenario.

Declaration
string Comment { get; set; }
Property Comment As String
Examples
worksheet.Range["B2:B3"].Value = new object[,] {{10}, {20}};
IScenario scenario = worksheet.Scenarios.Add("Sales Plan", worksheet.Range["B2:B3"], null);
scenario.Comment = "Updated sales inputs";
string comment = scenario.Comment;