如何使用Java检查单元格在Google Sheets API中是否具有删除线格式

时间:2019-01-22 11:23:15

标签: java google-sheets-api

public java.lang.Boolean getStrikethrough()//True if the text has a strikethrough.

CellData setUserEnteredValue = new CellData()
            .setUserEnteredValue(new ExtendedValue().setStringValue("example text"));

CellFormat cellFormat = new CellFormat();
cellFormat.getTextFormat(new TextFormat().getStrikethrough());

setUserEnteredValue.setUserEnteredFormat(cellFormat);

0 个答案:

没有答案