[]
        
(Showing Draft Content)

C1.WPF.FlexGrid.C1FlexGrid.GetGridImage

GetGridImage Method

GetGridImage(CellRange, ScaleMode)

Gets a FrameworkElement that represents a given part of the grid.

Declaration
public FrameworkElement GetGridImage(CellRange rng, ScaleMode scaleMode = ScaleMode.ActualSize)
Parameters
Type Name Description
CellRange rng

CellRange to include in the image.

ScaleMode scaleMode

ScaleMode that determine how will the image get scaled.

Returns
Type Description
FrameworkElement

A FrameworkElement that represents a given part of the grid.

GetGridImage(CellRange, Size, ScaleMode)

Gets a FrameworkElement that represents a given part of the grid stretched to desired size.

Declaration
public FrameworkElement GetGridImage(CellRange rng, Size size, ScaleMode scaleMode = ScaleMode.ActualSize)
Parameters
Type Name Description
CellRange rng

CellRange to include in the image.

Size size

The desired page size.

ScaleMode scaleMode

ScaleMode that determine how will the image get scaled.

Returns
Type Description
FrameworkElement

A FrameworkElement that represents a given part of the grid.

Remarks

The C1.WPF.FlexGrid control uses this method when printing scale mode is set to ScaleMode.PageWidth. This method ignores the size of FlexGrid control being printed. Instead, it stretches star sizing columns according to the page width.