alexa

    Show / Hide Table of Contents

    Enum PdfGridBuiltinStyle

    Specifies PdfGrid built-in table styles.

    Namespace: Syncfusion.Pdf
    Assembly: Syncfusion.Pdf.Base.dll
    Syntax
    public enum PdfGridBuiltinStyle
    Examples
    //Create a new PDF document.
    PdfDocument doc = new PdfDocument();
    //Add a page.
    PdfPage page = doc.Pages.Add();
    //Create a new PDF grid instance.
    PdfGrid table = new PdfGrid();
    //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 grid build style settings instance.
    PdfGridBuiltinStyleSettings settings = new PdfGridBuiltinStyleSettings();
    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(PdfGridBuiltinStyle.GridTable3, settings);           
    //Draw grid 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 grid instance.
    Dim table As New PdfGrid()
    '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 grid build style settings instance.
    Dim settings As New PdfGridBuiltinStyleSettings()
    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(PdfGridBuiltinStyle.GridTable3, settings)
    'Draw grid 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

    Light grid with minimal borders and no accents. Best for clean tabular data with minimal styling.

    GridTable1LightAccent1

    Light grid with Accent 1 color. Adds subtle visual interest for categorized data.

    GridTable1LightAccent2

    Light grid with Accent 2 color. Suitable for financial or analytical tables.

    GridTable1LightAccent3

    Light grid with Accent 3 color. Ideal for subtle visual distinction in clean tabular layouts.

    GridTable1LightAccent4

    Light grid with Accent 4 color. Suitable for categorized data with minimal styling.

    GridTable1LightAccent5

    Light grid with Accent 5 color. Adds gentle emphasis for grouped data.

    GridTable1LightAccent6

    Light grid with Accent 6 color. Best for clean layouts with soft color highlights.

    GridTable2

    Standard grid style with clear borders. Ideal for structured tabular data and reports.

    GridTable2Accent1

    GridTable2 with Accent 1 color. Adds visual clarity for categorized or grouped data.

    GridTable2Accent2

    GridTable2 with Accent 2 color. Suitable for financial tables and analytical layouts.

    GridTable2Accent3

    GridTable2 with Accent 3 color. Enhances readability with subtle color banding.

    GridTable2Accent4

    GridTable2 with Accent 4 color. Good for dashboards and summary tables.

    GridTable2Accent5

    GridTable2 with Accent 5 color. Adds contrast for better data separation.

    GridTable2Accent6

    GridTable2 with Accent 6 color. Ideal for visually distinct tabular presentations.

    GridTable3

    Enhanced grid style with banded rows and header emphasis. Suitable for detailed reports.

    GridTable3Accent1

    GridTable3 with Accent 1 color. Adds professional styling for business documents.

    GridTable3Accent2

    GridTable3 with Accent 2 color. Ideal for categorized data with alternating row colors.

    GridTable3Accent3

    GridTable3 with Accent 3 color. Suitable for structured layouts with visual clarity.

    GridTable3Accent4

    GridTable3 with Accent 4 color. Adds emphasis to headers and grouped rows.

    GridTable3Accent5

    GridTable3 with Accent 5 color. Best for reports requiring visual separation.

    GridTable3Accent6

    GridTable3 with Accent 6 color. Suitable for colorful yet professional tables.

    GridTable4

    Grid style with alternating row colors and bold headers. Ideal for data-heavy documents.

    GridTable4Accent1

    GridTable4 with Accent 1 color. Adds visual structure for categorized data.

    GridTable4Accent2

    GridTable4 with Accent 2 color. Suitable for financial and analytical tables.

    GridTable4Accent3

    GridTable4 with Accent 3 color. Enhances readability with soft color tones.

    GridTable4Accent4

    GridTable4 with Accent 4 color. Good for dashboards and summary layouts.

    GridTable4Accent5

    GridTable4 with Accent 5 color. Adds contrast for better data visualization.

    GridTable4Accent6

    GridTable4 with Accent 6 color. Ideal for colorful and organized tables.

    GridTable5Dark

    Dark-themed grid with strong contrast. Best for night-mode PDFs or visually striking tables.

    GridTable5DarkAccent1

    GridTable5Dark with Accent 1 color. Adds bold styling for high-impact layouts.

    GridTable5DarkAccent2

    GridTable5Dark with Accent 2 color. Suitable for modern and sleek presentations.

    GridTable5DarkAccent3

    Dark-themed grid with Accent 3 color. Ideal for high-contrast layouts and visually striking tables.

    GridTable5DarkAccent4

    Dark grid with Accent 4 color. Suitable for dashboards and modern styled reports.

    GridTable5DarkAccent5

    Dark grid with Accent 5 color. Great for highlighting grouped data in dark-themed documents.

    GridTable5DarkAccent6

    Dark grid with Accent 6 color. Best used for night-mode layouts or presentations.

    GridTable6Colorful

    Colorful grid with alternating row colors. Ideal for vibrant reports and visual summaries.

    GridTable6ColorfulAccent1

    Colorful grid with Accent 1. Suitable for categorized data with visual emphasis.

    GridTable6ColorfulAccent2

    Colorful grid with Accent 2. Great for financial tables and colorful dashboards.

    GridTable6ColorfulAccent3

    Colorful grid with Accent 3. Use for creative layouts and grouped data.

    GridTable6ColorfulAccent4

    Colorful grid with Accent 4. Ideal for presentations and visual reports.

    GridTable6ColorfulAccent5

    Colorful grid with Accent 5. Suitable for dynamic tables and summaries.

    GridTable6ColorfulAccent6

    Colorful grid with Accent 6. Best for vibrant layouts and data visualization.

    GridTable7Colorful

    Enhanced colorful grid with header emphasis. Great for structured reports and analytics.

    GridTable7ColorfulAccent1

    Colorful grid with Accent 1. Ideal for categorized data with visual grouping.

    GridTable7ColorfulAccent2

    Colorful grid with Accent 2. Suitable for dashboards and summary tables.

    GridTable7ColorfulAccent3

    Colorful grid with Accent 3. Use for visually engaging tabular layouts.

    GridTable7ColorfulAccent4

    Colorful grid with Accent 4. Best for reports with grouped data.

    GridTable7ColorfulAccent5

    Colorful grid with Accent 5. Great for highlighting key metrics.

    GridTable7ColorfulAccent6

    Colorful grid with Accent 6. Ideal for colorful and structured data presentation.

    ListTable1Light

    Light list-style table with minimal borders. Perfect for itemized data and simple lists.

    ListTable1LightAccent1

    Light list-style with Accent 1. Suitable for categorized item lists.

    ListTable1LightAccent2

    Light list-style with Accent 2. Ideal for invoices and grouped entries.

    ListTable1LightAccent3

    Light list-style with Accent 3. Use for clean and structured item tables.

    ListTable1LightAccent4

    Light list-style with Accent 4. Great for simple reports and summaries.

    ListTable1LightAccent5

    Light list-style with Accent 5. Best for itemized data with subtle styling.

    ListTable1LightAccent6

    Light list-style with Accent 6. Suitable for structured lists and forms.

    ListTable2

    Standard list-style table with header emphasis. Ideal for structured itemized data.

    ListTable2Accent1

    List-style with Accent 1. Great for categorized lists and grouped entries.

    ListTable2Accent2

    List-style with Accent 2. Suitable for invoices and item breakdowns.

    ListTable2Accent3

    List-style with Accent 3. Use for structured data with visual emphasis.

    ListTable2Accent4

    List-style with Accent 4. Ideal for reports and itemized summaries.

    ListTable2Accent5

    List-style table with Accent 5 color. Ideal for itemized data with subtle emphasis.

    ListTable2Accent6

    List-style table with Accent 6 color. Suitable for categorized lists with light styling.

    ListTable3

    Basic list-style table with minimal formatting. Good for simple itemized content.

    ListTable3Accent1

    List-style table with Accent 1 color. Adds visual grouping for structured lists.

    ListTable3Accent2

    List-style table with Accent 2 color. Useful for financial or analytical lists.

    ListTable3Accent3

    List-style table with Accent 3 color. Enhances readability for long itemized data.

    ListTable3Accent4

    List-style table with Accent 4 color. Suitable for reports and summaries.

    ListTable3Accent5

    List-style table with Accent 5 color. Adds alternating row colors for clarity.

    ListTable3Accent6

    List-style table with Accent 6 color. Ideal for colorful dashboards.

    ListTable4

    List-style table with header emphasis and light row shading. Great for structured reports.

    ListTable4Accent1

    List-style table with Accent 1 color. Adds subtle styling for grouped data.

    ListTable4Accent2

    List-style table with Accent 2 color. Suitable for invoices and itemized summaries.

    ListTable4Accent3

    List-style table with Accent 3 color. Enhances visual clarity for long lists.

    ListTable4Accent4

    List-style table with Accent 4 color. Good for categorized data.

    ListTable4Accent5

    List-style table with Accent 5 color. Adds alternating row colors for readability.

    ListTable4Accent6

    List-style table with Accent 6 color. Ideal for colorful structured layouts.

    ListTable5Dark

    Dark-themed list-style table. Best for night-mode or high-contrast documents.

    ListTable5DarkAccent1

    Dark list-style table with Accent 1 color. Adds visual interest to dark layouts.

    ListTable5DarkAccent2

    Dark list-style table with Accent 2 color. Suitable for bold presentations.

    ListTable5DarkAccent3

    Dark list-style table with Accent 3 color. Enhances readability in dark themes.

    ListTable5DarkAccent4

    Dark list-style table with Accent 4 color. Ideal for modern styled reports.

    ListTable5DarkAccent5

    Dark list-style table with Accent 5 color. Adds contrast for itemized data.

    ListTable5DarkAccent6

    Dark list-style table with Accent 6 color. Suitable for dashboards and summaries.

    ListTable6Colorful

    Colorful list-style table with vibrant accents. Great for visual dashboards.

    ListTable6ColorfulAccent1

    Colorful list-style table with Accent 1. Adds energy to structured data.

    ListTable6ColorfulAccent2

    Colorful list-style table with Accent 2. Suitable for creative layouts.

    ListTable6ColorfulAccent3

    Colorful list-style table with Accent 3. Ideal for engaging presentations.

    ListTable6ColorfulAccent4

    Colorful list-style table with Accent 4. Enhances readability with style.

    ListTable6ColorfulAccent5

    Colorful list-style table with Accent 5. Adds vibrancy to itemized content.

    ListTable6ColorfulAccent6

    Colorful list-style table with Accent 6. Suitable for colorful reports.

    ListTable7Colorful

    Advanced colorful list-style table. Best for modern and dynamic layouts.

    ListTable7ColorfulAccent1

    Colorful list-style table with Accent 1. Adds bold styling to structured data.

    ListTable7ColorfulAccent2

    Colorful list-style table with Accent 2. Suitable for creative dashboards.

    ListTable7ColorfulAccent3

    Colorful list-style table with Accent 3. Ideal for vibrant presentations.

    ListTable7ColorfulAccent4

    Colorful list-style table with Accent 4. Enhances visual clarity.

    ListTable7ColorfulAccent5

    Colorful list-style table with Accent 5. Adds alternating row colors.

    ListTable7ColorfulAccent6

    Colorful list-style table with Accent 6. Suitable for engaging reports.

    PlainTable1

    A minimalistic table style with no borders or accents. Ideal for clean and simple data presentation.

    PlainTable2

    Similar to PlainTable1 but with subtle row separation. Suitable for basic tabular layouts.

    PlainTable3

    Adds light horizontal lines for better readability. Good for structured data with minimal styling.

    PlainTable4

    Includes header emphasis and light row shading. Useful for reports and summaries.

    PlainTable5

    A plain style with alternating row colors. Enhances readability in long tables.

    TableGrid

    Standard grid-style table with full borders. Suitable for structured and formal layouts.

    TableGridLight

    Light grid-style table with minimal borders. Ideal for clean tabular data.

    Back to top Generated by DocFX