您好,我们没有直接的接口进行设置,您可以通过重写GC.Spread.Sheets.CellTypes.Text.prototype.paint;方法来实现,像这样:
var oldPaint = GC.Spread.Sheets.CellTypes.Text.prototype.paint;
GC.Spread.Sheets.CellTypes.Text.prototype.paint = function (ctx, value, x, y, w, h, style, context) {
if(value === 0){
oldPaint.call(this, ctx, "", x, y, w, h, style, context);
}
else{
oldPaint.apply(this, arguments);
}
} |