Enum PdfLightTableBuiltinStyle
- Namespace
- Syncfusion.Pdf
- Assembly
- Syncfusion.Pdf.Portable.dll
Specified PdfLightTable built-in table styles
public enum PdfLightTableBuiltinStyle
Fields
GridTable1Light = 5
Specifies the table to render Grid Table 1 Light style.
GridTable1LightAccent1 = 6
Specifies the table to render Grid Table 1 Light - Accent 1 style.
GridTable1LightAccent2 = 7
Specifies the table to render Grid Table 1 Light - Accent 2 style.
GridTable1LightAccent3 = 8
Specifies the table to render Grid Table 1 Light - Accent 3 style.
GridTable1LightAccent4 = 9
Specifies the table to render Grid Table 1 Light - Accent 4 style.
GridTable1LightAccent5 = 10
Specifies the table to render Grid Table 1 Light - Accent 5 style.
GridTable1LightAccent6 = 11
Specifies the table to render Grid Table 1 Light - Accent 6 style.
GridTable2 = 12
Specifies the table to render Grid Table 2 style.
GridTable2Accent1 = 13
Specifies the table to render Grid Table 2 - Accent 1 style.
GridTable2Accent2 = 14
Specifies the table to render Grid Table 2 - Accent 2 style.
GridTable2Accent3 = 15
Specifies the table to render Grid Table 2 - Accent 3 style.
GridTable2Accent4 = 16
Specifies the table to render Grid Table 2 - Accent 4 style.
GridTable2Accent5 = 17
Specifies the table to render Grid Table 2 - Accent 5 style.
GridTable2Accent6 = 18
Specifies the table to render Grid Table 2 - Accent 6 style.
GridTable3 = 19
Specifies the table to render Grid Table 3 style.
GridTable3Accent1 = 20
Specifies the table to render Grid Table 3 - Accent 1 style.
GridTable3Accent2 = 21
Specifies the table to render Grid Table 3 - Accent 2 style.
GridTable3Accent3 = 22
Specifies the table to render Grid Table 3 - Accent 3 style.
GridTable3Accent4 = 23
Specifies the table to render Grid Table 3 - Accent 4 style.
GridTable3Accent5 = 24
Specifies the table to render Grid Table 3 - Accent 5 style.
GridTable3Accent6 = 25
Specifies the table to render Grid Table 3 - Accent 6 style.
GridTable4 = 26
Specifies the table to render Grid Table 4 style.
GridTable4Accent1 = 27
Specifies the table to render Grid Table 4 - Accent 1 style.
GridTable4Accent2 = 28
Specifies the table to render Grid Table 4 - Accent 2 style.
GridTable4Accent3 = 29
Specifies the table to render Grid Table 4 - Accent 3 style.
GridTable4Accent4 = 30
Specifies the table to render Grid Table 4 - Accent 4 style.
GridTable4Accent5 = 31
Specifies the table to render Grid Table 4 - Accent 5 style.
GridTable4Accent6 = 32
Specifies the table to render Grid Table 4 - Accent 6 style.
GridTable5Dark = 33
Specifies the table to render Grid Table 5 Dark style.
GridTable5DarkAccent1 = 34
Specifies the table to render Grid Table 5 Dark - Accent 1 style.
GridTable5DarkAccent2 = 35
Specifies the table to render Grid Table 5 Dark - Accent 2 style.
GridTable5DarkAccent3 = 36
Specifies the table to render Grid Table 5 Dark - Accent 3 style.
GridTable5DarkAccent4 = 37
Specifies the table to render Grid Table 5 Dark - Accent 4 style.
GridTable5DarkAccent5 = 38
Specifies the table to render Grid Table 5 Dark - Accent 5 style.
GridTable5DarkAccent6 = 39
Specifies the table to render Grid Table 5 Dark - Accent 6 style.
GridTable6Colorful = 40
Specifies the table to render Grid Table 6 Colorful style.
GridTable6ColorfulAccent1 = 41
Specifies the table to render Grid Table 6 Colorful - Accent 1 style.
GridTable6ColorfulAccent2 = 42
Specifies the table to render Grid Table 6 Colorful - Accent 2 style.
GridTable6ColorfulAccent3 = 43
Specifies the table to render Grid Table 6 Colorful - Accent 3 style.
GridTable6ColorfulAccent4 = 44
Specifies the table to render Grid Table 6 Colorful - Accent 4 style.
GridTable6ColorfulAccent5 = 45
Specifies the table to render Grid Table 6 Colorful - Accent 5 style.
GridTable6ColorfulAccent6 = 46
Specifies the table to render Grid Table 6 Colorful - Accent 6 style.
GridTable7Colorful = 47
Specifies the table to render Grid Table 7 Colorful style.
GridTable7ColorfulAccent1 = 48
Specifies the table to render Grid Table 7 Colorful - Accent 1 style.
GridTable7ColorfulAccent2 = 49
Specifies the table to render Grid Table 7 Colorful - Accent 2 style.
GridTable7ColorfulAccent3 = 50
Specifies the table to render Grid Table 7 Colorful - Accent 3 style.
GridTable7ColorfulAccent4 = 51
Specifies the table to render Grid Table 7 Colorful - Accent 4 style.
GridTable7ColorfulAccent5 = 52
Specifies the table to render Grid Table 7 Colorful - Accent 5 style.
GridTable7ColorfulAccent6 = 53
Specifies the table to render Grid Table 7 Colorful - Accent 6 style.
ListTable1Light = 54
Specifies the table to render Light Table 1 Light style.
ListTable1LightAccent1 = 55
Specifies the table to render Light Table 1 Light - Accent 1 style.
ListTable1LightAccent2 = 56
Specifies the table to render Light Table 1 Light - Accent 2 style.
ListTable1LightAccent3 = 57
Specifies the table to render Light Table 1 Light - Accent 3 style.
ListTable1LightAccent4 = 58
Specifies the table to render Light Table 1 Light - Accent 4 style.
ListTable1LightAccent5 = 59
Specifies the table to render Light Table 1 Light - Accent 5 style.
ListTable1LightAccent6 = 60
Specifies the table to render Light Table 1 Light - Accent 6 style.
ListTable2 = 61
Specifies the table to render Light Table 2 style.
ListTable2Accent1 = 62
Specifies the table to render Light Table 2 - Accent 1 style.
ListTable2Accent2 = 63
Specifies the table to render Light Table 2 - Accent 2 style.
ListTable2Accent3 = 64
Specifies the table to render Light Table 2 - Accent 3 style.
ListTable2Accent4 = 65
Specifies the table to render Light Table 2 - Accent 4 style.
ListTable2Accent5 = 66
Specifies the table to render Light Table 2 - Accent 5 style.
ListTable2Accent6 = 67
Specifies the table to render Light Table 2 - Accent 6 style.
ListTable3 = 68
Specifies the table to render Light Table 3 style.
ListTable3Accent1 = 69
Specifies the table to render Light Table 3 - Accent 1 style.
ListTable3Accent2 = 70
Specifies the table to render Light Table 3 - Accent 2 style.
ListTable3Accent3 = 71
Specifies the table to render Light Table 3 - Accent 3 style.
ListTable3Accent4 = 72
Specifies the table to render Light Table 3 - Accent 4 style.
ListTable3Accent5 = 73
Specifies the table to render Light Table 3 - Accent 5 style.
ListTable3Accent6 = 74
Specifies the table to render Light Table 3 - Accent 6 style.
ListTable4 = 75
Specifies the table to render Light Table 4 style.
ListTable4Accent1 = 76
Specifies the table to render Light Table 4 - Accent 1 style.
ListTable4Accent2 = 77
Specifies the table to render Light Table 4 - Accent 2 style.
ListTable4Accent3 = 78
Specifies the table to render Light Table 4 - Accent 3 style.
ListTable4Accent4 = 79
Specifies the table to render Light Table 4 - Accent 4 style.
ListTable4Accent5 = 80
Specifies the table to render Light Table 4 - Accent 5 style.
ListTable4Accent6 = 81
Specifies the table to render Light Table 4 - Accent 6 style.
ListTable5Dark = 82
Specifies the table to render Light Table 5 Dark style.
ListTable5DarkAccent1 = 83
Specifies the table to render Light Table 5 Dark - Accent 1 style.
ListTable5DarkAccent2 = 84
Specifies the table to render Light Table 5 Dark - Accent 2 style.
ListTable5DarkAccent3 = 85
Specifies the table to render Light Table 5 Dark - Accent 3 style.
ListTable5DarkAccent4 = 86
Specifies the table to render Light Table 5 Dark - Accent 4 style.
ListTable5DarkAccent5 = 87
Specifies the table to render Light Table 5 Dark - Accent 5 style.
ListTable5DarkAccent6 = 88
Specifies the table to render Light Table 5 Dark - Accent 6 style.
ListTable6Colorful = 89
Specifies the table to render Light Table 6 Colorful style.
ListTable6ColorfulAccent1 = 90
Specifies the table to render Light Table 6 Colorful - Accent 1 style.
ListTable6ColorfulAccent2 = 91
Specifies the table to render Light Table 6 Colorful - Accent 2 style.
ListTable6ColorfulAccent3 = 92
Specifies the table to render Light Table 6 Colorful - Accent 3 style.
ListTable6ColorfulAccent4 = 93
Specifies the table to render Light Table 6 Colorful - Accent 4 style.
ListTable6ColorfulAccent5 = 94
Specifies the table to render Light Table 6 Colorful - Accent 5 style.
ListTable6ColorfulAccent6 = 95
Specifies the table to render Light Table 6 Colorful - Accent 6 style.
ListTable7Colorful = 96
Specifies the table to render Light Table 7 Colorful style.
ListTable7ColorfulAccent1 = 97
Specifies the table to render Light Table 7 Colorful - Accent 1 style.
ListTable7ColorfulAccent2 = 98
Specifies the table to render Light Table 7 Colorful - Accent 2 style.
ListTable7ColorfulAccent3 = 99
Specifies the table to render Light Table 7 Colorful - Accent 3 style.
ListTable7ColorfulAccent4 = 100
Specifies the table to render Light Table 7 Colorful - Accent 4 style.
ListTable7ColorfulAccent5 = 101
Specifies the table to render Light Table 7 Colorful - Accent 5 style.
ListTable7ColorfulAccent6 = 102
Specifies the table to render Light Table 7 Colorful - Accent 6 style.
PlainTable1 = 0
Specifies the table to render Plain Table 1 style.
PlainTable2 = 1
Specifies the table to render Plain Table 2 style.
PlainTable3 = 2
Specifies the table to render Plain Table 3 style.
PlainTable4 = 3
Specifies the table to render Plain Table 4 style.
PlainTable5 = 4
Specifies the table to render Plain Table 5 style.
TableGrid = 104
Specifies the table to render Table Grid style.
TableGridLight = 103
Specifies the table to render Table Grid Light style.
Examples
//Create a new PDF document.
PdfDocument doc = new PdfDocument();
//Add a page.
PdfPage page = doc.Pages.Add();
//Create a new PDF light table instance.
PdfLightTable table = new PdfLightTable();
//Create a DataTable.
DataTable dataTable = new DataTable();
//Add columns to the DataTable
dataTable.Columns.Add("ID");
dataTable.Columns.Add("Name");
//Add rows to the DataTable.
dataTable.Rows.Add(new object[] { "E01", "Clay" });
dataTable.Rows.Add(new object[] { "E02", "Thomas" });
dataTable.Rows.Add(new object[] { "E03", "George" });
dataTable.Rows.Add(new object[] { "E04", "Stefan" });
dataTable.Rows.Add(new object[] { "E05", "Mathew" });
//Assign data source.
table.DataSource = dataTable;
//Create PDF light table build style settings instance.
dfLightTableBuiltinStyleSettings settings = new PdfLightTableBuiltinStyleSettings();
settings.ApplyStyleForBandedColumns = true;
settings.ApplyStyleForBandedRows = true;
settings.ApplyStyleForFirstColumn = true;
settings.ApplyStyleForHeaderRow = true;
settings.ApplyStyleForLastColumn = true;
settings.ApplyStyleForLastRow = true;
//Apply built-in table style
table.ApplyBuiltinStyle(PdfLightTableBuiltinStyle.ListTable6ColorfulAccent4, settings);
//Draw table to the page of PDF document.
table.Draw(page, new PointF(10, 10));
//Save the document.
doc.Save("Output.pdf");
//close the document
doc.Close(true);
'Create a new PDF document.
Dim doc As New PdfDocument()
'Add a page.
Dim page As PdfPage = doc.Pages.Add()
'Create a new PDF light table instance.
Dim table As New PdfLightTable()
'Create a DataTable.
Dim dataTable As New DataTable()
'Add columns to the DataTable
dataTable.Columns.Add("ID")
dataTable.Columns.Add("Name")
'Add rows to the DataTable.
dataTable.Rows.Add(New Object() { "E01", "Clay"})
dataTable.Rows.Add(New Object() { "E02", "Thomas"})
dataTable.Rows.Add(New Object() { "E03", "George"})
dataTable.Rows.Add(New Object() { "E04", "Stefan"})
dataTable.Rows.Add(New Object() { "E05", "Mathew"})
'Assign data source.
table.DataSource = dataTable
'Create PDF light table build style settings instance.
Dim settings As New PdfLightTableBuiltinStyleSettings()
settings.ApplyStyleForBandedColumns = True
settings.ApplyStyleForBandedRows = True
settings.ApplyStyleForFirstColumn = True
settings.ApplyStyleForHeaderRow = True
settings.ApplyStyleForLastColumn = True
settings.ApplyStyleForLastRow = True
'Apply built-in table style
table.ApplyBuiltinStyle(PdfLightTableBuiltinStyle.ListTable6ColorfulAccent4, settings)
'Draw table to the page of PDF document.
table.Draw(page, New PointF(10, 10))
'Save the document.
doc.Save("Output.pdf")
'close the document
doc.Close(True)