@@ -165,25 +165,20 @@ type xlsxSheetFormatPr struct {
165
165
OutlineLevelCol uint8 `xml:"outlineLevelCol,attr,omitempty"`
166
166
}
167
167
168
- // xlsxSheetViews directly maps the sheetViews element in the namespace
169
- // http://schemas.openxmlformats.org/spreadsheetml/2006/main - Worksheet views
170
- // collection.
168
+ // xlsxSheetViews represents worksheet views collection.
171
169
type xlsxSheetViews struct {
172
170
XMLName xml.Name `xml:"sheetViews"`
173
171
SheetView []xlsxSheetView `xml:"sheetView"`
174
172
}
175
173
176
- // xlsxSheetView directly maps the sheetView element in the namespace
177
- // http://schemas.openxmlformats.org/spreadsheetml/2006/main - currently I have
178
- // not checked it for completeness - it does as much as I need. A single sheet
179
- // view definition. When more than one sheet view is defined in the file, it
180
- // means that when opening the workbook, each sheet view corresponds to a
181
- // separate window within the spreadsheet application, where each window is
182
- // showing the particular sheet containing the same workbookViewId value, the
183
- // last sheetView definition is loaded, and the others are discarded. When
184
- // multiple windows are viewing the same sheet, multiple sheetView elements
185
- // (with corresponding workbookView entries) are saved.
186
- // See https://docs.microsoft.com/en-us/dotnet/api/documentformat.openxml.spreadsheet.sheetview
174
+ // xlsxSheetView represents a single sheet view definition. When more than one
175
+ // sheet view is defined in the file, it means that when opening the workbook,
176
+ // each sheet view corresponds to a separate window within the spreadsheet
177
+ // application, where each window is showing the particular sheet containing
178
+ // the same workbookViewId value, the last sheetView definition is loaded, and
179
+ // the others are discarded. When multiple windows are viewing the same sheet,
180
+ // multiple sheetView elements (with corresponding workbookView entries) are
181
+ // saved.
187
182
type xlsxSheetView struct {
188
183
WindowProtection bool `xml:"windowProtection,attr,omitempty"`
189
184
ShowFormulas bool `xml:"showFormulas,attr,omitempty"`
@@ -245,31 +240,27 @@ type xlsxSheetPr struct {
245
240
PageSetUpPr * xlsxPageSetUpPr `xml:"pageSetUpPr,omitempty"`
246
241
}
247
242
248
- // xlsxOutlinePr maps to the outlinePr element
249
- // SummaryBelow allows you to adjust the direction of grouper controls
243
+ // xlsxOutlinePr maps to the outlinePr element. SummaryBelow allows you to
244
+ // adjust the direction of grouper controls.
250
245
type xlsxOutlinePr struct {
251
246
SummaryBelow bool `xml:"summaryBelow,attr"`
252
247
}
253
248
254
- // xlsxPageSetUpPr directly maps the pageSetupPr element in the namespace
255
- // http://schemas.openxmlformats.org/spreadsheetml/2006/main - Page setup
256
- // properties of the worksheet.
249
+ // xlsxPageSetUpPr expresses page setup properties of the worksheet.
257
250
type xlsxPageSetUpPr struct {
258
251
AutoPageBreaks bool `xml:"autoPageBreaks,attr,omitempty"`
259
- FitToPage bool `xml:"fitToPage,attr,omitempty"` // Flag indicating whether the Fit to Page print option is enabled.
252
+ FitToPage bool `xml:"fitToPage,attr,omitempty"`
260
253
}
261
254
262
- // xlsxTabColor directly maps the tabColor element in the namespace currently I
263
- // have not checked it for completeness - it does as much as I need.
255
+ // xlsxTabColor represents background color of the sheet tab.
264
256
type xlsxTabColor struct {
265
257
RGB string `xml:"rgb,attr,omitempty"`
266
258
Theme int `xml:"theme,attr,omitempty"`
267
259
Tint float64 `xml:"tint,attr,omitempty"`
268
260
}
269
261
270
- // xlsxCols directly maps the cols element in the namespace
271
- // http://schemas.openxmlformats.org/spreadsheetml/2006/main - currently I have
272
- // not checked it for completeness - it does as much as I need.
262
+ // xlsxCols defines column width and column formatting for one or more columns
263
+ // of the worksheet.
273
264
type xlsxCols struct {
274
265
XMLName xml.Name `xml:"cols"`
275
266
Col []xlsxCol `xml:"col"`
@@ -293,18 +284,18 @@ type xlsxCol struct {
293
284
// xlsxDimension directly maps the dimension element in the namespace
294
285
// http://schemas.openxmlformats.org/spreadsheetml/2006/main - This element
295
286
// specifies the used range of the worksheet. It specifies the row and column
296
- // bounds of used cells in the worksheet. This is optional and is not required.
297
- // Used cells include cells with formulas, text content, and cell formatting.
298
- // When an entire column is formatted, only the first cell in that column is
299
- // considered used.
287
+ // bounds of used cells in the worksheet. This is optional and is not
288
+ // required. Used cells include cells with formulas, text content, and cell
289
+ // formatting. When an entire column is formatted, only the first cell in that
290
+ // column is considered used.
300
291
type xlsxDimension struct {
301
292
XMLName xml.Name `xml:"dimension"`
302
293
Ref string `xml:"ref,attr"`
303
294
}
304
295
305
- // xlsxSheetData directly maps the sheetData element in the namespace
306
- // http://schemas.openxmlformats.org/spreadsheetml/2006/main - currently I have
307
- // not checked it for completeness - it does as much as I need .
296
+ // xlsxSheetData collection represents the cell table itself. This collection
297
+ // expresses information about each cell, grouped together by rows in the
298
+ // worksheet .
308
299
type xlsxSheetData struct {
309
300
XMLName xml.Name `xml:"sheetData"`
310
301
Row []xlsxRow `xml:"row"`
@@ -440,9 +431,9 @@ type DataValidation struct {
440
431
Formula2 string `xml:",innerxml"`
441
432
}
442
433
443
- // xlsxC directly maps the c element in the namespace
444
- // http://schemas.openxmlformats.org/spreadsheetml/2006/main - currently I have
445
- // not checked it for completeness - it does as much as I need .
434
+ // xlsxC collection represents a cell in the worksheet. Information about the
435
+ // cell's location (reference), value, data type, formatting, and formula is
436
+ // expressed here .
446
437
//
447
438
// This simple type is restricted to the values listed in the following table:
448
439
//
@@ -472,9 +463,8 @@ func (c *xlsxC) hasValue() bool {
472
463
return c .S != 0 || c .V != "" || c .F != nil || c .T != ""
473
464
}
474
465
475
- // xlsxF directly maps the f element in the namespace
476
- // http://schemas.openxmlformats.org/spreadsheetml/2006/main - currently I have
477
- // not checked it for completeness - it does as much as I need.
466
+ // xlsxF represents a formula for the cell. The formula expression is
467
+ // contained in the character node of this element.
478
468
type xlsxF struct {
479
469
Content string `xml:",chardata"`
480
470
T string `xml:"t,attr,omitempty"` // Formula type
0 commit comments