alexa
menu

WPF

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

    Show / Hide Table of Contents

    Class GridPrintExtensions

    Defines extension methods to show the print dialog.

    Inheritance
    System.Object
    GridPrintExtensions
    Namespace: Syncfusion.Windows.Controls.Grid
    Assembly: Syncfusion.Grid.Wpf.dll
    Syntax
    public static class GridPrintExtensions : Object

    Methods

    Print(GridControlBase)

    Declaration
    public static Nullable<bool> Print(this GridControlBase grid)
    Parameters
    Type Name Description
    GridControlBase grid
    Returns
    Type
    System.Nullable<System.Boolean>

    Print(GridControlBase, Action<PrintDialog>)

    Declaration
    public static Nullable<bool> Print(this GridControlBase grid, Action<PrintDialog> gridPrintAction)
    Parameters
    Type Name Description
    GridControlBase grid
    System.Action<System.Windows.Controls.PrintDialog> gridPrintAction
    Returns
    Type
    System.Nullable<System.Boolean>

    Print(GridDataControl)

    Declaration
    public static Nullable<bool> Print(this GridDataControl grid)
    Parameters
    Type Name Description
    GridDataControl grid
    Returns
    Type
    System.Nullable<System.Boolean>

    Print(GridDataControl, Action<PrintDialog>)

    Declaration
    public static Nullable<bool> Print(this GridDataControl grid, Action<PrintDialog> gridPrintAction)
    Parameters
    Type Name Description
    GridDataControl grid
    System.Action<System.Windows.Controls.PrintDialog> gridPrintAction
    Returns
    Type
    System.Nullable<System.Boolean>

    Print(GridTreeControl)

    Declaration
    public static Nullable<bool> Print(this GridTreeControl grid)
    Parameters
    Type Name Description
    GridTreeControl grid
    Returns
    Type
    System.Nullable<System.Boolean>

    Print(GridTreeControl, Action<PrintDialog>)

    Declaration
    public static Nullable<bool> Print(this GridTreeControl grid, Action<PrintDialog> gridPrintAction)
    Parameters
    Type Name Description
    GridTreeControl grid
    System.Action<System.Windows.Controls.PrintDialog> gridPrintAction
    Returns
    Type
    System.Nullable<System.Boolean>

    ShowPrintDialog(GridControlBase)

    Displays the print dialog for the given grid control.

    Declaration
    public static Nullable<bool> ShowPrintDialog(this GridControlBase grid)
    Parameters
    Type Name Description
    GridControlBase grid

    The grid.

    Returns
    Type Description
    System.Nullable<System.Boolean>

    A Nullable(T) value of type Boolean that signifies how a window was closed by the user.

    ShowPrintDialog(GridControlBase, Action<GridPrintDialog>)

    Displays the print dialog for the given grid control.

    Declaration
    public static Nullable<bool> ShowPrintDialog(this GridControlBase grid, Action<GridPrintDialog> gridPrintAction)
    Parameters
    Type Name Description
    GridControlBase grid

    The grid.

    System.Action<GridPrintDialog> gridPrintAction

    Creates a method that will open a GridPrintDialog.

    Returns
    Type Description
    System.Nullable<System.Boolean>

    A Nullable(T) value of type Boolean that signifies how a window was closed by the user.

    ShowPrintDialog(GridDataControl)

    Displays the print dialog for the given grid data control.

    Declaration
    public static Nullable<bool> ShowPrintDialog(this GridDataControl grid)
    Parameters
    Type Name Description
    GridDataControl grid

    The grid data control.

    Returns
    Type Description
    System.Nullable<System.Boolean>

    A Nullable(T) value of type Boolean that signifies how a window was closed by the user.

    ShowPrintDialog(GridDataControl, Action<GridPrintDialog>)

    Displays the print dialog for the given grid data control.

    Declaration
    public static Nullable<bool> ShowPrintDialog(this GridDataControl grid, Action<GridPrintDialog> gridPrintAction)
    Parameters
    Type Name Description
    GridDataControl grid

    The grid data control.

    System.Action<GridPrintDialog> gridPrintAction

    Creates a method that will open a GridPrintDialog.

    Returns
    Type Description
    System.Nullable<System.Boolean>

    A Nullable(T) value of type Boolean that signifies how a window was closed by the user.

    ShowPrintDialog(GridTreeControl)

    Displays the print dialog for the given grid tree control.

    Declaration
    public static Nullable<bool> ShowPrintDialog(this GridTreeControl grid)
    Parameters
    Type Name Description
    GridTreeControl grid

    The tree grid.

    Returns
    Type Description
    System.Nullable<System.Boolean>

    A Nullable(T) value of type Boolean that signifies how a window was closed by the user.

    ShowPrintDialog(GridTreeControl, Action<GridPrintDialog>)

    Displays the print dialog for the given grid tree control.

    Declaration
    public static Nullable<bool> ShowPrintDialog(this GridTreeControl grid, Action<GridPrintDialog> gridPrintAction)
    Parameters
    Type Name Description
    GridTreeControl grid

    The tree grid.

    System.Action<GridPrintDialog> gridPrintAction

    Creates a method that will open a GridPrintDialog.

    Returns
    Type Description
    System.Nullable<System.Boolean>

    A Nullable(T) value of type Boolean that signifies how a window was closed by the user.

    Back to top Generated by DocFX
    Copyright © 2001 - 2026 Syncfusion Inc. All Rights Reserved