@@ -3236,6 +3236,9 @@ LoadFormat_Azw3 LoadFormat = 53
32363236// Represents a CHM file.
32373237LoadFormat_Chm LoadFormat = 54
32383238
3239+ // Represents a Markdown file.
3240+ LoadFormat_Markdown LoadFormat = 55
3241+
32393242// Represents unrecognized format, cannot be loaded.
32403243LoadFormat_Unknown LoadFormat = 255
32413244
@@ -3272,6 +3275,7 @@ func Int32ToLoadFormat(value int32)(LoadFormat ,error){
32723275 case 52: return LoadFormat_Epub, nil
32733276 case 53: return LoadFormat_Azw3, nil
32743277 case 54: return LoadFormat_Chm, nil
3278+ case 55: return LoadFormat_Markdown, nil
32753279 case 255: return LoadFormat_Unknown, nil
32763280 case 254: return LoadFormat_Image, nil
32773281 case 513: return LoadFormat_Json, nil
@@ -7864,6 +7868,23 @@ func Color_White() (*Color, error) {
78647868
78657869 return result, nil
78667870}
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+ }
78677888
78687889func DeleteColor(color *Color){
78697890 C.Delete_Color(color.ptr)
@@ -10978,6 +10999,20 @@ func (instance *Cell) IsFormula() (bool, error) {
1097810999
1097911000 return result, nil
1098011001}
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+ }
1098111016// Represents cell value type.
1098211017// Returns:
1098311018// int32
@@ -22111,6 +22146,35 @@ func (instance *DocxSaveOptions) IsNull() (bool, error) {
2211122146
2211222147 return result, nil
2211322148}
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+ }
2211422178// When characters in the Excel are Unicode and not be set with correct font in cell style,
2211522179// They may appear as block in pdf,image.
2211622180// Set the DefaultFont such as MingLiu or MS Gothic to show these characters.
@@ -32198,6 +32262,37 @@ func (instance *HtmlSaveOptions) SetHtmlVersion(value HtmlVersion) error {
3219832262
3219932263 return nil
3220032264}
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+ }
3220132296// Gets the save file format.
3220232297// Returns:
3220332298// int32
@@ -62348,6 +62443,21 @@ func (instance *Workbook) SetFileFormat(value FileFormatType) error {
6234862443
6234962444 return nil
6235062445}
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+ }
6235162461// Gets and sets the interrupt monitor.
6235262462// Returns:
6235362463// AbstractInterruptMonitor
@@ -64602,22 +64712,6 @@ func (instance *Worksheet) GetQueryTables() (*QueryTableCollection, error) {
6460264712
6460364713 return result, nil
6460464714}
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- }
6462164715// Represents worksheet type.
6462264716// Returns:
6462364717// int32
@@ -65004,6 +65098,22 @@ func (instance *Worksheet) RemoveSplit() error {
6500465098
6500565099 return nil
6500665100}
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+ }
6500765117// Gets all ListObjects in this worksheet.
6500865118// Returns:
6500965119// ListObjectCollection
@@ -66212,6 +66322,27 @@ func (instance *Worksheet) SetIsRulerVisible(value bool) error {
6621266322
6621366323 return nil
6621466324}
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+ }
6621566346// Represents worksheet tab color.
6621666347// Returns:
6621766348// Color
@@ -66242,6 +66373,36 @@ func (instance *Worksheet) SetTabColor(value *Color) error {
6624266373
6624366374 return nil
6624466375}
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+ }
6624566406// Gets worksheet code name.
6624666407// Returns:
6624766408// string
@@ -67537,6 +67698,22 @@ func (instance *WorksheetCollection) RefreshPivotTables_PivotTableRefreshOption(
6753767698
6753867699 return result, nil
6753967700}
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+ }
6754067717// Returns:
6754167718// int32
6754267719func (instance *WorksheetCollection) GetCount() (int32, error) {
0 commit comments