Class ZoomGrid
Implements the functionality of zooming for GridControl and GridDataBoundGrid
Inheritance
Implements
Inherited Members
Namespace: Syncfusion.GridHelperClasses
Assembly: Syncfusion.GridHelperClasses.Windows.dll
Syntax
public class ZoomGrid : IDisposable
Constructors
ZoomGrid(GridControl)
Initializes a new instance of the ZoomGrid class.
Declaration
public ZoomGrid(GridControl grid)
Parameters
Type | Name | Description |
---|---|---|
GridControl | grid | The GridControl to zoom. |
ZoomGrid(GridDataBoundGrid)
Initializes a new instance of the ZoomGrid class.
Declaration
public ZoomGrid(GridDataBoundGrid grid)
Parameters
Type | Name | Description |
---|---|---|
GridDataBoundGrid | grid | The GridDataBoundGrid to zoom. |
Fields
zoomWindow
Variable used for setting the zooming option in window
Declaration
public PictureBox zoomWindow
Field Value
Type |
---|
System.Windows.Forms.PictureBox |
Properties
ZoomGridControlCell
Gets or sets a value indicating whether zooming of the cells in GridControl should be enabled.
Declaration
public static bool ZoomGridControlCell { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | True if zooming of cell is enabled. Otherwise false. |
ZoomGridDataBoundCell
Gets or sets a value indicating whether zooming of the cells in GridDataBoundGrid should be enabled.
Declaration
public static bool ZoomGridDataBoundCell { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | True if zooming of cell is enabled. Otherwise false. |
Methods
Dispose()
Releases all resources used by the ZoomGrid.
Declaration
public void Dispose()
GetCurrentZoomSize(GridControl)
The folowing method may allow the user to get the current zoom percentage of the GridControl
Declaration
public int GetCurrentZoomSize(GridControl grid)
Parameters
Type | Name | Description |
---|---|---|
GridControl | grid |
Returns
Type |
---|
System.Int32 |
GetCurrentZoomSize(GridDataBoundGrid)
Gets the current zoom percentage of the DataBoundGrid.
Declaration
public int GetCurrentZoomSize(GridDataBoundGrid grid)
Parameters
Type | Name | Description |
---|---|---|
GridDataBoundGrid | grid | The GridDataBoundGrid that is enabled with zooming. |
Returns
Type | Description |
---|---|
System.Int32 | The current zooming size. |
zoomGrid(String)
This method determines whether to zoom GridControl or DataBoundGrid or both by checking the boolean variable of each grid
Declaration
public void zoomGrid(string percentage)
Parameters
Type | Name | Description |
---|---|---|
System.String | percentage | The percentage value to zoom. |