summaryrefslogtreecommitdiff
path: root/cellmerged.go
diff options
context:
space:
mode:
authorxuri <xuri.me@gmail.com>2019-06-05 22:06:15 +0800
committerxuri <xuri.me@gmail.com>2019-06-05 22:06:15 +0800
commitcff16fa8118291fd885f3f3f75fa07e28bba5eec (patch)
treed9f40d1d142fff835df50f0011020cbb1a00ad76 /cellmerged.go
parentdb99373b25a3f5c986d8f7d26ec983853574a17d (diff)
- Supplemental worksheet struct fields and field order adjustment
- Testing case for set and get doc properties - Update charts struct XML tags
Diffstat (limited to 'cellmerged.go')
-rw-r--r--cellmerged.go14
1 files changed, 12 insertions, 2 deletions
diff --git a/cellmerged.go b/cellmerged.go
index 5392463..a78b244 100644
--- a/cellmerged.go
+++ b/cellmerged.go
@@ -1,8 +1,18 @@
+// Copyright 2016 - 2019 The excelize Authors. All rights reserved. Use of
+// this source code is governed by a BSD-style license that can be found in
+// the LICENSE file.
+//
+// Package excelize providing a set of functions that allow you to write to
+// and read from XLSX files. Support reads and writes XLSX file generated by
+// Microsoft Excelâ„¢ 2007 and later. Support save file without losing original
+// charts of XLSX. This library needs Go version 1.8 or later.
+
package excelize
import "strings"
-// GetMergeCells provides a function to get all merged cells from a worksheet currently.
+// GetMergeCells provides a function to get all merged cells from a worksheet
+// currently.
func (f *File) GetMergeCells(sheet string) ([]MergeCell, error) {
var mergeCells []MergeCell
xlsx, err := f.workSheetReader(sheet)
@@ -45,4 +55,4 @@ func (m *MergeCell) GetStartAxis() string {
func (m *MergeCell) GetEndAxis() string {
axis := strings.Split((*m)[0], ":")
return axis[1]
-} \ No newline at end of file
+}