WinForms

Upgrade Guide User Guide Demos Support Forums Download
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class GridCellInfo - WindowsForms API Reference | Syncfusion

    Show / Hide Table of Contents

    Class GridCellInfo

    Implements a specific cell in the grid.

    Inheritance
    System.Object
    GridCellInfo
    Implements
    System.IDisposable
    System.Runtime.Serialization.ISerializable
    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.Windows.Forms.Grid
    Assembly: Syncfusion.Grid.Windows.dll
    Syntax
    public class GridCellInfo : IDisposable, ISerializable

    Constructors

    GridCellInfo()

    Initializes an empty instanceGridCellInfo class.

    Declaration
    public GridCellInfo()
    Remarks

    This constructor initializes a new GridCellInfo object with default values.

    GridCellInfo(Int32, Int32)

    Initializes an empty instanceGridCellInfo class.

    Declaration
    public GridCellInfo(int row, int col)
    Parameters
    Type Name Description
    System.Int32 row

    Row index.

    System.Int32 col

    Column index.

    Remarks

    This constructor initializes a new GridCellInfo object representing a specific cell with default GridStyleInfo.

    GridCellInfo(Int32, Int32, GridStyleInfoStore)

    Initializes an empty instance of GridCellInfo class.

    Declaration
    public GridCellInfo(int row, int col, GridStyleInfoStore styleInfoStore)
    Parameters
    Type Name Description
    System.Int32 row

    Row index.

    System.Int32 col

    Column index.

    GridStyleInfoStore styleInfoStore

    The style information for the cell.

    Remarks

    This constructor initializes a new GridCellInfo object with a GridStyleInfo defined by the supplied GridStyleInfoStore.

    GridCellInfo(SerializationInfo, StreamingContext)

    Initializes a new instance of GridCellInfo class from a serialization stream.

    Declaration
    protected GridCellInfo(SerializationInfo info, StreamingContext context)
    Parameters
    Type Name Description
    System.Runtime.Serialization.SerializationInfo info

    An object that holds all the data needed to serialize or de-serialize this instance.

    System.Runtime.Serialization.StreamingContext context

    Describes the source and destination of the serialized stream specified by info.

    Properties

    Col

    Gets or sets the Column in the grid that the cell belongs to

    Declaration
    public int Col { get; set; }
    Property Value
    Type Description
    System.Int32

    Row

    Gets or sets the Row in the grid that the cell belongs to

    Declaration
    public int Row { get; set; }
    Property Value
    Type Description
    System.Int32

    StyleInfo

    Gets or sets the style object that contains the cell information.

    Declaration
    public GridStyleInfo StyleInfo { get; set; }
    Property Value
    Type Description
    GridStyleInfo

    Methods

    Dispose()

    Releases all resources used by the. GridCellInfo.

    Declaration
    public void Dispose()

    GetObjectData(SerializationInfo, StreamingContext)

    Returns the data needed to serialize the GridCellInfo.

    Declaration
    protected virtual void GetObjectData(SerializationInfo info, StreamingContext context)
    Parameters
    Type Name Description
    System.Runtime.Serialization.SerializationInfo info

    A SerializationInfo object containing the information required to serialize the object.

    System.Runtime.Serialization.StreamingContext context

    A StreamingContext object containing the source and destination of the serialized stream.

    Explicit Interface Implementations

    ISerializable.GetObjectData(SerializationInfo, StreamingContext)

    Implements the ISerializable interface and returns the data needed to serialize the GridCellInfo.

    Declaration
    void ISerializable.GetObjectData(SerializationInfo info, StreamingContext context)
    Parameters
    Type Name Description
    System.Runtime.Serialization.SerializationInfo info

    A SerializationInfo object containing the information required to serialize the object.

    System.Runtime.Serialization.StreamingContext context

    A StreamingContext object containing the source and destination of the serialized stream.

    Implements

    System.IDisposable
    System.Runtime.Serialization.ISerializable
    Back to top Generated by DocFX
    Copyright © 2001 - 2022 Syncfusion Inc. All Rights Reserved