menu

WinUI

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

    Show / Hide Table of Contents

    Class DataGridPrintSettings

    A class which provides the configuration settings to customize the printing operation for SfDataGrid

    Inheritance
    System.Object
    NotificationObject
    DataGridPrintSettings
    Implements
    System.ComponentModel.INotifyPropertyChanged
    Inherited Members
    NotificationObject.PropertyChanged
    NotificationObject.RaisePropertyChanged(String)
    NotificationObject.RaisePropertyChanged(String[])
    Namespace: Syncfusion.UI.Xaml.DataGrid.Print
    Assembly: Syncfusion.Grid.WinUI.dll
    Syntax
    public class DataGridPrintSettings : NotificationObject, INotifyPropertyChanged

    Constructors

    DataGridPrintSettings()

    Initializes a new instance of DataGridPrintSettings class.

    Declaration
    public DataGridPrintSettings()

    Properties

    CanPrintStackedHeaders

    Gets or sets a value that indicates whether the stacked header should be included on printing.

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

    CanPrintStyles

    Get or sets a value that indicates whether the style is allowed on printing.

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

    CanRepeatHeaders

    Gets or sets a value that indicates whether the column headers repeated for all pages for printing.

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

    FitColumnsOnSinglePage

    Gets or sets a value that indicates whether to fit all columns on single page by adjusting column width without changing scaling.

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

    FlowDirection

    Gets or sets the direction of text displayed in page on printing.

    Declaration
    public FlowDirection FlowDirection { get; set; }
    Property Value
    Type
    Microsoft.UI.Xaml.FlowDirection

    FooterHeight

    Gets or sets the height of the page footer.

    Declaration
    public double FooterHeight { get; set; }
    Property Value
    Type
    System.Double

    FooterTemplate

    Gets or sets that defines the visual representation of the page footer.

    Declaration
    public DataTemplate FooterTemplate { get; set; }
    Property Value
    Type
    Microsoft.UI.Xaml.DataTemplate

    HeaderRowHeight

    Gets or sets the height of column header row in datagrid on printing.

    Declaration
    public double HeaderRowHeight { get; set; }
    Property Value
    Type
    System.Double

    HeaderTemplate

    Gets or sets that defines the visual representation of the page header.

    Declaration
    public DataTemplate HeaderTemplate { get; set; }
    Property Value
    Type
    Microsoft.UI.Xaml.DataTemplate

    Indentation

    Gets or sets the width for indent columns in datagrid on printing.

    Declaration
    public double Indentation { get; set; }
    Property Value
    Type
    System.Double

    Orientation

    Gets or sets the Windows.Graphics.Printing.PrintOrientation that indicates whether the pages are printed in portrait or landscape mode.

    Declaration
    public PrintOrientation Orientation { get; set; }
    Property Value
    Type
    Windows.Graphics.Printing.PrintOrientation

    PageHeaderHeight

    Gets or sets the height of the page header.

    Declaration
    public double PageHeaderHeight { get; set; }
    Property Value
    Type
    System.Double

    PagePadding

    Gets or sets the thickness of padding space between the boundaries of the content area, and content displayed by a page.

    Declaration
    public Thickness PagePadding { get; set; }
    Property Value
    Type
    Microsoft.UI.Xaml.Thickness

    PageSize

    Gets or sets the preferred size of page.dths

    Declaration
    public Size PageSize { get; set; }
    Property Value
    Type
    Windows.Foundation.Size

    PrintManager

    Gets or sets an instance of the DataGridPrintManager which manages the printing operation in SfDataGrid.

    Declaration
    public DataGridPrintManager PrintManager { get; set; }
    Property Value
    Type Description
    DataGridPrintManager

    An instance of the DataGridPrintManager class.

    Remarks

    DataGridPrintManager class provides various properties and virtual methods to customize its operations.

    RowHeight

    Gets or sets the height of data row in datagrid on printing.

    Declaration
    public double RowHeight { get; set; }
    Property Value
    Type
    System.Double

    ScalingOption

    Gets or sets the PrintScalingOptions that indicates the number of rows or columns are scaled to fit the page when datagrid is printed.

    Declaration
    public PrintScalingOptions ScalingOption { get; set; }
    Property Value
    Type
    PrintScalingOptions
    Remarks

    If FitAllColumnsOnOnePage property is enabled, scaling will be applied based on the equal widths are allocated based page control width. Otherwise, it will take the widths of all columns.

    Implements

    System.ComponentModel.INotifyPropertyChanged
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved