Enum PdfLightTableBuiltinStyle
Specified PdfLightTable built-in table styles
Namespace: Syncfusion.Pdf
Assembly: Syncfusion.Pdf.Base.dll
Syntax
public enum PdfLightTableBuiltinStyle
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)
Fields
| Name | Description |
|---|---|
| GridTable1Light | Specifies the table to render Grid Table 1 Light style. |
| GridTable1LightAccent1 | Specifies the table to render Grid Table 1 Light - Accent 1 style. |
| GridTable1LightAccent2 | Specifies the table to render Grid Table 1 Light - Accent 2 style. |
| GridTable1LightAccent3 | Specifies the table to render Grid Table 1 Light - Accent 3 style. |
| GridTable1LightAccent4 | Specifies the table to render Grid Table 1 Light - Accent 4 style. |
| GridTable1LightAccent5 | Specifies the table to render Grid Table 1 Light - Accent 5 style. |
| GridTable1LightAccent6 | Specifies the table to render Grid Table 1 Light - Accent 6 style. |
| GridTable2 | Specifies the table to render Grid Table 2 style. |
| GridTable2Accent1 | Specifies the table to render Grid Table 2 - Accent 1 style. |
| GridTable2Accent2 | Specifies the table to render Grid Table 2 - Accent 2 style. |
| GridTable2Accent3 | Specifies the table to render Grid Table 2 - Accent 3 style. |
| GridTable2Accent4 | Specifies the table to render Grid Table 2 - Accent 4 style. |
| GridTable2Accent5 | Specifies the table to render Grid Table 2 - Accent 5 style. |
| GridTable2Accent6 | Specifies the table to render Grid Table 2 - Accent 6 style. |
| GridTable3 | Specifies the table to render Grid Table 3 style. |
| GridTable3Accent1 | Specifies the table to render Grid Table 3 - Accent 1 style. |
| GridTable3Accent2 | Specifies the table to render Grid Table 3 - Accent 2 style. |
| GridTable3Accent3 | Specifies the table to render Grid Table 3 - Accent 3 style. |
| GridTable3Accent4 | Specifies the table to render Grid Table 3 - Accent 4 style. |
| GridTable3Accent5 | Specifies the table to render Grid Table 3 - Accent 5 style. |
| GridTable3Accent6 | Specifies the table to render Grid Table 3 - Accent 6 style. |
| GridTable4 | Specifies the table to render Grid Table 4 style. |
| GridTable4Accent1 | Specifies the table to render Grid Table 4 - Accent 1 style. |
| GridTable4Accent2 | Specifies the table to render Grid Table 4 - Accent 2 style. |
| GridTable4Accent3 | Specifies the table to render Grid Table 4 - Accent 3 style. |
| GridTable4Accent4 | Specifies the table to render Grid Table 4 - Accent 4 style. |
| GridTable4Accent5 | Specifies the table to render Grid Table 4 - Accent 5 style. |
| GridTable4Accent6 | Specifies the table to render Grid Table 4 - Accent 6 style. |
| GridTable5Dark | Specifies the table to render Grid Table 5 Dark style. |
| GridTable5DarkAccent1 | Specifies the table to render Grid Table 5 Dark - Accent 1 style. |
| GridTable5DarkAccent2 | Specifies the table to render Grid Table 5 Dark - Accent 2 style. |
| GridTable5DarkAccent3 | Specifies the table to render Grid Table 5 Dark - Accent 3 style. |
| GridTable5DarkAccent4 | Specifies the table to render Grid Table 5 Dark - Accent 4 style. |
| GridTable5DarkAccent5 | Specifies the table to render Grid Table 5 Dark - Accent 5 style. |
| GridTable5DarkAccent6 | Specifies the table to render Grid Table 5 Dark - Accent 6 style. |
| GridTable6Colorful | Specifies the table to render Grid Table 6 Colorful style. |
| GridTable6ColorfulAccent1 | Specifies the table to render Grid Table 6 Colorful - Accent 1 style. |
| GridTable6ColorfulAccent2 | Specifies the table to render Grid Table 6 Colorful - Accent 2 style. |
| GridTable6ColorfulAccent3 | Specifies the table to render Grid Table 6 Colorful - Accent 3 style. |
| GridTable6ColorfulAccent4 | Specifies the table to render Grid Table 6 Colorful - Accent 4 style. |
| GridTable6ColorfulAccent5 | Specifies the table to render Grid Table 6 Colorful - Accent 5 style. |
| GridTable6ColorfulAccent6 | Specifies the table to render Grid Table 6 Colorful - Accent 6 style. |
| GridTable7Colorful | Specifies the table to render Grid Table 7 Colorful style. |
| GridTable7ColorfulAccent1 | Specifies the table to render Grid Table 7 Colorful - Accent 1 style. |
| GridTable7ColorfulAccent2 | Specifies the table to render Grid Table 7 Colorful - Accent 2 style. |
| GridTable7ColorfulAccent3 | Specifies the table to render Grid Table 7 Colorful - Accent 3 style. |
| GridTable7ColorfulAccent4 | Specifies the table to render Grid Table 7 Colorful - Accent 4 style. |
| GridTable7ColorfulAccent5 | Specifies the table to render Grid Table 7 Colorful - Accent 5 style. |
| GridTable7ColorfulAccent6 | Specifies the table to render Grid Table 7 Colorful - Accent 6 style. |
| ListTable1Light | Specifies the table to render Light Table 1 Light style. |
| ListTable1LightAccent1 | Specifies the table to render Light Table 1 Light - Accent 1 style. |
| ListTable1LightAccent2 | Specifies the table to render Light Table 1 Light - Accent 2 style. |
| ListTable1LightAccent3 | Specifies the table to render Light Table 1 Light - Accent 3 style. |
| ListTable1LightAccent4 | Specifies the table to render Light Table 1 Light - Accent 4 style. |
| ListTable1LightAccent5 | Specifies the table to render Light Table 1 Light - Accent 5 style. |
| ListTable1LightAccent6 | Specifies the table to render Light Table 1 Light - Accent 6 style. |
| ListTable2 | Specifies the table to render Light Table 2 style. |
| ListTable2Accent1 | Specifies the table to render Light Table 2 - Accent 1 style. |
| ListTable2Accent2 | Specifies the table to render Light Table 2 - Accent 2 style. |
| ListTable2Accent3 | Specifies the table to render Light Table 2 - Accent 3 style. |
| ListTable2Accent4 | Specifies the table to render Light Table 2 - Accent 4 style. |
| ListTable2Accent5 | Specifies the table to render Light Table 2 - Accent 5 style. |
| ListTable2Accent6 | Specifies the table to render Light Table 2 - Accent 6 style. |
| ListTable3 | Specifies the table to render Light Table 3 style. |
| ListTable3Accent1 | Specifies the table to render Light Table 3 - Accent 1 style. |
| ListTable3Accent2 | Specifies the table to render Light Table 3 - Accent 2 style. |
| ListTable3Accent3 | Specifies the table to render Light Table 3 - Accent 3 style. |
| ListTable3Accent4 | Specifies the table to render Light Table 3 - Accent 4 style. |
| ListTable3Accent5 | Specifies the table to render Light Table 3 - Accent 5 style. |
| ListTable3Accent6 | Specifies the table to render Light Table 3 - Accent 6 style. |
| ListTable4 | Specifies the table to render Light Table 4 style. |
| ListTable4Accent1 | Specifies the table to render Light Table 4 - Accent 1 style. |
| ListTable4Accent2 | Specifies the table to render Light Table 4 - Accent 2 style. |
| ListTable4Accent3 | Specifies the table to render Light Table 4 - Accent 3 style. |
| ListTable4Accent4 | Specifies the table to render Light Table 4 - Accent 4 style. |
| ListTable4Accent5 | Specifies the table to render Light Table 4 - Accent 5 style. |
| ListTable4Accent6 | Specifies the table to render Light Table 4 - Accent 6 style. |
| ListTable5Dark | Specifies the table to render Light Table 5 Dark style. |
| ListTable5DarkAccent1 | Specifies the table to render Light Table 5 Dark - Accent 1 style. |
| ListTable5DarkAccent2 | Specifies the table to render Light Table 5 Dark - Accent 2 style. |
| ListTable5DarkAccent3 | Specifies the table to render Light Table 5 Dark - Accent 3 style. |
| ListTable5DarkAccent4 | Specifies the table to render Light Table 5 Dark - Accent 4 style. |
| ListTable5DarkAccent5 | Specifies the table to render Light Table 5 Dark - Accent 5 style. |
| ListTable5DarkAccent6 | Specifies the table to render Light Table 5 Dark - Accent 6 style. |
| ListTable6Colorful | Specifies the table to render Light Table 6 Colorful style. |
| ListTable6ColorfulAccent1 | Specifies the table to render Light Table 6 Colorful - Accent 1 style. |
| ListTable6ColorfulAccent2 | Specifies the table to render Light Table 6 Colorful - Accent 2 style. |
| ListTable6ColorfulAccent3 | Specifies the table to render Light Table 6 Colorful - Accent 3 style. |
| ListTable6ColorfulAccent4 | Specifies the table to render Light Table 6 Colorful - Accent 4 style. |
| ListTable6ColorfulAccent5 | Specifies the table to render Light Table 6 Colorful - Accent 5 style. |
| ListTable6ColorfulAccent6 | Specifies the table to render Light Table 6 Colorful - Accent 6 style. |
| ListTable7Colorful | Specifies the table to render Light Table 7 Colorful style. |
| ListTable7ColorfulAccent1 | Specifies the table to render Light Table 7 Colorful - Accent 1 style. |
| ListTable7ColorfulAccent2 | Specifies the table to render Light Table 7 Colorful - Accent 2 style. |
| ListTable7ColorfulAccent3 | Specifies the table to render Light Table 7 Colorful - Accent 3 style. |
| ListTable7ColorfulAccent4 | Specifies the table to render Light Table 7 Colorful - Accent 4 style. |
| ListTable7ColorfulAccent5 | Specifies the table to render Light Table 7 Colorful - Accent 5 style. |
| ListTable7ColorfulAccent6 | Specifies the table to render Light Table 7 Colorful - Accent 6 style. |
| PlainTable1 | Specifies the table to render Plain Table 1 style. |
| PlainTable2 | Specifies the table to render Plain Table 2 style. |
| PlainTable3 | Specifies the table to render Plain Table 3 style. |
| PlainTable4 | Specifies the table to render Plain Table 4 style. |
| PlainTable5 | Specifies the table to render Plain Table 5 style. |
| TableGrid | Specifies the table to render Table Grid style. |
| TableGridLight | Specifies the table to render Table Grid Light style. |