常量

以下这些常量定义了当前支持的图表类型:

  1. const (
  2. Bar = "bar"
  3. BarStacked = "barStacked"
  4. BarPercentStacked = "barPercentStacked"
  5. Bar3DClustered = "bar3DClustered"
  6. Bar3DStacked = "bar3DStacked"
  7. Bar3DPercentStacked = "bar3DPercentStacked"
  8. Col = "col"
  9. ColStacked = "colStacked"
  10. ColPercentStacked = "colPercentStacked"
  11. Col3DClustered = "col3DClustered"
  12. Col3D = "col3D"
  13. Col3DStacked = "col3DStacked"
  14. Col3DPercentStacked = "col3DPercentStacked"
  15. Doughnut = "doughnut"
  16. Line = "line"
  17. Pie = "pie"
  18. Pie3D = "pie3D"
  19. Radar = "radar"
  20. Scatter = "scatter"
  21. )

以下这些常量定义了 XML 标签的命名空间:

  1. const (
  2. SourceRelationship = "http://schemas.openxmlformats.org/officeDocument/2006/relationships"
  3. SourceRelationshipChart = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart"
  4. SourceRelationshipComments = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments"
  5. SourceRelationshipImage = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/image"
  6. SourceRelationshipTable = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/table"
  7. SourceRelationshipDrawingML = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing"
  8. SourceRelationshipDrawingVML = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/vmlDrawing"
  9. SourceRelationshipHyperLink = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink"
  10. SourceRelationshipWorkSheet = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet"
  11. SourceRelationshipChart201506 = "http://schemas.microsoft.com/office/drawing/2015/06/chart"
  12. SourceRelationshipChart20070802 = "http://schemas.microsoft.com/office/drawing/2007/8/2/chart"
  13. SourceRelationshipChart2014 = "http://schemas.microsoft.com/office/drawing/2014/chart"
  14. SourceRelationshipCompatibility = "http://schemas.openxmlformats.org/markup-compatibility/2006"
  15. NameSpaceDrawingML = "http://schemas.openxmlformats.org/drawingml/2006/main"
  16. NameSpaceDrawingMLChart = "http://schemas.openxmlformats.org/drawingml/2006/chart"
  17. NameSpaceDrawingMLSpreadSheet = "http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing"
  18. NameSpaceSpreadSheet = "http://schemas.openxmlformats.org/spreadsheetml/2006/main"
  19. NameSpaceXML = "http://www.w3.org/XML/1998/namespace"
  20. )

下面的常量定义了 EMU (English Metric Units) 单位:

  1. const (
  2. EMU int = 9525
  3. )

下面的常量定义了 XML 文档中的独立声明:

  1. const XMLHeader = "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n"

以下这些常量定义了当前支持的数据验证类型:

  1. const (
  2. DataValidationTypeCustom
  3. DataValidationTypeDate
  4. DataValidationTypeDecimal
  5. DataValidationTypeTextLeng
  6. DataValidationTypeTime
  7. DataValidationTypeWhole
  8. )

以下这些常量定义了当前支持的数据验证条件:

  1. const (
  2. DataValidationOperatorBetween
  3. DataValidationOperatorEqual
  4. DataValidationOperatorGreaterThan
  5. DataValidationOperatorGreaterThanOrEqual
  6. DataValidationOperatorLessThan
  7. DataValidationOperatorLessThanOrEqual
  8. DataValidationOperatorNotBetween
  9. DataValidationOperatorNotEqual
  10. )