Documentation
¶
Rendered for windows/amd64
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Application ¶ added in v0.4.0
type Application interface {
sugar.Chain
// Workbooks returns the collection of all open workbooks.
Workbooks() Workbooks
// ActiveWorkbook returns the workbook that is currently active.
ActiveWorkbook() Workbook
// Quit quits the Excel application.
Quit() error
}
Application represents the Excel.Application object. It is the root of the Excel object model.
func GetApplication ¶ added in v0.4.0
func GetApplication(ctx sugar.Context) Application
GetApplication attaches to a running Excel instance.
func NewApplication ¶ added in v0.4.0
func NewApplication(ctx sugar.Context) Application
NewApplication creates a new Excel instance.
type Range ¶ added in v0.4.0
type Range interface {
sugar.Chain
// SetValue sets the value for the entire range.
SetValue(value interface{}) Range
// Cells returns a Range object representing a single cell relative to this range.
Cells(row, col interface{}) Range
}
Range represents a cell, a row, a column, or a selection of cells.
type Workbook ¶ added in v0.4.0
type Workbook interface {
sugar.Chain
// Worksheets returns the collection of all worksheets in the workbook.
Worksheets() Worksheets
// ActiveSheet returns the worksheet that is currently active.
ActiveSheet() Worksheet
// Save saves the workbook.
Save() error
// Close closes the workbook.
Close() error
}
Workbook represents a Workbook object.
type Workbooks ¶ added in v0.4.0
type Workbooks interface {
sugar.Chain
// Add creates a new empty workbook.
Add() Workbook
// Item returns a specific workbook by index or name.
Item(index interface{}) Workbook
}
Workbooks represents the Workbooks collection.
type Worksheet ¶ added in v0.4.0
type Worksheet interface {
sugar.Chain
// Range returns a Range object that represents a cell or a range of cells.
// Arguments can be "A1" or ("A1", "B2").
Range(cell1 interface{}, cell2 ...interface{}) Range
// Cells returns a Range object representing a single cell at (row, col).
Cells(row, col interface{}) Range
}
Worksheet represents a Worksheet object.
type Worksheets ¶ added in v0.4.0
type Worksheets interface {
sugar.Chain
// Item returns a specific worksheet by index or name.
Item(index interface{}) Worksheet
}
Worksheets represents the Worksheets collection.
Click to show internal directories.
Click to hide internal directories.