B-Arts DocumentationIndice generale

BExcelRole - Esempi

BExcelRole role = new(BExcelRole.eDestination.Column, "Balance")
{
  CheckRole = row => BConvert.ToDouble(row?["Balance"]) < 0d
};

BExcelStyle negative = new(BExcelStyle.eActions.Role, "Negative")
{
  Role = role,
  FontStyle = new BExcelFontStyle("Calibri") { Color = "#C00000" }
};

Una destinazione Column richiede columnName; Row applica invece lo stile all'intera riga. Il delegate riceve la DataRow corrente.