Xamarin.Forms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class PdfBorderOverlapStyle

    Show / Hide Table of Contents

    Class PdfBorderOverlapStyle

    Specifies the values of the border overlap style.

    Inheritance
    System.Object
    PdfBorderOverlapStyle
    Namespace: Syncfusion.Pdf
    Assembly: Syncfusion.Pdf.Portable.dll
    Syntax
    public sealed class PdfBorderOverlapStyle : Enum
    Examples
    // Create a new document
    PdfDocument document = new PdfDocument();
    //Create a new page
    PdfPage page = document.Pages.Add();
    //Create PdfLightTable
    PdfLightTable table = new PdfLightTable();
    // Set the DataSourceType as Direct
    table.DataSourceType = PdfLightTableDataSourceType.TableDirect;
    // Create new Columns
    table.Columns.Add(new PdfColumn("Roll Number"));
    table.Columns.Add(new PdfColumn("Name"));
    table.Columns.Add(new PdfColumn("Class"));
    //set the border overlap style
    table.Style.BorderOverlapStyle = PdfBorderOverlapStyle.Inside;
    // Add new Rows
    table.Rows.Add(new object[] { "111", "Maxim", "III" });
    // Draws the table
    table.Draw(page, new PointF(0, 0));
    //Save the document
    document.Save("Output.pdf");
    //Close the document
    document.Close(true);
    ' Create a new document
    Dim document As New PdfDocument()
    'Create a new page
    Dim page As PdfPage = document.Pages.Add()
    'Create PdfLightTable
    Dim table As New PdfLightTable()
    ' Set the DataSourceType as Direct
    table.DataSourceType = PdfLightTableDataSourceType.TableDirect
    ' Create new Columns
    table.Columns.Add(New PdfColumn("Roll Number"))
    table.Columns.Add(New PdfColumn("Name"))
    table.Columns.Add(New PdfColumn("Class"))
    ' set the border overlap style
    table.Style.BorderOverlapStyle = PdfBorderOverlapStyle.Inside
    ' Add new Rows
    table.Rows.Add(New Object() { "111", "Maxim", "III" })
    ' Draws the table
    table.Draw(page, New PointF(0, 0))
    'Save the document
    document.Save("Output.pdf")
    'Close the document
    document.Close(True)

    Fields

    Inside

    Cell borders are drawn in the cell's interior.

    Declaration
    public const PdfBorderOverlapStyle Inside
    Field Value
    Type Description
    PdfBorderOverlapStyle

    Overlap

    Cell borders overlap (are drawn using the same coordinates).

    Declaration
    public const PdfBorderOverlapStyle Overlap
    Field Value
    Type Description
    PdfBorderOverlapStyle

    value__

    Declaration
    public int value__
    Field Value
    Type Description
    System.Int32
    Back to top Generated by DocFX
    Copyright © 2001 - 2023 Syncfusion Inc. All Rights Reserved