[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.IDataBar.SetLastPriority

SetLastPriority Method

SetLastPriority()

Sets the evaluation order for this data bar rule so it is evaluated after all other rules on the worksheet.

Use this method to move the current data bar rule to the end of the worksheet rule priority order.

Declaration
void SetLastPriority()
Sub SetLastPriority()
Examples
worksheet.Range["A1:B3"].Value = new object[,] {{10, 5}, {30, 15}, {20, 25}};
IDataBar firstDataBar = worksheet.Range["A1:A3"].FormatConditions.AddDatabar();
IDataBar secondDataBar = worksheet.Range["B1:B3"].FormatConditions.AddDatabar();
secondDataBar.SetLastPriority();