[]
        
(Showing Draft Content)

C1.Win.FlexGrid.GridPrinter.PrintPreviewDialog

PrintPreviewDialog Property

PrintPreviewDialog

Gets a reference to the PrintPreviewDialog used to display the grid's print preview.

Declaration
public PrintPreviewDialog PrintPreviewDialog { get; }
Remarks

Use this property to customize the size and position of the preview dialog when printing the grid with the ShowPrintDialog option.

Examples

The code below uses the PrintPreviewDialog property to display the preview dialog with a custom caption and in a maximized state:

Form dlg = _flex.PrintParameters.PrintPreviewDialog as Form;
dlg.Text = "Custom Caption";
dlg.StartPosition = FormStartPosition.Manual;
dlg.WindowState = FormWindowState.Maximized;
_flex.PrintGrid("test", PrintGridFlags.ShowPreviewDialog);