menu

WPF

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class PdfExportingOptions - WPF API Reference | Syncfusion

    Show / Hide Table of Contents

    Class PdfExportingOptions

    Class which is used to set the exporting options. User can pass the instance of this class as an argument to the ExportToPdf and ExportToPdfGrid methods.

    Inheritance
    System.Object
    PdfExportingOptions
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: Syncfusion.UI.Xaml.Grid.Converter
    Assembly: Syncfusion.SfGridConverter.WPF.dll
    Syntax
    public class PdfExportingOptions

    Constructors

    PdfExportingOptions()

    Declaration
    public PdfExportingOptions()

    Properties

    AutoColumnWidth

    Gets or sets a value which indicates whether the column widths are automatically assigned based on its content or not.

    Declaration
    public bool AutoColumnWidth { get; set; }
    Property Value
    Type Description
    System.Boolean

    Default value is true.

    AutoRowHeight

    Gets or sets a value which indicates whether the row heights are automatically assigned based on its content or not.

    Declaration
    public bool AutoRowHeight { get; set; }
    Property Value
    Type Description
    System.Boolean

    Default value is true.

    CellsExportingEventHandler

    Gets or sets a value which triggers for each cell and is used to handle or customize the cell.

    Declaration
    public GridCellPdfExportingEventhandler CellsExportingEventHandler { get; set; }
    Property Value
    Type
    GridCellPdfExportingEventhandler

    ChildGridExportingEventHandler

    Gets or sets a value which triggers while exporting DetailsViewDataGrid and is used to handle the exporting DetailsViewDataGrid.

    Declaration
    public ChildGridPdfExportingEventhandler ChildGridExportingEventHandler { get; set; }
    Property Value
    Type
    ChildGridPdfExportingEventhandler

    Columns

    Gets list of columns which includes excluding of ExcludeColumns.

    Declaration
    public List<string> Columns { get; }
    Property Value
    Type
    System.Collections.Generic.List<System.String>

    ExcludeColumns

    Gets or sets the value which indicates the columns that needs to be excluded while exporting.

    Declaration
    public List<string> ExcludeColumns { get; set; }
    Property Value
    Type
    System.Collections.Generic.List<System.String>

    ExportAllDetails

    Gets or sets a value which indicates whether all DetailsViewDataGrids should be exported even if it is not expanded.

    Declaration
    public bool ExportAllDetails { get; set; }
    Property Value
    Type Description
    System.Boolean

    Default value is false.

    ExportAllPages

    Gets or sets a value which indicates whether all pages should be exported or not.

    Declaration
    public bool ExportAllPages { get; set; }
    Property Value
    Type Description
    System.Boolean

    Default value is false.

    ExportDetailsView

    Gets or sets a value which indicates whether DetailsViewDataGrid should be exported or not.

    Declaration
    public bool ExportDetailsView { get; set; }
    Property Value
    Type Description
    System.Boolean

    Default value is false.

    ExportFormat

    Gets or sets a value which indicates whether the values should be exported with format or not.

    Declaration
    public bool ExportFormat { get; set; }
    Property Value
    Type Description
    System.Boolean

    Default value is true.

    ExportGroups

    Gets or sets a value which indicates whether groups should be exported or not.

    Declaration
    public bool ExportGroups { get; set; }
    Property Value
    Type Description
    System.Boolean

    Default value is true.

    ExportGroupSummary

    Gets or sets a value which indicates whether group summary should be exported or not.

    Declaration
    public bool ExportGroupSummary { get; set; }
    Property Value
    Type Description
    System.Boolean

    Default value is true.

    ExportingEventHandler

    Gets or sets a value which triggers while exporting grid and is used to customize the Headers, Table Summaries, Group Summaries and Group captions.

    Declaration
    public GridPdfExportingEventhandler ExportingEventHandler { get; set; }
    Property Value
    Type
    GridPdfExportingEventhandler

    ExportMergedCells

    Gets or sets a value which indicates whether Merged Cells should be exported or not.

    Declaration
    public bool ExportMergedCells { get; set; }
    Property Value
    Type Description
    System.Boolean

    Default value is false.

    ExportStackedHeaders

    Gets or sets a value which indicates whether stacked headers should be exported or not.

    Declaration
    public bool ExportStackedHeaders { get; set; }
    Property Value
    Type Description
    System.Boolean

    Default value is false.

    ExportTableSummary

    Gets or sets a value which indicates whether table summary should be exported or not.

    Declaration
    public bool ExportTableSummary { get; set; }
    Property Value
    Type Description
    System.Boolean

    Default value is true.

    ExportUnBoundRows

    Gets or sets a value which indicates whether the UnBoundRows should be exported or not.

    Declaration
    public bool ExportUnBoundRows { get; set; }
    Property Value
    Type Description
    System.Boolean

    Default value is false.

    FitAllColumnsInOnePage

    Gets or sets a value which indicates whether all columns should be fit on a page or not.

    Declaration
    public bool FitAllColumnsInOnePage { get; set; }
    Property Value
    Type Description
    System.Boolean

    Default value is false.

    PageHeaderFooterEventHandler

    Gets or sets a value which triggers for allowing the user to add header and footer of the page.

    Declaration
    public PdfHeaderFooterEventHandler PageHeaderFooterEventHandler { get; set; }
    Property Value
    Type
    PdfHeaderFooterEventHandler

    RepeatHeaders

    Gets or sets the value which indicates whether the headers can be repeated in each page or not.

    Declaration
    public bool RepeatHeaders { get; set; }
    Property Value
    Type Description
    System.Boolean

    Default value is true.

    RowIndex

    Gets or sets the row index of SfDataGrid which keeps track of the row index while exporting.

    Declaration
    public int RowIndex { get; set; }
    Property Value
    Type Description
    System.Int32

    Default value is zero.

    In This Article
    • Constructors
      • PdfExportingOptions()
    • Properties
      • AutoColumnWidth
      • AutoRowHeight
      • CellsExportingEventHandler
      • ChildGridExportingEventHandler
      • Columns
      • ExcludeColumns
      • ExportAllDetails
      • ExportAllPages
      • ExportDetailsView
      • ExportFormat
      • ExportGroups
      • ExportGroupSummary
      • ExportingEventHandler
      • ExportMergedCells
      • ExportStackedHeaders
      • ExportTableSummary
      • ExportUnBoundRows
      • FitAllColumnsInOnePage
      • PageHeaderFooterEventHandler
      • RepeatHeaders
      • RowIndex
    Was this page helpful? Yes No
    Thank you for your feedback!
    Thank you for your feedback and comments. We will rectify this as soon as possible!
    An unknown error has occurred. Please try again.
    SEND FEEDBACK REGARDING THIS TOPIC

    Please provide additional information

    Please provide additional information

    Please provide additional information

    Please provide additional information
    Please provide additional information
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved