WPF

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

    Show / Hide Table of Contents

    Class PrintSettings

    Inheritance
    System.Object
    PrintSettings
    Implements
    System.ComponentModel.INotifyPropertyChanged
    Inherited Members
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: Syncfusion.UI.Xaml.Grid
    Assembly: Syncfusion.SfGrid.WPF.dll
    Syntax
    public class PrintSettings : INotifyPropertyChanged

    Constructors

    PrintSettings()

    Initializes a new instance of PrintSettings class.

    Declaration
    public PrintSettings()

    Properties

    AllowColumnWidthFitToPrintPage

    Gets or sets a value that indicates whether the all the column width fit with in single page .

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

    true if all the column width fit with in single page; otherwise, false.

    AllowPrintByDrawing

    Get or sets a value that indicates whether the printing is enabled by drawing to improve performance.

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

    true if the printing is enabled by drawing; otherwise , false.

    AllowPrintStyles

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

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

    true if the style is allowed for printing; otherwise, false.

    AllowRepeatHeaders

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

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

    true if the column headers repeated for all pages; otherwise, false.

    CanPrintStackedHeaders

    Gets or sets a value that indicates whether the stacked header included for printing.

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

    true if the SfDataGrid is printed with stacked header; otherwise, false.

    PrintFlowDirection

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

    Declaration
    public FlowDirection PrintFlowDirection { get; set; }
    Property Value
    Type Description
    System.Windows.FlowDirection

    One of the System.Windows.FlowDirection that specifies the direction of text in page. The default is System.Windows.FlowDirection.LeftToRight

    PrintHeaderRowHeight

    Gets or sets the height of header row in SfDataGrid for printing.

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

    The height of the header row in SfDataGrid.

    PrintManagerBase

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

    Declaration
    public PrintManagerBase PrintManagerBase { get; set; }
    Property Value
    Type Description
    PrintManagerBase

    An instance of the PrintManagerBase class.

    Remarks

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

    PrintPageFooterHeight

    Gets or sets the height of the page footer for printing.

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

    The height of the page footer.

    PrintPageFooterTemplate

    Gets or sets System.Windows.DataTemplate that defines the visual representation of the page footer for printing.

    Declaration
    public DataTemplate PrintPageFooterTemplate { get; set; }
    Property Value
    Type Description
    System.Windows.DataTemplate

    The object that defines the visual representation of the page footer. The default is null.

    PrintPageHeaderHeight

    Gets or sets the height of the page header for printing.

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

    The height of the page header.

    PrintPageHeaderTemplate

    Gets or sets System.Windows.DataTemplate that defines the visual representation of the page header for printing.

    Declaration
    public DataTemplate PrintPageHeaderTemplate { get; set; }
    Property Value
    Type Description
    System.Windows.DataTemplate

    The object that defines the visual representation of the page header. The default is null.

    PrintPageHeight

    Gets or sets the height of a page for printing.

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

    The height of a page for printing.

    PrintPageMargin

    Gets or sets the margin of page for printing.

    Declaration
    public Thickness PrintPageMargin { get; set; }
    Property Value
    Type Description
    System.Windows.Thickness

    The Thickness of page for printing.

    PrintPageOrientation

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

    Declaration
    public PrintOrientation PrintPageOrientation { get; set; }
    Property Value
    Type Description
    PrintOrientation

    One of the PrintOrientation enumeration that specifies the orientation for page. The default value is Portrait.

    PrintPageWidth

    Gets or sets the width of a page for printing.

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

    The width of a page for printing.

    PrintPreviewWindowStyle

    Gets or sets the style applied to PrintPreviewWindow in SfDataGrid.

    Declaration
    public Style PrintPreviewWindowStyle { get; set; }
    Property Value
    Type Description
    System.Windows.Style

    The style that is applied to PrintPreviewWindow.The default is null.

    Remarks

    To define a System.Windows.Style for a row, specify a TargetType of GridCell.

    PrintRowHeight

    Gets or sets the height of DataRow in SfDataGrid for printing.

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

    The height of the DataRow in SfDataGrid.

    PrintScaleOption

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

    Declaration
    public PrintScaleOptions PrintScaleOption { get; set; }
    Property Value
    Type Description
    PrintScaleOptions

    One of the PrintScaleOptions enumeration that specifies how the rows or columns are scaled to fit the page. The default value is NoScaling.

    Events

    PropertyChanged

    Occurs when a property value changes in PrintSettings class.

    Declaration
    public event PropertyChangedEventHandler PropertyChanged
    Event Type
    Type Description
    System.ComponentModel.PropertyChangedEventHandler

    Implements

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