@@ -76,14 +76,42 @@ func parseFormatPictureSet(formatSet string) (*formatPicture, error) {
76
76
// }
77
77
// }
78
78
//
79
- // LinkType defines two types of hyperlink "External" for web site or
80
- // "Location" for moving to one of cell in this workbook. When the
81
- // "hyperlink_type" is "Location", coordinates need to start with "#".
79
+ // The optional parameter "autofit" specifies if make image size auto fits the
80
+ // cell, the default value of that is 'false'.
81
+ //
82
+ // The optional parameter "hyperlink" specifies the hyperlink of the image.
83
+ //
84
+ // The optional parameter "hyperlink_type" defines two types of
85
+ // hyperlink "External" for website or "Location" for moving to one of the
86
+ // cells in this workbook. When the "hyperlink_type" is "Location",
87
+ // coordinates need to start with "#".
88
+ //
89
+ // The optional parameter "positioning" defines two types of the position of a
90
+ // image in an Excel spreadsheet, "oneCell" (Move but don't size with
91
+ // cells) or "absolute" (Don't move or size with cells). If you don't set this
92
+ // parameter, the default positioning is move and size with cells.
93
+ //
94
+ // The optional parameter "print_obj" indicates whether the image is printed
95
+ // when the worksheet is printed, the default value of that is 'true'.
96
+ //
97
+ // The optional parameter "lock_aspect_ratio" indicates whether lock aspect
98
+ // ratio for the image, the default value of that is 'false'.
99
+ //
100
+ // The optional parameter "locked" indicates whether lock the image. Locking
101
+ // an object has no effect unless the sheet is protected.
102
+ //
103
+ // The optional parameter "x_offset" specifies the horizontal offset of the
104
+ // image with the cell, the default value of that is 0.
105
+ //
106
+ // The optional parameter "x_scale" specifies the horizontal scale of images,
107
+ // the default value of that is 1.0 which presents 100%.
108
+ //
109
+ // The optional parameter "y_offset" specifies the vertical offset of the
110
+ // image with the cell, the default value of that is 0.
111
+ //
112
+ // The optional parameter "y_scale" specifies the vertical scale of images,
113
+ // the default value of that is 1.0 which presents 100%.
82
114
//
83
- // Positioning defines two types of the position of a picture in an Excel
84
- // spreadsheet, "oneCell" (Move but don't size with cells) or "absolute"
85
- // (Don't move or size with cells). If you don't set this parameter, default
86
- // positioning is move and size with cells.
87
115
func (f * File ) AddPicture (sheet , cell , picture , format string ) error {
88
116
var err error
89
117
// Check picture exists first.
0 commit comments