[]
        
(Showing Draft Content)

C1.WPF.Grid.FlexGrid.GetPageImage

GetPageImage Method

GetPageImage(GridCellRange, GridScaleMode)

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

Declaration
public FrameworkElement GetPageImage(GridCellRange rng, GridScaleMode scaleMode = GridScaleMode.ActualSize)
Parameters
Type Name Description
GridCellRange rng

GridCellRange to include in the image.

GridScaleMode scaleMode

GridScaleMode that determine how will the image get scaled.

Returns
Type Description
FrameworkElement

A FrameworkElement that represents a given part of the grid.

Remarks

Remember to call DisposePageImages() after done using the page image to release memory.

GetPageImage(GridCellRange, Size, GridScaleMode)

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

Declaration
public FrameworkElement GetPageImage(GridCellRange rng, Size contentSize, GridScaleMode scaleMode = GridScaleMode.ActualSize)
Parameters
Type Name Description
GridCellRange rng

GridCellRange to include in the image.

Size contentSize

Size of the content area of pages in pixels.

GridScaleMode scaleMode

GridScaleMode that determine how will the image get scaled.

Returns
Type Description
FrameworkElement

A FrameworkElement that represents a given part of the grid.

Remarks

Remember to call DisposePageImages() after done using the page image to release memory.