Worksheet
Note: New features related to this feature is been worked on release v2.8.x. Document is not upto date
Adding, Modifying a sheet from spreadsheet is handled by this class object
Methods
Method | Parameter/Return | Function |
---|---|---|
GetSheetId | /string | Return current sheet id |
GetSheetName | /string | Return current sheet name |
SetColumn | cilumn,ColumnProperty | Set column property |
SetRow | cellid,cellData,RowProperty | Set row property and data |
AddPicture | filePath,PictureSetting/Picture | Add Picture to current slide |
AddChart | DataRange,chartSetting/Chart | Add Chart to current slide |
GetMergeCellList | /List<MergeCellRange> | Get existing merge range from current sheet |
SetMergeCell | MergeCellRange/bool | Set new merge range if not affecting existing |
RemoveMergeCell | MergeCellRange/bool | Remove any existing range within the caller range |
Sheet Code Samples
To add, remove and get sheet from excel
Sheet Column Settings Code Sample
ColumnProperties
Options
ColumnProperties
OptionsProperty | Type | Details |
---|---|---|
bestFit | bool | Auto bit column width based on content. |
hidden | bool | Hide the column |
width | double? | Set manual column width. |
Sheet Row Data and Settings Code Sample
DataCell
Options.
DataCell
Options.Property | Type | Details |
---|---|---|
cellValue | string? | Can be any value or null. Will be parsed based on |
dataType | CellDataType | Refer to the data type present in |
styleSetting | AVOID USING THIS. Used to set specific cell style. For optimised performance refer Style Component | |
styleId | uint? | Insert the style Id returened from Style Componenet |
hyperlinkProperties | Set hyperlink property for the current cell |
RowProperties
Options
RowProperties
OptionsProperty | Type | Details |
---|---|---|
height | double? | Set row height property |
hidden | bool | Hide the row |