DataSetBase
Definition
Namespace: Surya.Ab.Export.Client.Models Assembly: Surya.Ab.Export.dll
It servers as the base class for all DataSet types. It holds properties which are common to all types of DataSets.
public class DataSetBase
Properties
| Name | Definition |
|---|---|
| SheetName | The Sheet in which Dataset would be present |
| Header | The header for the DataSet |
| Footer | The footer for the DataSet |
| DatasetStyle | Style properties for the DataSet |
| PageBreak | Bool property to ensure the DataSet starts from a new page in PDF |
| FitToPage | Bool property to stop wrapping of data into pages in PDF |
| HeaderMergeCellCount | Number of cells to be merged to display the Header in Excel |
| FooterMergeCellCount | Number of cells to be merged to display the Footer in Excel |
| DataSetGap | Adds additional blank lines above the dataset. To create desired gap between two tables. |
| CellDisplayType | To pass cell level DisplayType |
Structure
public class DataSetBase
{
public string? SheetName { get; set; }
public string? Header { get; set; }
public string? Footer { get; set; }
public DatasetStyle? DatasetStyle { get; set; }
public bool PageBreak { get; set; } = false;
public bool FitToPage { get; set; } = false;
public int HeaderMergeCellCount { get; set; } = 2;
public int FooterMergeCellCount { get; set; } = 2;
public int DataSetGap { get; set; }
public Dictionary<(int, int), DisplayType>? CellDisplayType { get; set; }
}