我目前正在通过Java Spreadsheet API对我的电子表格进行一些操作,但我在文档中找不到(https://developers.google.com/google-apps/spreadsheets/#working_with_cell-based_feeds)如何设置文本背景颜色
代码:
Map<Long, Integer> categoryStatisticsMap = populateSheetWithCategoryStatistics(statsHolder);
URL cellFeedUrl = worksheet.getCellFeedUrl();
CellFeed cellFeed = service.getFeed(cellFeedUrl, CellFeed.class);
for (Map.Entry<Long, Integer> entry : leadToCellMap.entrySet()) {
CellEntry cellEntry= new CellEntry(entry.getValue(), currentColumn, ""+categoryStatisticsMap.get(entry.getKey()));
//cellEntry.whereIsTheMethodForSettingTheColorAndOtherStuffLikeBorders
cellFeed.insert(cellEntry);
}
我猜你没有在cellEntry上设置它...你能指出我正确的方向吗?