forked from p30928647/excelize
Update GoDoc and typo fixed
This commit is contained in:
parent
54def7eaad
commit
dc8210d4a7
|
@ -31,7 +31,7 @@ import (
|
|||
// Description | An explanation of the content of the resource.
|
||||
// |
|
||||
// LastModifiedBy | The user who performed the last modification. The identification is
|
||||
// | environment-specific.
|
||||
// | environment-specific.
|
||||
// |
|
||||
// Language | The language of the intellectual content of the resource.
|
||||
// |
|
||||
|
@ -40,7 +40,7 @@ import (
|
|||
// Revision | The topic of the content of the resource.
|
||||
// |
|
||||
// ContentStatus | The status of the content. For example: Values might include "Draft",
|
||||
// | "Reviewed", and "Final"
|
||||
// | "Reviewed" and "Final"
|
||||
// |
|
||||
// Category | A categorization of the content of this package.
|
||||
// |
|
||||
|
|
2
sheet.go
2
sheet.go
|
@ -1221,7 +1221,7 @@ func (f *File) GetPageLayout(sheet string, opts ...PageLayoutOptionPtr) error {
|
|||
}
|
||||
|
||||
// SetDefinedName provides a function to set the defined names of the workbook
|
||||
// or worksheet. If not specified scopr, the default scope is workbook.
|
||||
// or worksheet. If not specified scope, the default scope is workbook.
|
||||
// For example:
|
||||
//
|
||||
// f.SetDefinedName(&excelize.DefinedName{
|
||||
|
|
|
@ -1946,13 +1946,13 @@ func (f *File) NewConditionalStyle(style string) (int, error) {
|
|||
}
|
||||
|
||||
// GetDefaultFont provides the default font name currently set in the workbook
|
||||
// Documents generated by excelize start with Calibri
|
||||
// Documents generated by excelize start with Calibri.
|
||||
func (f *File) GetDefaultFont() string {
|
||||
font := f.readDefaultFont()
|
||||
return font.Name.Val
|
||||
}
|
||||
|
||||
// SetDefaultFont changes the default font in the workbook
|
||||
// SetDefaultFont changes the default font in the workbook.
|
||||
func (f *File) SetDefaultFont(fontName string) {
|
||||
font := f.readDefaultFont()
|
||||
font.Name.Val = fontName
|
||||
|
@ -1962,7 +1962,7 @@ func (f *File) SetDefaultFont(fontName string) {
|
|||
s.CellStyles.CellStyle[0].CustomBuiltIn = &custom
|
||||
}
|
||||
|
||||
// readDefaultFont provides an unmarshalled font value
|
||||
// readDefaultFont provides an unmarshalled font value.
|
||||
func (f *File) readDefaultFont() *xlsxFont {
|
||||
s := f.stylesReader()
|
||||
return s.Fonts.Font[0]
|
||||
|
|
Loading…
Reference in New Issue