[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.IDataBar.PercentMax

PercentMax Property

PercentMax

Gets or sets the length of the longest data bar as a percentage of the cell width.

Use this property to determine or change the maximum visual length applied to data bars in the conditional formatting rule.

Declaration
int PercentMax { get; set; }
Property PercentMax As Integer
Examples
worksheet.Range["A1:A3"].Value = new object[,] {{10}, {30}, {20}};
IDataBar dataBar = worksheet.Range["A1:A3"].FormatConditions.AddDatabar();
dataBar.PercentMax = 80;
int percentMax = dataBar.PercentMax;