@@ -524,7 +524,7 @@ func AddComment(idx int, sheet *C.char, opts *C.struct_Comment) *C.char {
524524 return C .CString (emptyString )
525525}
526526
527- // AddFormControl provides the method to add form control button in a worksheet
527+ // AddFormControl provides the method to add form control object in a worksheet
528528// by given worksheet name and form control options. Supported form control
529529// type: button, check box, group box, label, option button, scroll bar and
530530// spinner. If set macro for the form control, the workbook extension should be
@@ -1126,70 +1126,6 @@ func GetCellValue(idx int, sheet, cell *C.char, opts *C.struct_Options) C.struct
11261126 return C.struct_StringErrorResult {val : C .CString (val ), err : C .CString (emptyString )}
11271127}
11281128
1129- // GetRowOutlineLevel provides a function to get outline level of a single row by given
1130- // worksheet name and row number. This function is concurrency safe.
1131- //
1132- //export GetRowOutlineLevel
1133- func GetRowOutlineLevel (idx int , sheet * C.char , row C.int ) C.struct_IntErrorResult {
1134- f , ok := files .Load (idx )
1135- if ! ok {
1136- return C.struct_IntErrorResult {val : C .int (0 ), err : C .CString (errFilePtr )}
1137- }
1138- val , err := f .(* excelize.File ).GetRowOutlineLevel (C .GoString (sheet ), int (row ))
1139- if err != nil {
1140- return C.struct_IntErrorResult {val : C .int (int32 (val )), err : C .CString (err .Error ())}
1141- }
1142- return C.struct_IntErrorResult {val : C .int (int32 (val )), err : C .CString (emptyString )}
1143- }
1144-
1145- // GetRowStyle provides a function to get row style ID by given worksheet
1146- // name and row number. This function is concurrency safe.
1147- //
1148- //export GetRowStyle
1149- func GetRowStyle (idx int , sheet * C.char , row C.int ) C.struct_IntErrorResult {
1150- f , ok := files .Load (idx )
1151- if ! ok {
1152- return C.struct_IntErrorResult {val : C .int (0 ), err : C .CString (errFilePtr )}
1153- }
1154- val , err := f .(* excelize.File ).GetRowStyle (C .GoString (sheet ), int (row ))
1155- if err != nil {
1156- return C.struct_IntErrorResult {val : C .int (val ), err : C .CString (err .Error ())}
1157- }
1158- return C.struct_IntErrorResult {val : C .int (val ), err : C .CString (emptyString )}
1159- }
1160-
1161- // GetRowVisible provides a function to get visible of a single row by given
1162- // worksheet name and row number. This function is concurrency safe.
1163- //
1164- //export GetRowVisible
1165- func GetRowVisible (idx int , sheet * C.char , row C.int ) C.struct_BoolErrorResult {
1166- f , ok := files .Load (idx )
1167- if ! ok {
1168- return C.struct_BoolErrorResult {val : C ._Bool (false ), err : C .CString (errFilePtr )}
1169- }
1170- val , err := f .(* excelize.File ).GetRowVisible (C .GoString (sheet ), int (row ))
1171- if err != nil {
1172- return C.struct_BoolErrorResult {val : C ._Bool (val ), err : C .CString (err .Error ())}
1173- }
1174- return C.struct_BoolErrorResult {val : C ._Bool (val ), err : C .CString (emptyString )}
1175- }
1176-
1177- // GetRowHeight provides a function to get row height by given worksheet name
1178- // and row number. This function is concurrency safe.
1179- //
1180- //export GetRowHeight
1181- func GetRowHeight (idx int , sheet * C.char , row C.int ) C.struct_Float64ErrorResult {
1182- f , ok := files .Load (idx )
1183- if ! ok {
1184- return C.struct_Float64ErrorResult {val : C .double (0 ), err : C .CString (errFilePtr )}
1185- }
1186- val , err := f .(* excelize.File ).GetRowHeight (C .GoString (sheet ), int (row ))
1187- if err != nil {
1188- return C.struct_Float64ErrorResult {val : C .double (val ), err : C .CString (err .Error ())}
1189- }
1190- return C.struct_Float64ErrorResult {val : C .double (val ), err : C .CString (emptyString )}
1191- }
1192-
11931129// GetColOutlineLevel provides a function to get outline level of a single
11941130// column by given worksheet name and column name.
11951131//
@@ -1293,6 +1229,38 @@ func GetDefaultFont(idx int) C.struct_StringErrorResult {
12931229 return C.struct_StringErrorResult {val : C .CString (val ), err : C .CString (emptyString )}
12941230}
12951231
1232+ // GetRowHeight provides a function to get row height by given worksheet name
1233+ // and row number.
1234+ //
1235+ //export GetRowHeight
1236+ func GetRowHeight (idx int , sheet * C.char , row C.int ) C.struct_Float64ErrorResult {
1237+ f , ok := files .Load (idx )
1238+ if ! ok {
1239+ return C.struct_Float64ErrorResult {val : C .double (0 ), err : C .CString (errFilePtr )}
1240+ }
1241+ val , err := f .(* excelize.File ).GetRowHeight (C .GoString (sheet ), int (row ))
1242+ if err != nil {
1243+ return C.struct_Float64ErrorResult {val : C .double (val ), err : C .CString (err .Error ())}
1244+ }
1245+ return C.struct_Float64ErrorResult {val : C .double (val ), err : C .CString (emptyString )}
1246+ }
1247+
1248+ // GetRowOutlineLevel provides a function to get outline level of a single row
1249+ // by given worksheet name and row number.
1250+ //
1251+ //export GetRowOutlineLevel
1252+ func GetRowOutlineLevel (idx int , sheet * C.char , row C.int ) C.struct_IntErrorResult {
1253+ f , ok := files .Load (idx )
1254+ if ! ok {
1255+ return C.struct_IntErrorResult {val : C .int (0 ), err : C .CString (errFilePtr )}
1256+ }
1257+ val , err := f .(* excelize.File ).GetRowOutlineLevel (C .GoString (sheet ), int (row ))
1258+ if err != nil {
1259+ return C.struct_IntErrorResult {val : C .int (int32 (val )), err : C .CString (err .Error ())}
1260+ }
1261+ return C.struct_IntErrorResult {val : C .int (int32 (val )), err : C .CString (emptyString )}
1262+ }
1263+
12961264// GetRowVisible provides a function to get visible of a single row by given
12971265// worksheet name and Excel row number.
12981266//
0 commit comments