private void ApplyFont(DxfStyleData dsd, ref CellFormatData cfd) { if (dsd.Font != null && dsd.Font.Colour.m_type != ColourType.NotSet) { cfd.ApplyFont = "1"; if (dsd.Font.Colour.m_type == ColourType.Theme) { ResetFontThemeColour(dsd.Font.Colour.m_colourValue, ref cfd); } } }
private void ApplyFill(DxfStyleData dsd, ref CellFormatData cfd) { if (dsd.Fill != null && dsd.Fill.PatternFill != PatternType.None) { cfd.ApplyFill = ColourData.apply; cfd.FillData.PatternFill = dsd.Fill.PatternFill; if (dsd.Fill.ForeGroundColour.m_type == ColourType.Theme) { ResetForegroundFillThemeColour(dsd.Fill.ForeGroundColour.m_colourValue, ref cfd); } if (dsd.Fill.BackGroundColour.m_type == ColourType.Theme) { ResetBackgroundFillThemeColour(dsd.Fill.BackGroundColour.m_colourValue, ref cfd); } } }
private void ApplyStyle(DxfStyleData dsd, ref CellFormatData cfd) { ApplyFont(dsd, ref cfd); ApplyFill(dsd, ref cfd); }