[]
Gets a FrameworkElement that represents a given part of the grid.
public FrameworkElement GetGridImage(CellRange rng, ScaleMode scaleMode = ScaleMode.ActualSize)
Type | Name | Description |
---|---|---|
CellRange | rng | CellRange to include in the image. |
ScaleMode | scaleMode | ScaleMode that determine how will the image get scaled. |
Type | Description |
---|---|
FrameworkElement | A FrameworkElement that represents a given part of the grid. |
Gets a FrameworkElement that represents a given part of the grid stretched to desired size.
public FrameworkElement GetGridImage(CellRange rng, Size size, ScaleMode scaleMode = ScaleMode.ActualSize)
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. |
Type | Description |
---|---|
FrameworkElement | A FrameworkElement that represents a given part of the grid. |
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.