如何更改标题背景的颜色

我正在使用C#将一些数据写入Excel。 我想为橙色标题背景和白色字体着色。 这是我的代码

//write to excel method public void WriteToExcel(DataSet dsTicketData, string filePath) { //initialize excel stuff SpreadsheetDocument objSpreadsheet = SpreadsheetDocument.Create(filePath, SpreadsheetDocumentType.Workbook); WorkbookPart objWorkbookPart = objSpreadsheet.AddWorkbookPart(); objWorkbookPart.Workbook = new Workbook(); Sheets objSheets = objSpreadsheet.WorkbookPart.Workbook.AppendChild<Sheets>(new Sheets()); for (int j = 0; j < dsTicketData.Tables.Count; j++) { WorksheetPart wsp = objSpreadsheet.WorkbookPart.AddNewPart<WorksheetPart>(); wsp.Worksheet = new Worksheet(); wsp.Worksheet.AppendChild(new SheetData()); Sheet objSheet = new Sheet(); objSheet.Id = objSpreadsheet.WorkbookPart.GetIdOfPart(wsp); //create a new sheet with correct name objSheet.SheetId = (uint)j + 1; objSheet.Name = dsTicketData.Tables[j].TableName; objSheets.Append(objSheet); Stylesheet objStyleSheet = new Stylesheet(); for (int columnCount = 0; columnCount < dsTicketData.Tables[j].Columns.Count; columnCount++) { Cell objCell = InsertCellInWorksheet(GetExcelColumnName(columnCount + 1), 1, wsp); objCell.CellValue = new CellValue(dsTicketData.Tables[j].Columns[columnCount].Caption); objCell.DataType = new EnumValue<CellValues>(CellValues.String); //Here i want to give color to header which may be dynamic in range } 

我想在objCell中使用方法或属性?

我将如何去改变标题背景的颜色?