Class ZoomGroupingGrid
Implements the functionalities for zooming the GridGroupingControl.
Inheritance
Namespace: Syncfusion.GridHelperClasses.Zoom
Assembly: Syncfusion.GridHelperClasses.Windows.dll
Syntax
public class ZoomGroupingGrid : Form
Examples
This example shows how to perform zooming for GridGroupingControl.
ZoomGroupingGrid zoomGGC = new ZoomGroupingGrid(this.gridGroupingControl1);
zoomGGC.zoomGrid("100");
zoomGGC.ZoomBorderColor = Color.Blue;
Dim zoomGGC As ZoomGroupingGrid = New ZoomGroupingGrid(Me.gridGroupingControl1)
zoomGGC.zoomGrid("100")
zoomGGC.ZoomBorderColor = Color.Blue
Constructors
ZoomGroupingGrid(GridGroupingControl)
Initializes a new instance of the ZoomGroupingGrid class.
Declaration
public ZoomGroupingGrid(GridGroupingControl grid)
Parameters
Type | Name | Description |
---|---|---|
GridGroupingControl | grid | The GridGroupingControl to perform zooming. |
Properties
ZoomBorderColor
Gets or sets the zooming border color.
Declaration
public Color ZoomBorderColor { get; set; }
Property Value
Type |
---|
System.Drawing.Color |
ZoomBorderSize
Gets or sets the zooming border size.
Declaration
public int ZoomBorderSize { get; set; }
Property Value
Type |
---|
System.Int32 |
Remarks
The Zoom Border value has to be in between 1 and 50. If exceeds 50 then the value will automatically considered to be 50.
zoomCell
Gets or sets a value indicating whether zooming of the cells has to be enabled.
Declaration
public static bool zoomCell { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | TrueIf zooming of cells is enabled. Otherwise false. |
ZoomFactor
Gets or set the zooming factor.
Declaration
public float ZoomFactor { get; set; }
Property Value
Type |
---|
System.Single |
Remarks
The Zoom factor value has to be in between 1.0 and 4.0. If exceeds 4.0 then the value will automatically considered to be 4.0.
ZoomImageMode
Gets or sets the ImageMode whether Ellipse or Rectangle in shape while zooming.
Declaration
public ZoomGroupingGrid.ImageMode ZoomImageMode { get; set; }
Property Value
Type |
---|
ZoomGroupingGrid.ImageMode |
ZoomSize
Gets or sets the zooming size.
Declaration
public Size ZoomSize { get; set; }
Property Value
Type |
---|
System.Drawing.Size |
Methods
Dispose(Boolean)
Clean up any resources being used.
Declaration
protected override void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | disposing | true if managed resources should be disposed; otherwise, false. |
GetCurrentZoomSize(GridControl)
Gets the zoom percentage of the grid for GridGroupingControl.
Declaration
public int GetCurrentZoomSize(GridControl grid)
Parameters
Type | Name | Description |
---|---|---|
GridControl | grid | The GridControl to zoom. |
Returns
Type | Description |
---|---|
System.Int32 | The current zooming size. |
IterateRelatedTable1(GridRelationDescriptorCollection)
Iterates the nested table (child table) to hook the click event for the specific child table dynamically
Declaration
public void IterateRelatedTable1(GridRelationDescriptorCollection relations)
Parameters
Type | Name | Description |
---|---|---|
GridRelationDescriptorCollection | relations | The GridRelationDescriptorCollection of GridGroupingControl. |
zoomGrid(String)
Wires the GridGroupingControl to support zooming. "Percent" indicates the percentage of Grid to be zoomed In this method, each row's height and column's width and Font Size of any cell are modified according to the percentage. Zooming percentage should not exceed 400.
Declaration
public void zoomGrid(string percent)
Parameters
Type | Name | Description |
---|---|---|
System.String | percent | Zooming Percentage. |