@@ -3236,6 +3236,9 @@ LoadFormat_Azw3 LoadFormat = 53
3236
3236
// Represents a CHM file.
3237
3237
LoadFormat_Chm LoadFormat = 54
3238
3238
3239
+ // Represents a Markdown file.
3240
+ LoadFormat_Markdown LoadFormat = 55
3241
+
3239
3242
// Represents unrecognized format, cannot be loaded.
3240
3243
LoadFormat_Unknown LoadFormat = 255
3241
3244
@@ -3272,6 +3275,7 @@ func Int32ToLoadFormat(value int32)(LoadFormat ,error){
3272
3275
case 52: return LoadFormat_Epub, nil
3273
3276
case 53: return LoadFormat_Azw3, nil
3274
3277
case 54: return LoadFormat_Chm, nil
3278
+ case 55: return LoadFormat_Markdown, nil
3275
3279
case 255: return LoadFormat_Unknown, nil
3276
3280
case 254: return LoadFormat_Image, nil
3277
3281
case 513: return LoadFormat_Json, nil
@@ -7864,6 +7868,23 @@ func Color_White() (*Color, error) {
7864
7868
7865
7869
return result, nil
7866
7870
}
7871
+ // Creates a Color from its 32-bit component (alpha, red, green, and blue) values.
7872
+ // Parameters:
7873
+ // value - int32
7874
+ // Returns:
7875
+ // Color
7876
+ func Color_FromArgb(value int32) (*Color, error) {
7877
+
7878
+ CGoReturnPtr := C.Color_FromArgb(C.int(value))
7879
+ if CGoReturnPtr.error_no != 0 {
7880
+ err := errors.New(C.GoString(CGoReturnPtr.error_message))
7881
+ return nil, err
7882
+ }
7883
+ result := &Color{}
7884
+ result.ptr = CGoReturnPtr.return_value
7885
+
7886
+ return result, nil
7887
+ }
7867
7888
7868
7889
func DeleteColor(color *Color){
7869
7890
C.Delete_Color(color.ptr)
@@ -10978,6 +10999,20 @@ func (instance *Cell) IsFormula() (bool, error) {
10978
10999
10979
11000
return result, nil
10980
11001
}
11002
+ // Checks whether there is custom function(unsupported function) in this cell's formula.
11003
+ // Returns:
11004
+ // bool
11005
+ func (instance *Cell) GetHasCustomFunction() (bool, error) {
11006
+
11007
+ CGoReturnPtr := C.Cell_GetHasCustomFunction( instance.ptr)
11008
+ if CGoReturnPtr.error_no != 0 {
11009
+ err := errors.New(C.GoString(CGoReturnPtr.error_message))
11010
+ return true, err
11011
+ }
11012
+ result := bool(CGoReturnPtr.return_value)
11013
+
11014
+ return result, nil
11015
+ }
10981
11016
// Represents cell value type.
10982
11017
// Returns:
10983
11018
// int32
@@ -22111,6 +22146,35 @@ func (instance *DocxSaveOptions) IsNull() (bool, error) {
22111
22146
22112
22147
return result, nil
22113
22148
}
22149
+ // Save all drawing objecgts as editable shapes in word file.So you can edit them in Word.
22150
+ // Returns:
22151
+ // bool
22152
+ func (instance *DocxSaveOptions) GetSaveAsEditableShaps() (bool, error) {
22153
+
22154
+ CGoReturnPtr := C.DocxSaveOptions_GetSaveAsEditableShaps( instance.ptr)
22155
+ if CGoReturnPtr.error_no != 0 {
22156
+ err := errors.New(C.GoString(CGoReturnPtr.error_message))
22157
+ return true, err
22158
+ }
22159
+ result := bool(CGoReturnPtr.return_value)
22160
+
22161
+ return result, nil
22162
+ }
22163
+ // Save all drawing objecgts as editable shapes in word file.So you can edit them in Word.
22164
+ // Parameters:
22165
+ // value - bool
22166
+ // Returns:
22167
+ // void
22168
+ func (instance *DocxSaveOptions) SetSaveAsEditableShaps(value bool) error {
22169
+
22170
+ CGoReturnPtr := C.DocxSaveOptions_SetSaveAsEditableShaps( instance.ptr, C.bool(value))
22171
+ if CGoReturnPtr.error_no != 0 {
22172
+ err := errors.New(C.GoString(CGoReturnPtr.error_message))
22173
+ return err
22174
+ }
22175
+
22176
+ return nil
22177
+ }
22114
22178
// When characters in the Excel are Unicode and not be set with correct font in cell style,
22115
22179
// They may appear as block in pdf,image.
22116
22180
// Set the DefaultFont such as MingLiu or MS Gothic to show these characters.
@@ -32198,6 +32262,37 @@ func (instance *HtmlSaveOptions) SetHtmlVersion(value HtmlVersion) error {
32198
32262
32199
32263
return nil
32200
32264
}
32265
+ // Gets or sets the sheets to render. Default is all visible sheets in the workbook: <see cref="Aspose.Cells.Rendering.SheetSet.Visible"/>.
32266
+ // Returns:
32267
+ // SheetSet
32268
+ func (instance *HtmlSaveOptions) GetSheetSet() (*SheetSet, error) {
32269
+
32270
+ CGoReturnPtr := C.HtmlSaveOptions_GetSheetSet( instance.ptr)
32271
+ if CGoReturnPtr.error_no != 0 {
32272
+ err := errors.New(C.GoString(CGoReturnPtr.error_message))
32273
+ return nil, err
32274
+ }
32275
+ result := &SheetSet{}
32276
+ result.ptr = CGoReturnPtr.return_value
32277
+ runtime.SetFinalizer(result, DeleteSheetSet)
32278
+
32279
+ return result, nil
32280
+ }
32281
+ // Gets or sets the sheets to render. Default is all visible sheets in the workbook: <see cref="Aspose.Cells.Rendering.SheetSet.Visible"/>.
32282
+ // Parameters:
32283
+ // value - SheetSet
32284
+ // Returns:
32285
+ // void
32286
+ func (instance *HtmlSaveOptions) SetSheetSet(value *SheetSet) error {
32287
+
32288
+ CGoReturnPtr := C.HtmlSaveOptions_SetSheetSet( instance.ptr, value.ptr)
32289
+ if CGoReturnPtr.error_no != 0 {
32290
+ err := errors.New(C.GoString(CGoReturnPtr.error_message))
32291
+ return err
32292
+ }
32293
+
32294
+ return nil
32295
+ }
32201
32296
// Gets the save file format.
32202
32297
// Returns:
32203
32298
// int32
@@ -62348,6 +62443,21 @@ func (instance *Workbook) SetFileFormat(value FileFormatType) error {
62348
62443
62349
62444
return nil
62350
62445
}
62446
+ // Detects whether there is custom function used in this workbook,
62447
+ // such as in cell's formula, in defined names...
62448
+ // Returns:
62449
+ // bool
62450
+ func (instance *Workbook) GetHasCustomFunction() (bool, error) {
62451
+
62452
+ CGoReturnPtr := C.Workbook_GetHasCustomFunction( instance.ptr)
62453
+ if CGoReturnPtr.error_no != 0 {
62454
+ err := errors.New(C.GoString(CGoReturnPtr.error_message))
62455
+ return true, err
62456
+ }
62457
+ result := bool(CGoReturnPtr.return_value)
62458
+
62459
+ return result, nil
62460
+ }
62351
62461
// Gets and sets the interrupt monitor.
62352
62462
// Returns:
62353
62463
// AbstractInterruptMonitor
@@ -64602,22 +64712,6 @@ func (instance *Worksheet) GetQueryTables() (*QueryTableCollection, error) {
64602
64712
64603
64713
return result, nil
64604
64714
}
64605
- // Gets all pivot tables in this worksheet.
64606
- // Returns:
64607
- // PivotTableCollection
64608
- func (instance *Worksheet) GetPivotTables() (*PivotTableCollection, error) {
64609
-
64610
- CGoReturnPtr := C.Worksheet_GetPivotTables( instance.ptr)
64611
- if CGoReturnPtr.error_no != 0 {
64612
- err := errors.New(C.GoString(CGoReturnPtr.error_message))
64613
- return nil, err
64614
- }
64615
- result := &PivotTableCollection{}
64616
- result.ptr = CGoReturnPtr.return_value
64617
- runtime.SetFinalizer(result, DeletePivotTableCollection)
64618
-
64619
- return result, nil
64620
- }
64621
64715
// Represents worksheet type.
64622
64716
// Returns:
64623
64717
// int32
@@ -65004,6 +65098,22 @@ func (instance *Worksheet) RemoveSplit() error {
65004
65098
65005
65099
return nil
65006
65100
}
65101
+ // Gets all pivot tables in this worksheet.
65102
+ // Returns:
65103
+ // PivotTableCollection
65104
+ func (instance *Worksheet) GetPivotTables() (*PivotTableCollection, error) {
65105
+
65106
+ CGoReturnPtr := C.Worksheet_GetPivotTables( instance.ptr)
65107
+ if CGoReturnPtr.error_no != 0 {
65108
+ err := errors.New(C.GoString(CGoReturnPtr.error_message))
65109
+ return nil, err
65110
+ }
65111
+ result := &PivotTableCollection{}
65112
+ result.ptr = CGoReturnPtr.return_value
65113
+ runtime.SetFinalizer(result, DeletePivotTableCollection)
65114
+
65115
+ return result, nil
65116
+ }
65007
65117
// Gets all ListObjects in this worksheet.
65008
65118
// Returns:
65009
65119
// ListObjectCollection
@@ -66212,6 +66322,27 @@ func (instance *Worksheet) SetIsRulerVisible(value bool) error {
66212
66322
66213
66323
return nil
66214
66324
}
66325
+ // Gets selected ranges of cells in the designer spreadsheet.
66326
+ // Returns:
66327
+ // []Range
66328
+ func (instance *Worksheet) GetSelectedAreas() ([]Range, error) {
66329
+
66330
+ CGoReturnPtr := C.Worksheet_GetSelectedAreas( instance.ptr)
66331
+ if CGoReturnPtr.error_no != 0 {
66332
+ err := errors.New(C.GoString(CGoReturnPtr.error_message))
66333
+ return nil, err
66334
+ }
66335
+ result:= make([]Range, CGoReturnPtr.column_length)
66336
+ for i := 0; i < int(CGoReturnPtr.column_length); i++ {
66337
+ offset := uintptr(C.size_t(i)) * uintptr(CGoReturnPtr.size)
66338
+ goObject := &Range{}
66339
+ goObject.ptr =unsafe.Pointer(uintptr( unsafe.Pointer(CGoReturnPtr.return_value)) + offset)
66340
+ result[i] = *goObject
66341
+ }
66342
+
66343
+
66344
+ return result, nil
66345
+ }
66215
66346
// Represents worksheet tab color.
66216
66347
// Returns:
66217
66348
// Color
@@ -66242,6 +66373,36 @@ func (instance *Worksheet) SetTabColor(value *Color) error {
66242
66373
66243
66374
return nil
66244
66375
}
66376
+ // Gets and sets the color of gridline
66377
+ // Returns:
66378
+ // Color
66379
+ func (instance *Worksheet) GetGridlineColor() (*Color, error) {
66380
+
66381
+ CGoReturnPtr := C.Worksheet_GetGridlineColor( instance.ptr)
66382
+ if CGoReturnPtr.error_no != 0 {
66383
+ err := errors.New(C.GoString(CGoReturnPtr.error_message))
66384
+ return nil, err
66385
+ }
66386
+ result := &Color{}
66387
+ result.ptr = CGoReturnPtr.return_value
66388
+
66389
+ return result, nil
66390
+ }
66391
+ // Gets and sets the color of gridline
66392
+ // Parameters:
66393
+ // value - Color
66394
+ // Returns:
66395
+ // void
66396
+ func (instance *Worksheet) SetGridlineColor(value *Color) error {
66397
+
66398
+ CGoReturnPtr := C.Worksheet_SetGridlineColor( instance.ptr, value.ptr)
66399
+ if CGoReturnPtr.error_no != 0 {
66400
+ err := errors.New(C.GoString(CGoReturnPtr.error_message))
66401
+ return err
66402
+ }
66403
+
66404
+ return nil
66405
+ }
66245
66406
// Gets worksheet code name.
66246
66407
// Returns:
66247
66408
// string
@@ -67537,6 +67698,22 @@ func (instance *WorksheetCollection) RefreshPivotTables_PivotTableRefreshOption(
67537
67698
67538
67699
return result, nil
67539
67700
}
67701
+ // Represents all sensitivity labels.
67702
+ // Returns:
67703
+ // SensitivityLabelCollection
67704
+ func (instance *WorksheetCollection) GetSensitivityLabels() (*SensitivityLabelCollection, error) {
67705
+
67706
+ CGoReturnPtr := C.WorksheetCollection_GetSensitivityLabels( instance.ptr)
67707
+ if CGoReturnPtr.error_no != 0 {
67708
+ err := errors.New(C.GoString(CGoReturnPtr.error_message))
67709
+ return nil, err
67710
+ }
67711
+ result := &SensitivityLabelCollection{}
67712
+ result.ptr = CGoReturnPtr.return_value
67713
+ runtime.SetFinalizer(result, DeleteSensitivityLabelCollection)
67714
+
67715
+ return result, nil
67716
+ }
67540
67717
// Returns:
67541
67718
// int32
67542
67719
func (instance *WorksheetCollection) GetCount() (int32, error) {
0 commit comments