ComponentOne FlexGrid for UWP
C1.UWP.FlexGrid Assembly / C1.Xaml.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 Windows.UI.Xaml.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

    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 Windows.UI.Xaml.FrameworkElement that represents a given part of the grid.
    Remarks
    The C1.Xaml.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