WinForms

Upgrade Guide User Guide Demos Support Forums Download
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class ZoomGrid - WindowsForms API Reference | Syncfusion GridControl and GridDataBoundGrid ">

    Show / Hide Table of Contents

    Class ZoomGrid

    Implements the functionality of zooming for GridControl and GridDataBoundGrid

    Inheritance
    System.Object
    ZoomGrid
    Implements
    System.IDisposable
    Inherited Members
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    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 Description
    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 Description
    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.

    Implements

    System.IDisposable
    Back to top Generated by DocFX
    Copyright © 2001 - 2021 Syncfusion Inc. All Rights Reserved