Documentation ¶
Index ¶
- Constants
- type Col
- type Cols
- type Data
- type FormatProperty
- type MergeCell
- type MergeCells
- type Sheet
- func (s *Sheet) Filepath() string
- func (s *Sheet) Id() string
- func (s *Sheet) Marshal() ([]byte, error)
- func (s *Sheet) Name() string
- func (s *Sheet) RelationshipId() string
- func (s *Sheet) SetBaseColWidth(num int) *Sheet
- func (s *Sheet) SetCellWithNumber(ri, ci uint64, number interface{}) *Sheet
- func (s *Sheet) SetCellWithText(ri, ci uint64, text string) *Sheet
- func (s *Sheet) SetCellWithValue(ri, ci uint64, value interface{}) *Sheet
- func (s *Sheet) SetDefaultColWidth(width int) *Sheet
- func (s *Sheet) SetDefaultRowHeight(height int) *Sheet
- func (s *Sheet) SetName(name string) *Sheet
- type View
- type Views
Constants ¶
View Source
const ( RelationShipType = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet" ContentType = "application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Data ¶
type Data struct { XMLName xml.Name `xml:"sheetData"` Rows []*row.Row `xml:"row"` // contains filtered or unexported fields }
func (*Data) MarshalXML ¶
func (*Data) SetCellWithNumber ¶
SetCellWithNumber 设置单元格并将单元格内容设置为数字类型(整形与浮点型)
func (*Data) SetCellWithText ¶
SetCellWithText 设置多行文本 TODO 需要实现SharedStringTable
func (*Data) SetCellWithValue ¶
SetCellWithValue 设置单元格并将单元格内容设置为行内字符串 设置多行字符串请使用 SetCellWithText 方法
type FormatProperty ¶
type MergeCells ¶
type Sheet ¶
type Sheet struct { XMLName xml.Name `xml:"worksheet"` RootNamespace string `xml:"xmlns,attr"` Views *Views Format *FormatProperty Data *Data Cols *Cols // contains filtered or unexported fields }
Sheet 工作表定义
func (*Sheet) RelationshipId ¶
func (*Sheet) SetBaseColWidth ¶
func (*Sheet) SetCellWithNumber ¶
func (*Sheet) SetCellWithValue ¶
func (*Sheet) SetDefaultColWidth ¶
func (*Sheet) SetDefaultRowHeight ¶
Click to show internal directories.
Click to hide internal directories.