GridPrintStyle
Represents the print style for RadGridView.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.GridView.dll
Syntax:
[TypeConverter(typeof(ExpandableObjectConverter))]
public class GridPrintStyle
Inheritance: objectGridPrintStyle
Constructors
Initializes a new instance of the GridPrintStyle class.
public GridPrintStyle()
Initializes a new instance of the GridPrintStyle class.
Properties
Gets or sets a value indidcating the alternating row color for odd rows.
public Color AlternatingRowColor { get; set; }
Gets or sets the default color of all borders.
public Color BorderColor { get; set; }
Gets or sets the default back color for data cells.
public Color CellBackColor { get; set; }
Gets or sets the font that will be used for the data cells.
public Font CellFont { get; set; }
Gets or sets the default padding for all cells.
public Padding CellPadding { get; set; }
Gets or sets a value indicating how child views are printed when printing a hierarchical grid.
public ChildViewPrintMode ChildViewPrintMode { get; set; }
Gets or sets a value indicating how the columns will be printed.
public PrintFitWidthMode FitWidthMode { get; set; }
Gets the RadGridView that this print styles is assigned to.
public RadGridView GridView { get; }
Gets or sets the default back color of group rows.
public Color GroupRowBackColor { get; set; }
Gets or sets the font that will be used for the group cells.
public Font GroupRowFont { get; set; }
Gets or sets the default back color of header cells.
public Color HeaderCellBackColor { get; set; }
Gets or sets the font that will be used for the header cells.
public Font HeaderCellFont { get; set; }
Gets or sets a indent in pixels when printing a hierarchicle grid.
public int HierarchyIndent { get; set; }
Gets or sets a value indicating whether all pages will be printed when paging is enabled.
public bool PrintAllPages { get; set; }
true if all pages will be printed; otherwise, false.
Gets or sets a value indicating whether alternating row color is printed.
public bool PrintAlternatingRowColor { get; set; }
Gets or sets a value indicating whether grouing will be printed.
public bool PrintGrouping { get; set; }
Gets or sets a value indicating whether header cells will be printed on each page. This setting does not work when printing a hierarchical grid.
public bool PrintHeaderOnEachPage { get; set; }
Gets or sets a value indicating whether hidden columns will be printed.
public bool PrintHiddenColumns { get; set; }
Gets or sets a value indicating whether hidden rows will be printed.
public bool PrintHiddenRows { get; set; }
Gets or sets a value indicating whether hierarchy will be printed.
public bool PrintHierarchy { get; set; }
Gets or sets the print renderer that is used for print rendering.
public BaseGridPrintRenderer PrintRenderer { get; set; }
Gets or sets a value indicating whether summary rows will be printed.
public bool PrintSummaries { get; set; }
Gets the traverser that is used to traverse the RadGridView
public PrintGridTraverser PrintTraverser { get; }
Gets or sets the default back color of summary cells.
public Color SummaryCellBackColor { get; set; }
Gets or sets the font that will be used for the summary cells.
public Font SummaryCellFont { get; set; }
Methods
Gets the number of pages needed for drawing the associated RadGridView.
Initializes the default values for the style.
public virtual void Initialize()
Initializes the correct print renderer for the current grid view definition
protected virtual BaseGridPrintRenderer InitializePrintRenderer(RadGridView grid)
The grid that is being printed.
Returns:An instance of the correct print renderer for the given grid view.
Occurs for hierarchy rows with more than one child views.
protected virtual void OnChildViewPrinting(object sender, ChildViewPrintingEventArgs e)
The initiator of the event.
eChildViewPrintingEventArgsFires when the content of a print cell needs to be formatted for print.
[Browsable(true)]
protected virtual void OnPrintCellFormatting(object sender, PrintCellFormattingEventArgs e)
The initiator of the event.
ePrintCellFormattingEventArgsThe event arguments.
Fires when the content of a print cell is painted, allows custom painting.
[Browsable(true)]
protected virtual void OnPrintCellPaint(object sender, PrintCellPaintEventArgs e)
The initiator of the event.
ePrintCellPaintEventArgsThe event arguments.
Resets the print style for subsequent use.
public virtual void Reset()
protected virtual void UnwirePrintRendererEvents()
protected virtual void WirePrintRendererEvents()
Events
Fires for hierarchy rows with more than one child views.
public event ChildViewPrintingEventHandler ChildViewPrinting
Fires when the content of a print cell needs to be formatted for print.
public event PrintCellFormattingEventHandler PrintCellFormatting
Fires when the content of a print cell is painted, allows custom painting.
public event PrintCellPaintEventHandler PrintCellPaint