//-------------------------------------- /// <summary> /// Retourne null si le format dynamique est égal au format /// </summary> /// <param name="eltAVariables"></param> /// <returns></returns> public CFormatChampTableauCroise GetFormatDynamique(CElementAVariablesDynamiques eltAVariables) { if (!IsDynamic) { return(null); } bool?bBold = GetBold(eltAVariables); Color foreColor = GetForeColor(eltAVariables); Color backColor = GetBackColor(eltAVariables); int nSize = GetFontSize(eltAVariables); if (bBold != Bold || foreColor != ForeColor || backColor != BackColor || nSize != FontSize) { CFormatChampTableauCroise format = new CFormatChampTableauCroise(); format.FontName = FontName; format.FontSize = nSize; format.Alignement = Alignement; format.ForeColor = foreColor; format.BackColor = backColor; format.Bold = bBold; return(format); } return(null); }
//--------------------------------------- public void InitFormatDefaut() { m_formatHeader = new CFormatChampTableauCroise(); m_formatHeader.BackColor = Color.Navy; m_formatHeader.ForeColor = Color.White; m_formatRows = new CFormatChampTableauCroise(); }