FlexGrid for WPF | ComponentOne
C1.WPF.FlexGrid.4.6.2 Assembly / C1.WPF.FlexGrid Namespace / C1FlexGrid Class / GetGridImage Method / GetGridImage(CellRange,Size,ScaleMode) Method
CellRange to include in the image.
The desired page size.
ScaleMode that determine how will the image get scaled.

In This Topic
    GetGridImage(CellRange,Size,ScaleMode) Method
    In This Topic
    Gets a System.Windows.FrameworkElement that represents a given part of the grid stretched to desired size.
    Syntax
    'Declaration
     
    Public Overloads Function GetGridImage( _
       ByVal rng As CellRange, _
       ByVal size As Size, _
       Optional ByVal scaleMode As ScaleMode _
    ) As FrameworkElement
    public FrameworkElement GetGridImage( 
       CellRange rng,
       Size size,
       ScaleMode scaleMode
    )

    Parameters

    rng
    CellRange to include in the image.
    size
    The desired page size.
    scaleMode
    ScaleMode that determine how will the image get scaled.

    Return Value

    A System.Windows.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.
    See Also