Enum CellValueFormatStrategy
Enum CellValueFormatStrategy
Namespace: Aspose.Cells
Assembly: Aspose.Cells.dll (25.2.0)
指定如何为单元格的值应用样式。
public enum CellValueFormatStrategy
字段
CellStyle = 1
仅使用单元格的原始样式格式化。
DisplayString = 3
获取在 ms excel 中显示的字符串。 与 Aspose.Cells.CellValueFormatStrategy.DisplayStyle 的主要区别在于此选项还考虑了列宽的影响。 如果列宽太小,无法完全显示格式化字符串, 则可能显示为 “#",就像 ms excel 的表现一样。
DisplayStyle = 2
使用单元格的显示样式进行格式化。
None = 0
未格式化。